-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d39e521
commit d8d6943
Showing
2 changed files
with
158 additions
and
131 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,63 @@ | ||
#------------------------------------------------------------------------------# | ||
# Distributed under the OSI-approved Apache License, Version 2.0. See | ||
# accompanying file Copyright.txt for details. | ||
#------------------------------------------------------------------------------# | ||
|
||
set(BP3_DIR ${CMAKE_CURRENT_BINARY_DIR}/bp3) | ||
set(BP4_DIR ${CMAKE_CURRENT_BINARY_DIR}/bp4) | ||
file(MAKE_DIRECTORY ${BP3_DIR}) | ||
file(MAKE_DIRECTORY ${BP4_DIR}) | ||
|
||
if(ADIOS2_HAVE_SZ) | ||
bp3_bp4_gtest_add_tests_helper(WriteReadSZ MPI_ALLOW) | ||
gtest_add_tests_helper(SzComplex MPI_ALLOW BPWriteRead Engine. "") | ||
endif() | ||
|
||
|
||
if(ADIOS2_HAVE_ZFP) | ||
bp3_bp4_gtest_add_tests_helper(WriteReadZfp MPI_ALLOW) | ||
bp3_bp4_gtest_add_tests_helper(WriteReadZfpHighLevelAPI MPI_ALLOW) | ||
bp3_bp4_gtest_add_tests_helper(WriteReadZfpRemoveOperations MPI_ALLOW) | ||
bp3_bp4_gtest_add_tests_helper(WriteReadZfpConfig MPI_ALLOW) | ||
|
||
gtest_add_tests_helper(ZfpComplex MPI_ALLOW BPWriteRead Engine. "") | ||
|
||
foreach(tgt | ||
${Test.Engine.BP.WriteReadZfpConfig-TARGETS} | ||
) | ||
target_compile_definitions(${tgt} PRIVATE | ||
"XML_CONFIG_DIR=${CMAKE_CURRENT_SOURCE_DIR}" | ||
) | ||
endforeach() | ||
endif() | ||
|
||
if(ADIOS2_HAVE_MGARD) | ||
bp3_bp4_gtest_add_tests_helper(WriteReadMGARD MPI_ALLOW) | ||
endif() | ||
|
||
if(ADIOS2_HAVE_BZip2) | ||
bp3_bp4_gtest_add_tests_helper(WriteReadBZIP2 MPI_ALLOW) | ||
endif() | ||
|
||
if(ADIOS2_HAVE_PNG) | ||
bp3_bp4_gtest_add_tests_helper(WriteReadPNG MPI_ALLOW) | ||
endif() | ||
|
||
if(ADIOS2_HAVE_Blosc) | ||
bp3_bp4_gtest_add_tests_helper(WriteReadBlosc MPI_ALLOW) | ||
endif() | ||
#-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- # | ||
#Distributed under the OSI - approved Apache License, Version 2.0. See | ||
#accompanying file Copyright.txt for details. | ||
#-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- # | ||
|
||
set(BP3_DIR ${CMAKE_CURRENT_BINARY_DIR} / | ||
bp3) set(BP4_DIR ${CMAKE_CURRENT_BINARY_DIR} / bp4) file(MAKE_DIRECTORY ${ | ||
BP3_DIR}) file(MAKE_DIRECTORY ${BP4_DIR}) | ||
|
||
if (ADIOS2_HAVE_SZ) bp3_bp4_gtest_add_tests_helper( | ||
WriteReadSZ MPI_ALLOW) gtest_add_tests_helper(SzComplex MPI_ALLOW | ||
BPWriteRead | ||
Engine."") endif() | ||
|
||
if (ADIOS2_HAVE_ZFP) bp3_bp4_gtest_add_tests_helper( | ||
WriteReadZfp | ||
MPI_ALLOW) bp3_bp4_gtest_add_tests_helper(WriteReadZfpHighLevelAPI | ||
MPI_ALLOW) | ||
bp3_bp4_gtest_add_tests_helper( | ||
WriteReadZfpRemoveOperations | ||
MPI_ALLOW) bp3_bp4_gtest_add_tests_helper(WriteReadZfpConfig | ||
MPI_ALLOW) | ||
|
||
gtest_add_tests_helper( | ||
ZfpComplex MPI_ALLOW BPWriteRead Engine."") | ||
|
||
foreach (tgt ${Test.Engine.BP.WriteReadZfpConfig - | ||
TARGETS}) target_compile_definitions(${ | ||
tgt} PRIVATE "XML_CONFIG_DIR=${CMAKE_CURRENT_SOURCE_" | ||
"DIR}") endforeach() | ||
|
||
if (ADIOS2_HAVE_CUDA) enable_language(CUDA) | ||
|
||
gtest_add_tests_helper( | ||
WriteReadZfpCuda MPI_ALLOW BP Engine.BP. | ||
.BP4 WORKING_DIRECTORY ${BP4_DIR} EXTRA_ARGS | ||
"BP4") | ||
set_source_files_properties( | ||
CudaRoutines.cu PROPERTIES LANGUAGE | ||
CUDA) foreach (tgt ${ | ||
Test.Engine.BP.WriteReadZfpCuda - | ||
TARGETS}) target_sources(${ | ||
tgt} PRIVATE CudaRoutines.cu) endforeach() | ||
endif() endif() | ||
|
||
if (ADIOS2_HAVE_MGARD) bp3_bp4_gtest_add_tests_helper( | ||
WriteReadMGARD MPI_ALLOW) endif() | ||
|
||
if (ADIOS2_HAVE_BZip2) | ||
bp3_bp4_gtest_add_tests_helper( | ||
WriteReadBZIP2 | ||
MPI_ALLOW) endif() | ||
|
||
if (ADIOS2_HAVE_PNG) | ||
bp3_bp4_gtest_add_tests_helper( | ||
WriteReadPNG | ||
MPI_ALLOW) endif() | ||
|
||
if (ADIOS2_HAVE_Blosc) | ||
bp3_bp4_gtest_add_tests_helper( | ||
WriteReadBlosc | ||
MPI_ALLOW) | ||
endif() |