diff --git a/CMakeLists.txt b/CMakeLists.txt index 0e5f728..b8fafc3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -62,8 +62,8 @@ option( GENERATE_TESTS "Adds the compilation of a test program as a target." OFF # Configuration-dependent settings. set( CMAKE_DEBUG_POSTFIX "_d" ) -set( CUDA_NVCC_FLAGS_RELEASE ${CUDA_NVCC_FLAGS_RELEASE};-gencode arch=compute_30,code=sm_30 ) -set( CUDA_NVCC_FLAGS_DEBUG ${CUDA_NVCC_FLAGS_DEBUG};-gencode arch=compute_30,code=sm_30 ) +set( CUDA_NVCC_FLAGS_RELEASE ${CUDA_NVCC_FLAGS_RELEASE};-gencode arch=compute_60,code=sm_60 -gencode arch=compute_61,code=sm_61 ) +set( CUDA_NVCC_FLAGS_DEBUG ${CUDA_NVCC_FLAGS_DEBUG};-gencode arch=compute_60,code=sm_60 -gencode arch=compute_61,code=sm_61 ) # Unix-specific compiler flags. if ( UNIX ) diff --git a/include/common.h b/include/common.h index eb1d66c..276e46f 100644 --- a/include/common.h +++ b/include/common.h @@ -5,11 +5,7 @@ #ifndef VOX_COMMON_H #define VOX_COMMON_H -#if defined(unix) || defined(__unix__) || defined(__unix) #include -#else -#include -#endif #include #include diff --git a/src/voxelizer.cu b/src/voxelizer.cu index 29898c0..ccad04a 100644 --- a/src/voxelizer.cu +++ b/src/voxelizer.cu @@ -19,6 +19,10 @@ #include #include #include +#if defined(unix) || defined(__unix__) || defined(__unix) +#include +#include +#endif #include #include