-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #682 from LLNL/bugfix/white238/openmp
OpenMP and policy warning clean up
- Loading branch information
Showing
9 changed files
with
145 additions
and
187 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
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
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,40 +1,35 @@ | ||
if ("@ENABLE_CUDA@") | ||
set(BLT_ENABLE_CUDA "@ENABLE_CUDA@") | ||
# Always stay enabled if any upstream has already turned you on. | ||
if(NOT BLT_ENABLE_CUDA) | ||
set(BLT_ENABLE_CUDA @ENABLE_CUDA@) | ||
endif() | ||
|
||
if ("@ENABLE_HIP@") | ||
set(BLT_ENABLE_HIP "@ENABLE_HIP@") | ||
if(NOT BLT_ENABLE_HIP) | ||
set(BLT_ENABLE_HIP @ENABLE_HIP@) | ||
endif() | ||
|
||
if ("@ENABLE_MPI@") | ||
set(BLT_ENABLE_MPI "@ENABLE_MPI@") | ||
if(NOT BLT_ENABLE_MPI) | ||
set(BLT_ENABLE_MPI @ENABLE_MPI@) | ||
endif() | ||
|
||
if ("@ENABLE_OPENMP@") | ||
set(BLT_ENABLE_OPENMP "@ENABLE_OPENMP@") | ||
if(NOT BLT_ENABLE_OPENMP) | ||
set(BLT_ENABLE_OPENMP @ENABLE_OPENMP@) | ||
endif() | ||
if(NOT BLT_ENABLE_FIND_MPI) | ||
set(BLT_ENABLE_FIND_MPI @ENABLE_FIND_MPI@) | ||
endif() | ||
|
||
set(BLT_ENABLE_FIND_MPI "@ENABLE_FIND_MPI@") | ||
|
||
# User configurable CUDA options needed by downstream. Normally, exporting | ||
# these targets would pass these flags to downstream targets, but this | ||
# must be done manually if targets aren't exported. | ||
if ("@ENABLE_CLANG_CUDA@" AND NOT DEFINED ENABLE_CLANG_CUDA) | ||
set(BLT_ENABLE_CLANG_CUDA "@ENABLE_CLANG_CUDA@") | ||
# If the user specifies this variable, ignore the inherited flag. | ||
elseif (DEFINED ENABLE_CLANG_CUDA) | ||
# Always prefer the current project if they turned it on | ||
if(ENABLE_CLANG_CUDA) | ||
set(BLT_ENABLE_CLANG_CUDA ${ENABLE_CLANG_CUDA}) | ||
else() | ||
set(BLT_ENABLE_CLANG_CUDA @ENABLE_CLANG_CUDA@) | ||
endif() | ||
|
||
if ("@BLT_CLANG_CUDA_ARCH@" AND NOT DEFINED BLT_CLANG_CUDA_ARCH) | ||
if (NOT DEFINED BLT_CLANG_CUDA_ARCH) | ||
set(BLT_CLANG_CUDA_ARCH "@BLT_CLANG_CUDA_ARCH@") | ||
endif() | ||
|
||
if ("@CUDA_TOOLKIT_ROOT_DIR@" AND NOT DEFINED CUDA_TOOLKIT_ROOT_DIR) | ||
if (NOT DEFINED CUDA_TOOLKIT_ROOT_DIR) | ||
set(CUDA_TOOLKIT_ROOT_DIR "@CUDA_TOOLKIT_ROOT_DIR@") | ||
endif() | ||
|
||
# User configurable HIP options needed by downstream | ||
if ("@ROCM_PATH@" AND NOT DEFINED ROCM_PATH) | ||
if (NOT DEFINED ROCM_PATH) | ||
set(ROCM_PATH "@ROCM_PATH@") | ||
endif() |
Oops, something went wrong.