Commit a21f909c authored by BRAMAS Berenger's avatar BRAMAS Berenger

Update cuda compilation

parent 9885aac6
...@@ -410,6 +410,8 @@ if (MORSE_DISTRIB_DIR OR EXISTS "${CMAKE_SOURCE_DIR}/CMakeModules/morse/") ...@@ -410,6 +410,8 @@ if (MORSE_DISTRIB_DIR OR EXISTS "${CMAKE_SOURCE_DIR}/CMakeModules/morse/")
if (CUDA_LIBRARIES) if (CUDA_LIBRARIES)
set(SCALFMM_LIBRARIES "${SCALFMM_LIBRARIES}; ${CUDA_LIBRARIES}") set(SCALFMM_LIBRARIES "${SCALFMM_LIBRARIES}; ${CUDA_LIBRARIES}")
endif() endif()
set(CUDA_NEEDED_INCLUDE_DIRS ${CMAKE_BINARY_DIR}/Src)
endif() endif()
# Find StarPU with a list of optional components # Find StarPU with a list of optional components
......
...@@ -32,7 +32,7 @@ if(ScalFMM_USE_CUDA) ...@@ -32,7 +32,7 @@ if(ScalFMM_USE_CUDA)
ADD_CUSTOM_COMMAND(OUTPUT ${_filehpp_output} ADD_CUSTOM_COMMAND(OUTPUT ${_filehpp_output}
DEPENDS ${_file} DEPENDS ${_file}
COMMAND echo ARGS Compiling ${_filewe} COMMAND echo ARGS Compiling ${_filewe}
COMMAND nvcc ARGS -c ${_file} -o ${_filehpp_output} ${CUSTOM_CUDA_FLAGS}) COMMAND nvcc ARGS -I${CUDA_NEEDED_INCLUDE_DIRS} -c ${_file} -o ${_filehpp_output} ${CUSTOM_CUDA_FLAGS})
LIST (APPEND SCALFMM_CUDA_SOURCES ${_filehpp_output}) LIST (APPEND SCALFMM_CUDA_SOURCES ${_filehpp_output})
ENDFOREACH () ENDFOREACH ()
......
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