Commit 62267e85 authored by Mohammad Umair's avatar Mohammad Umair

fix cmake

Signed-off-by: Mohammad Umair's avatarUmair <[email protected]>
parent 3dee4929
......@@ -23,9 +23,9 @@ ENDIF()
INCLUDE(CheckCXXCompilerFlag)
SET(CUDA_SEPARABLE_COMPILATION ON)
FIND_PACKAGE(CUDA 10.0 REQUIRED)
set(CUDA_NVCC_FLAGS "${CUDA_NVCC_FLAGS} --default-stream per-thread" )
INCLUDE_DIRECTORIES(include/ .)
......
......@@ -14,5 +14,5 @@ cd build/
# Change NVCC flags as needed
cmake ../ -DCMAKE_INSTALL_PREFIX=$DIR -DCUDA_NVCC_FLAGS="-arch=sm_61"
#make -j8 install VERBOSE=1
make -j8 install
make -j8 install VERBOSE=1
# make -j8 install
CUDA_ADD_LIBRARY(gpu_util STATIC gpu_util.cu)
target_link_libraries(gpu_util ${CUDA_cudadevrt_LIBRARY})
\ No newline at end of file
CUDA_ADD_LIBRARY(gpu_util gpu_util.cu)
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment