Skip to content

Instantly share code, notes, and snippets.

View CRAG666's full-sized avatar

Diego Aguilar CRAG666

  • 19:35 (UTC -12:00)
View GitHub Profile
@CRAG666
CRAG666 / build-cuda.cmake
Created April 20, 2024 04:20 — forked from ashwin/build-cuda.cmake
Sample CMakeLists.txt file to build a CUDA program
### CMakeLists.txt for CUDA
cmake_minimum_required(VERSION 2.8)
find_package(CUDA QUIET REQUIRED)
# Pass options to NVCC
set(
CUDA_NVCC_FLAGS
${CUDA_NVCC_FLAGS};
-O3 -gencode arch=compute_22,code=sm_22