Skip to content

Commit

Permalink
missing memcpy within kernel with CUDA 7.5
Browse files Browse the repository at this point in the history
add workaround
  • Loading branch information
psychocrypt authored and fireice-uk committed Apr 15, 2017
1 parent e2a2e54 commit dc6e4c2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Expand Up @@ -103,7 +103,10 @@ if("${CUDA_COMPILER}" STREQUAL "clang")
endforeach()

elseif("${CUDA_COMPILER}" STREQUAL "nvcc")

# avoid that nvcc in CUDA < 8 tries to use libc `memcpy` within the kernel
if(CUDA_VERSION VERSION_LESS 8.0)
add_definitions(-D_FORCE_INLINES)
endif()
foreach(CUDA_ARCH_ELEM ${CUDA_ARCH})
# set flags to create device code for the given architecture
set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS}
Expand Down

0 comments on commit dc6e4c2

Please sign in to comment.