-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into cleanup_issues_in_sensei_config
- Loading branch information
Showing
38 changed files
with
2,417 additions
and
659 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
set(ENABLE_VTK_IO ON CACHE BOOL "") | ||
set(ENABLE_VTK_FILTERS ON CACHE BOOL "") | ||
set(ENABLE_VTK_GENERIC_ARRAYS ON CACHE BOOL "") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
if(ENABLE_CUDA) | ||
include(CheckLanguage) | ||
set(CMAKE_CUDA_STANDARD 17) | ||
set(CMAKE_CUDA_STANDARD_REQUIRED ON) | ||
if (NOT DEFINED CMAKE_CUDA_ARCHITECTURES) | ||
set(CMAKE_CUDA_ARCHITECTURES 75) | ||
endif() | ||
check_language(CUDA) | ||
if (CMAKE_CUDA_COMPILER) | ||
enable_language(CUDA) | ||
else() | ||
message(FATAL_ERROR "CUDA is required by ENABLE_CUDA but CUDA was not found") | ||
endif() | ||
|
||
# Use this function to make sure targets and sources compile on CUDA. | ||
# arguments: | ||
|
||
# TARGET - the name of the target to use CUDA with | ||
# SOURCES - an optional list of source files that need to be compiled with the | ||
# CUDA compiler | ||
function(sensei_cuda_target) | ||
set(OPTS "") | ||
set(NVPO TARGET) | ||
set(MVO SOURCES) | ||
cmake_parse_arguments(PARSE_ARGV 0 CUDA_TGT "${OPTS}" "${NVPO}" "${MVO}") | ||
|
||
message(STATUS "Created CUDA target ${CUDA_TGT_TARGET}") | ||
|
||
target_compile_features(${CUDA_TGT_TARGET} PUBLIC cxx_std_17) | ||
|
||
set_target_properties(${CUDA_TGT_TARGET} PROPERTIES POSITION_INDEPENDENT_CODE ON) | ||
set_target_properties(${CUDA_TGT_TARGET} PROPERTIES CUDA_SEPARABLE_COMPILATION ON) | ||
set_target_properties(${CUDA_TGT_TARGET} PROPERTIES CUDA_ARCHITECTURES "75") | ||
|
||
if (CUDA_TGT_SOURCES) | ||
message(STATUS "Compiling ${CUDA_TGT_SOURCES} with the CUDA compiler") | ||
set_source_files_properties(${CUDA_TGT_SOURCES} PROPERTIES LANGUAGE CUDA) | ||
endif() | ||
endfunction() | ||
|
||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.