Add files via upload

This commit is contained in:
Martin Kroeker 2024-02-20 20:52:43 +01:00 committed by GitHub
parent 1a2f5872d9
commit 4254db7b78
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 7 deletions

View File

@ -21,16 +21,13 @@ endif()
if (BUILD_COMPLEX16) if (BUILD_COMPLEX16)
list (APPEND OpenBLAS_Tests zblat1 zblat2 zblat3) list (APPEND OpenBLAS_Tests zblat1 zblat2 zblat3)
endif() endif()
message (STATUS CCOMP ${CMAKE_C_COMPILER_ID} FCOMP ${CMAKE_Fortran_COMPILER_ID})
foreach(test_bin ${OpenBLAS_Tests}) foreach(test_bin ${OpenBLAS_Tests})
add_executable(${test_bin} ${test_bin}.f) add_executable(${test_bin} ${test_bin}.f)
target_link_libraries(${test_bin} ${OpenBLAS_LIBNAME}) target_link_libraries(${test_bin} ${OpenBLAS_LIBNAME})
if (USE_OPENMP) if (USE_OPENMP AND (${CMAKE_Fortran_COMPILER_ID} STREQUAL GNU) AND (${CMAKE_C_COMPILER_ID} STREQUAL Clang))
if (CMAKE_Fortran_COMPILER_ID STREQUAL GNU) string(REGEX REPLACE "-fopenmp" "" CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS}")
if (CMAKE_C_COMPILER_ID STREQUAL CLANG) target_link_libraries(${test_bin} omp pthread)
target_link_libraries(${test_bin} omp)
endif()
endif()
endif() endif()
endforeach() endforeach()