Author : tlqtangok@126.com (Jidor Tang) at 2018-07-25
cuda guide for new comers.
cd cuda_demo/cuda_demo/0_Simple/
you will see many project names.
use :
cd cuda_demo/cuda_demo/PROJECT_NAME/
make
make run
make clean
to try. the PROJECT_NAME is one of
- verify_nvcc_env
- try_idx
- split_tid
- DEFINE_I_J_K_i_j_k_idx
- clear_matrix_edge
- bind_texture
- shared_memory
- shared_memory_merge
enjoy yourself :)
-
verify_nvcc_envverify if nvcc is ready. make sure you "nvcc -V" can work properly.
-
try_idxtry if you can see the idx number from multi-thread.
-
DEFINE_I_J_K_i_j_k_idxabout how to figure out the idx.
-
split_tidhow to use the idx to do some computing job.
-
clear_matrix_edgea real example of using cuda to do matrix transformation.
-
shared_memoryusage of shared memory. very simple usage. no recommend
-
shared_memory_mergeto sum an array on shared memory
please see NVIDIA CUDA 入门与并行优化建议