├── .gitignore ├── CMakeLists.txt ├── README.md ├── README.txt ├── appendix_a ├── CMakeLists.txt ├── dot.cu ├── hashtable_cpu.cu ├── hashtable_gpu.cu └── lock.h ├── chapter03 ├── CMakeLists.txt ├── enum_gpu.cu ├── hello_world.cu ├── set_gpu.cu ├── simple_device_call.cu ├── simple_kernel.cu └── simple_kernel_params.cu ├── chapter04 ├── CMakeLists.txt ├── add_loop_cpu.cu ├── add_loop_gpu.cu ├── add_loop_long.cu ├── julia_cpu.cu └── julia_gpu.cu ├── chapter05 ├── CMakeLists.txt ├── add_loop_blocks.cu ├── add_loop_long_blocks.cu ├── dot.cu ├── ripple.cu └── shared_bitmap.cu ├── chapter06 ├── CMakeLists.txt ├── ray.cu └── ray_noconst.cu ├── chapter07 ├── CMakeLists.txt ├── heat.cu └── heat_2d.cu ├── chapter08 ├── CMakeLists.txt ├── heat.cu └── ripple.cu ├── chapter09 ├── CMakeLists.txt ├── hist_cpu.cu ├── hist_gpu_gmem_atomics.cu └── hist_gpu_shmem_atomics.cu ├── chapter10 ├── CMakeLists.txt ├── basic_double_stream.cu ├── basic_double_stream_correct.cu ├── basic_single_stream.cu └── copy_timed.cu ├── circle.PNG ├── common ├── book.h └── image.h ├── heat.gif ├── julia.PNG ├── license.txt └── shared_image.PNG /.gitignore: -------------------------------------------------------------------------------- 1 | .vscode/ -------------------------------------------------------------------------------- /CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqswhu/cuda_by_example/HEAD/CMakeLists.txt -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqswhu/cuda_by_example/HEAD/README.md -------------------------------------------------------------------------------- /README.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqswhu/cuda_by_example/HEAD/README.txt -------------------------------------------------------------------------------- /appendix_a/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqswhu/cuda_by_example/HEAD/appendix_a/CMakeLists.txt -------------------------------------------------------------------------------- /appendix_a/dot.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqswhu/cuda_by_example/HEAD/appendix_a/dot.cu -------------------------------------------------------------------------------- /appendix_a/hashtable_cpu.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqswhu/cuda_by_example/HEAD/appendix_a/hashtable_cpu.cu -------------------------------------------------------------------------------- /appendix_a/hashtable_gpu.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqswhu/cuda_by_example/HEAD/appendix_a/hashtable_gpu.cu -------------------------------------------------------------------------------- /appendix_a/lock.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqswhu/cuda_by_example/HEAD/appendix_a/lock.h -------------------------------------------------------------------------------- /chapter03/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqswhu/cuda_by_example/HEAD/chapter03/CMakeLists.txt -------------------------------------------------------------------------------- /chapter03/enum_gpu.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqswhu/cuda_by_example/HEAD/chapter03/enum_gpu.cu -------------------------------------------------------------------------------- /chapter03/hello_world.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqswhu/cuda_by_example/HEAD/chapter03/hello_world.cu -------------------------------------------------------------------------------- /chapter03/set_gpu.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqswhu/cuda_by_example/HEAD/chapter03/set_gpu.cu -------------------------------------------------------------------------------- /chapter03/simple_device_call.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqswhu/cuda_by_example/HEAD/chapter03/simple_device_call.cu -------------------------------------------------------------------------------- /chapter03/simple_kernel.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqswhu/cuda_by_example/HEAD/chapter03/simple_kernel.cu -------------------------------------------------------------------------------- /chapter03/simple_kernel_params.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqswhu/cuda_by_example/HEAD/chapter03/simple_kernel_params.cu -------------------------------------------------------------------------------- /chapter04/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqswhu/cuda_by_example/HEAD/chapter04/CMakeLists.txt -------------------------------------------------------------------------------- /chapter04/add_loop_cpu.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqswhu/cuda_by_example/HEAD/chapter04/add_loop_cpu.cu -------------------------------------------------------------------------------- /chapter04/add_loop_gpu.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqswhu/cuda_by_example/HEAD/chapter04/add_loop_gpu.cu -------------------------------------------------------------------------------- /chapter04/add_loop_long.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqswhu/cuda_by_example/HEAD/chapter04/add_loop_long.cu -------------------------------------------------------------------------------- /chapter04/julia_cpu.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqswhu/cuda_by_example/HEAD/chapter04/julia_cpu.cu -------------------------------------------------------------------------------- /chapter04/julia_gpu.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqswhu/cuda_by_example/HEAD/chapter04/julia_gpu.cu -------------------------------------------------------------------------------- /chapter05/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqswhu/cuda_by_example/HEAD/chapter05/CMakeLists.txt -------------------------------------------------------------------------------- /chapter05/add_loop_blocks.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqswhu/cuda_by_example/HEAD/chapter05/add_loop_blocks.cu -------------------------------------------------------------------------------- /chapter05/add_loop_long_blocks.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqswhu/cuda_by_example/HEAD/chapter05/add_loop_long_blocks.cu -------------------------------------------------------------------------------- /chapter05/dot.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqswhu/cuda_by_example/HEAD/chapter05/dot.cu -------------------------------------------------------------------------------- /chapter05/ripple.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqswhu/cuda_by_example/HEAD/chapter05/ripple.cu -------------------------------------------------------------------------------- /chapter05/shared_bitmap.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqswhu/cuda_by_example/HEAD/chapter05/shared_bitmap.cu -------------------------------------------------------------------------------- /chapter06/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqswhu/cuda_by_example/HEAD/chapter06/CMakeLists.txt -------------------------------------------------------------------------------- /chapter06/ray.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqswhu/cuda_by_example/HEAD/chapter06/ray.cu -------------------------------------------------------------------------------- /chapter06/ray_noconst.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqswhu/cuda_by_example/HEAD/chapter06/ray_noconst.cu -------------------------------------------------------------------------------- /chapter07/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqswhu/cuda_by_example/HEAD/chapter07/CMakeLists.txt -------------------------------------------------------------------------------- /chapter07/heat.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqswhu/cuda_by_example/HEAD/chapter07/heat.cu -------------------------------------------------------------------------------- /chapter07/heat_2d.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqswhu/cuda_by_example/HEAD/chapter07/heat_2d.cu -------------------------------------------------------------------------------- /chapter08/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqswhu/cuda_by_example/HEAD/chapter08/CMakeLists.txt -------------------------------------------------------------------------------- /chapter08/heat.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqswhu/cuda_by_example/HEAD/chapter08/heat.cu -------------------------------------------------------------------------------- /chapter08/ripple.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqswhu/cuda_by_example/HEAD/chapter08/ripple.cu -------------------------------------------------------------------------------- /chapter09/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqswhu/cuda_by_example/HEAD/chapter09/CMakeLists.txt -------------------------------------------------------------------------------- /chapter09/hist_cpu.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqswhu/cuda_by_example/HEAD/chapter09/hist_cpu.cu -------------------------------------------------------------------------------- /chapter09/hist_gpu_gmem_atomics.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqswhu/cuda_by_example/HEAD/chapter09/hist_gpu_gmem_atomics.cu -------------------------------------------------------------------------------- /chapter09/hist_gpu_shmem_atomics.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqswhu/cuda_by_example/HEAD/chapter09/hist_gpu_shmem_atomics.cu -------------------------------------------------------------------------------- /chapter10/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqswhu/cuda_by_example/HEAD/chapter10/CMakeLists.txt -------------------------------------------------------------------------------- /chapter10/basic_double_stream.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqswhu/cuda_by_example/HEAD/chapter10/basic_double_stream.cu -------------------------------------------------------------------------------- /chapter10/basic_double_stream_correct.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqswhu/cuda_by_example/HEAD/chapter10/basic_double_stream_correct.cu -------------------------------------------------------------------------------- /chapter10/basic_single_stream.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqswhu/cuda_by_example/HEAD/chapter10/basic_single_stream.cu -------------------------------------------------------------------------------- /chapter10/copy_timed.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqswhu/cuda_by_example/HEAD/chapter10/copy_timed.cu -------------------------------------------------------------------------------- /circle.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqswhu/cuda_by_example/HEAD/circle.PNG -------------------------------------------------------------------------------- /common/book.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqswhu/cuda_by_example/HEAD/common/book.h -------------------------------------------------------------------------------- /common/image.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqswhu/cuda_by_example/HEAD/common/image.h -------------------------------------------------------------------------------- /heat.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqswhu/cuda_by_example/HEAD/heat.gif -------------------------------------------------------------------------------- /julia.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqswhu/cuda_by_example/HEAD/julia.PNG -------------------------------------------------------------------------------- /license.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqswhu/cuda_by_example/HEAD/license.txt -------------------------------------------------------------------------------- /shared_image.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanqswhu/cuda_by_example/HEAD/shared_image.PNG --------------------------------------------------------------------------------