Skip to content

Commit

Permalink
Added back the OpenMP tests to check the simd macros.
Browse files Browse the repository at this point in the history
  • Loading branch information
LTLA committed Aug 29, 2024
1 parent 1987506 commit d8b555f
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -132,3 +132,22 @@ add_executable(
)
decorate_executable(cuspar_test)
target_compile_definitions(cuspar_test PRIVATE CUSTOM_PARALLEL_TEST=1)

find_package(OpenMP)
if(OpenMP_FOUND)
# Testing the OpenMP SIMD macros.
create_isometric_unary_test(omp_isometric_unary_test)
target_link_libraries(omp_isometric_unary_test OpenMP::OpenMP_CXX)

create_isometric_binary_test(omp_isometric_binary_test)
target_link_libraries(omp_isometric_binary_test OpenMP::OpenMP_CXX)

add_executable(
omp_sparse_test
src/sparse/convert_to_compressed_sparse.cpp
src/sparse/CompressedSparseMatrix.cpp
src/sparse/FragmentedSparseMatrix.cpp
)
decorate_executable(omp_sparse_test)
target_link_libraries(omp_sparse_test OpenMP::OpenMP_CXX)
endif()

0 comments on commit d8b555f

Please sign in to comment.