Some CUDA code examples with READMEs
a year ago
- #CUDA
- #GPU
- #C++
- CUDA Examples project serves as a practical landing page for CUDA C++ development.
- Repository is structured by example types: SetupAndInitExamples, MemoryAndStructureExamples, KernelAndLibExamples, ProfilingExamples, PerformanceChecklist, and TensorParallelFromScratch.
- Contributions should be novel, documented, and correct.
- Each example should have its own subdirectory, produce output as a bash script, and follow specific conventions like naming executables 'main' and using C++20.
- CUDA API calls should be prefixed with '::' and wrapped with 'cudaCheckError'.
- Building instructions include setting CUDA_ARCHITECTURES and using CMake for compilation.