A little experiment for CPU vs GPU using CUDA

1. Introduction I am a begineer of GPGPU. For performance comparison of CPU and GPU I did a little experiment using CUDA Toolkit. 2. Prerequities GPU: GeForce GTX 1060 6GB *CPU: AMD Ryzen 7 3700X 8-Core ProcessorOS: CentOS7.7CUDA: CUDA11.2Programing Language: C language* I bought this GPU according to [1] 3. Installing CUDA (1) Install CUDA11.2 […]

SIMD sample code using AVX

1. Setup OS: CentOS7CPU: Ryzen 7 3700XMemory: TEAM DDR4 3200Mhz PC4-25600 32GBx 4x 2. Source (1) no_simd.c which multiple two vectors without SIMD #include <stdio.h> #include <stdlib.h> #include <time.h> void normal_mul(long long vec_len, float *ret, const float *v1, const float *v2){ for(long long elem_idx = 0; elem_idx < vec_len; elem_idx++) ret[elem_idx] = v1[elem_idx] * v2[elem_idx]; […]

LLVM JIT sample code

1. Introduction I wrote and run LLVM JIT sample program by refering to [1] and the LLVM official page. 2. Prerequities clang: version 5.0.1llvm: version 5.0.1* I installed the above softwares according to [1]implementation language: C language 3. Sample Code itself This program (i)create LLVM IR(Intermidiate Representation) program which multiples two values.(ii) Call (i) IR […]