├── .gitattributes ├── .gitignore ├── 01_vector_addition ├── baseline │ └── vectorAdd.cu ├── pinned_memory │ └── vectorAdd_pinned.cu └── unified_memory │ ├── vectorAdd_um_baseline.cu │ └── vectorAdd_um_prefetch.cu ├── 02_matrix_mul ├── baseline │ └── mmul.cu ├── noAliasing │ ├── restrict │ │ └── mmul.cu │ └── tmp │ │ └── mmul.cu ├── nonMultiple │ └── mmul.cu ├── rectangular │ └── mmul.cu └── tiled │ └── mmul.cu ├── 03_sum_reduction ├── bank_conflicts │ └── sumReduction.cu ├── cooperative_groups │ └── sumReduction.cu ├── device_function │ └── sumReduction.cu ├── diverged │ └── sumReduction.cu ├── no_confliicts │ └── sumReduction.cu └── reduce_idle │ └── sumReduction.cu ├── 04_histogram ├── global_atomic │ └── histogram.cu └── shmem_atomic │ └── histogram.cu ├── 05_convolution ├── 1d_cache │ └── convolution.cu ├── 1d_constant_memory │ └── convolution.cu ├── 1d_naive │ └── convolution.cu ├── 1d_tiled │ └── convolution.cu └── 2d_constant_memory │ └── convolution.cu ├── LICENSE └── README.md /.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CoffeeBeforeArch/cuda_programming/HEAD/.gitattributes -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CoffeeBeforeArch/cuda_programming/HEAD/.gitignore -------------------------------------------------------------------------------- /01_vector_addition/baseline/vectorAdd.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CoffeeBeforeArch/cuda_programming/HEAD/01_vector_addition/baseline/vectorAdd.cu -------------------------------------------------------------------------------- /01_vector_addition/pinned_memory/vectorAdd_pinned.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CoffeeBeforeArch/cuda_programming/HEAD/01_vector_addition/pinned_memory/vectorAdd_pinned.cu -------------------------------------------------------------------------------- /01_vector_addition/unified_memory/vectorAdd_um_baseline.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CoffeeBeforeArch/cuda_programming/HEAD/01_vector_addition/unified_memory/vectorAdd_um_baseline.cu -------------------------------------------------------------------------------- /01_vector_addition/unified_memory/vectorAdd_um_prefetch.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CoffeeBeforeArch/cuda_programming/HEAD/01_vector_addition/unified_memory/vectorAdd_um_prefetch.cu -------------------------------------------------------------------------------- /02_matrix_mul/baseline/mmul.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CoffeeBeforeArch/cuda_programming/HEAD/02_matrix_mul/baseline/mmul.cu -------------------------------------------------------------------------------- /02_matrix_mul/noAliasing/restrict/mmul.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CoffeeBeforeArch/cuda_programming/HEAD/02_matrix_mul/noAliasing/restrict/mmul.cu -------------------------------------------------------------------------------- /02_matrix_mul/noAliasing/tmp/mmul.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CoffeeBeforeArch/cuda_programming/HEAD/02_matrix_mul/noAliasing/tmp/mmul.cu -------------------------------------------------------------------------------- /02_matrix_mul/nonMultiple/mmul.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CoffeeBeforeArch/cuda_programming/HEAD/02_matrix_mul/nonMultiple/mmul.cu -------------------------------------------------------------------------------- /02_matrix_mul/rectangular/mmul.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CoffeeBeforeArch/cuda_programming/HEAD/02_matrix_mul/rectangular/mmul.cu -------------------------------------------------------------------------------- /02_matrix_mul/tiled/mmul.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CoffeeBeforeArch/cuda_programming/HEAD/02_matrix_mul/tiled/mmul.cu -------------------------------------------------------------------------------- /03_sum_reduction/bank_conflicts/sumReduction.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CoffeeBeforeArch/cuda_programming/HEAD/03_sum_reduction/bank_conflicts/sumReduction.cu -------------------------------------------------------------------------------- /03_sum_reduction/cooperative_groups/sumReduction.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CoffeeBeforeArch/cuda_programming/HEAD/03_sum_reduction/cooperative_groups/sumReduction.cu -------------------------------------------------------------------------------- /03_sum_reduction/device_function/sumReduction.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CoffeeBeforeArch/cuda_programming/HEAD/03_sum_reduction/device_function/sumReduction.cu -------------------------------------------------------------------------------- /03_sum_reduction/diverged/sumReduction.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CoffeeBeforeArch/cuda_programming/HEAD/03_sum_reduction/diverged/sumReduction.cu -------------------------------------------------------------------------------- /03_sum_reduction/no_confliicts/sumReduction.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CoffeeBeforeArch/cuda_programming/HEAD/03_sum_reduction/no_confliicts/sumReduction.cu -------------------------------------------------------------------------------- /03_sum_reduction/reduce_idle/sumReduction.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CoffeeBeforeArch/cuda_programming/HEAD/03_sum_reduction/reduce_idle/sumReduction.cu -------------------------------------------------------------------------------- /04_histogram/global_atomic/histogram.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CoffeeBeforeArch/cuda_programming/HEAD/04_histogram/global_atomic/histogram.cu -------------------------------------------------------------------------------- /04_histogram/shmem_atomic/histogram.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CoffeeBeforeArch/cuda_programming/HEAD/04_histogram/shmem_atomic/histogram.cu -------------------------------------------------------------------------------- /05_convolution/1d_cache/convolution.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CoffeeBeforeArch/cuda_programming/HEAD/05_convolution/1d_cache/convolution.cu -------------------------------------------------------------------------------- /05_convolution/1d_constant_memory/convolution.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CoffeeBeforeArch/cuda_programming/HEAD/05_convolution/1d_constant_memory/convolution.cu -------------------------------------------------------------------------------- /05_convolution/1d_naive/convolution.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CoffeeBeforeArch/cuda_programming/HEAD/05_convolution/1d_naive/convolution.cu -------------------------------------------------------------------------------- /05_convolution/1d_tiled/convolution.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CoffeeBeforeArch/cuda_programming/HEAD/05_convolution/1d_tiled/convolution.cu -------------------------------------------------------------------------------- /05_convolution/2d_constant_memory/convolution.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CoffeeBeforeArch/cuda_programming/HEAD/05_convolution/2d_constant_memory/convolution.cu -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CoffeeBeforeArch/cuda_programming/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CoffeeBeforeArch/cuda_programming/HEAD/README.md --------------------------------------------------------------------------------