Files
blis/test/CMakeLists.txt
Chandrashekara K R 7b78d93282 Removing omp library linking to static multithreaded library build.
Description: We have seen the library dependency issue when we are
linking the libomp.lib or libiomp5md.lib while building the library
for static multithreaded scenario. So we are removing the linking of
openmp library for static multithreaded blis library build. So that
user can link any openmp library(libomp.lib or libiomp5md.lib) while
building their applications by linking static multithreaded blis library.

AMD-Internal: [SWLCSG-2196]
Change-Id: I96722f3587ee555af12de664957c211c56fcf03d
2023-07-13 06:54:02 -04:00

174 lines
5.7 KiB
CMake

##Copyright (C) 2022, Advanced Micro Devices, Inc. All rights reserved.##
add_definitions(-DBLAS="AOCL")
add_executable(TestAminv test_aminv.c)
target_link_libraries(TestAminv debug "${LIB_NAME}.lib")
if(ENABLE_OPENMP)
target_link_libraries(TestAminv OpenMP::OpenMP_CXX)
endif()
target_link_libraries(TestAminv optimized "${LIB_NAME}.lib")
add_executable(TestAxpyv test_axpyv.c)
target_link_libraries(TestAxpyv debug "${LIB_NAME}.lib")
if(ENABLE_OPENMP)
target_link_libraries(TestAxpyv OpenMP::OpenMP_CXX)
endif()
target_link_libraries(TestAxpyv optimized "${LIB_NAME}.lib")
add_executable(TestAxpbyv test_axpbyv.c)
target_link_libraries(TestAxpbyv debug "${LIB_NAME}.lib")
if(ENABLE_OPENMP)
target_link_libraries(TestAxpbyv OpenMP::OpenMP_CXX)
endif()
target_link_libraries(TestAxpbyv optimized "${LIB_NAME}.lib")
add_executable(TestCopyv test_copyv.c)
target_link_libraries(TestCopyv debug "${LIB_NAME}.lib")
if(ENABLE_OPENMP)
target_link_libraries(TestCopyv OpenMP::OpenMP_CXX)
endif()
target_link_libraries(TestCopyv optimized "${LIB_NAME}.lib")
add_executable(TestCabs1 test_cabs1.c)
target_link_libraries(TestCabs1 debug "${LIB_NAME}.lib")
if(ENABLE_OPENMP)
target_link_libraries(TestCabs1 OpenMP::OpenMP_CXX)
endif()
target_link_libraries(TestCabs1 optimized "${LIB_NAME}.lib")
add_executable(TestDotv test_dotv.c)
target_link_libraries(TestDotv debug "${LIB_NAME}.lib")
if(ENABLE_OPENMP)
target_link_libraries(TestDotv OpenMP::OpenMP_CXX)
endif()
target_link_libraries(TestDotv optimized "${LIB_NAME}.lib")
add_executable(TestGemm test_gemm.c)
target_link_libraries(TestGemm debug "${LIB_NAME}.lib")
if(ENABLE_OPENMP)
target_link_libraries(TestGemm OpenMP::OpenMP_CXX)
endif()
target_link_libraries(TestGemm optimized "${LIB_NAME}.lib")
add_executable(TestGemmBatch test_gemm_batch.c)
target_link_libraries(TestGemmBatch debug "${LIB_NAME}.lib")
if(ENABLE_OPENMP)
target_link_libraries(TestGemmBatch OpenMP::OpenMP_CXX)
endif()
target_link_libraries(TestGemmBatch optimized "${LIB_NAME}.lib")
add_executable(TestGemm3m test_gemm3m.c)
target_link_libraries(TestGemm3m debug "${LIB_NAME}.lib")
if(ENABLE_OPENMP)
target_link_libraries(TestGemm3m OpenMP::OpenMP_CXX)
endif()
target_link_libraries(TestGemm3m optimized "${LIB_NAME}.lib")
add_executable(TestGemmt test_gemmt.c)
target_link_libraries(TestGemmt debug "${LIB_NAME}.lib")
if(ENABLE_OPENMP)
target_link_libraries(TestGemmt OpenMP::OpenMP_CXX)
endif()
target_link_libraries(TestGemmt optimized "${LIB_NAME}.lib")
add_executable(TestGemv test_gemv.c)
target_link_libraries(TestGemv debug "${LIB_NAME}.lib")
if(ENABLE_OPENMP)
target_link_libraries(TestGemv OpenMP::OpenMP_CXX)
endif()
target_link_libraries(TestGemv optimized "${LIB_NAME}.lib")
add_executable(TestGer test_ger.c)
target_link_libraries(TestGer debug "${LIB_NAME}.lib")
if(ENABLE_OPENMP)
target_link_libraries(TestGer OpenMP::OpenMP_CXX)
endif()
target_link_libraries(TestGer optimized "${LIB_NAME}.lib")
add_executable(TestHemm test_hemm.c)
target_link_libraries(TestHemm debug "${LIB_NAME}.lib")
if(ENABLE_OPENMP)
target_link_libraries(TestHemm OpenMP::OpenMP_CXX)
endif()
target_link_libraries(TestHemm optimized "${LIB_NAME}.lib")
add_executable(TestHemv test_hemv.c)
target_link_libraries(TestHemv debug "${LIB_NAME}.lib")
if(ENABLE_OPENMP)
target_link_libraries(TestHemv OpenMP::OpenMP_CXX)
endif()
target_link_libraries(TestHemv optimized "${LIB_NAME}.lib")
add_executable(TestHer test_her.c)
target_link_libraries(TestHer debug "${LIB_NAME}.lib")
if(ENABLE_OPENMP)
target_link_libraries(TestHer OpenMP::OpenMP_CXX)
endif()
target_link_libraries(TestHer optimized "${LIB_NAME}.lib")
add_executable(TestHer2 test_her2.c)
target_link_libraries(TestHer2 debug "${LIB_NAME}.lib")
if(ENABLE_OPENMP)
target_link_libraries(TestHer2 OpenMP::OpenMP_CXX)
endif()
target_link_libraries(TestHer2 optimized "${LIB_NAME}.lib")
add_executable(TestHer2k test_her2k.c)
target_link_libraries(TestHer2k debug "${LIB_NAME}.lib")
if(ENABLE_OPENMP)
target_link_libraries(TestHer2k OpenMP::OpenMP_CXX)
endif()
target_link_libraries(TestHer2k optimized "${LIB_NAME}.lib")
add_executable(TestHerk test_herk.c)
target_link_libraries(TestHerk debug "${LIB_NAME}.lib")
if(ENABLE_OPENMP)
target_link_libraries(TestHerk OpenMP::OpenMP_CXX)
endif()
target_link_libraries(TestHerk optimized "${LIB_NAME}.lib")
add_executable(TestScalv test_scalv.c)
target_link_libraries(TestScalv debug "${LIB_NAME}.lib")
if(ENABLE_OPENMP)
target_link_libraries(TestScalv OpenMP::OpenMP_CXX)
endif()
target_link_libraries(TestScalv optimized "${LIB_NAME}.lib")
add_executable(TestSwapv test_swapv.c)
target_link_libraries(TestSwapv debug "${LIB_NAME}.lib")
if(ENABLE_OPENMP)
target_link_libraries(TestSwapv OpenMP::OpenMP_CXX)
endif()
target_link_libraries(TestSwapv optimized "${LIB_NAME}.lib")
add_executable(TestTrmm test_trmm.c)
target_link_libraries(TestTrmm debug "${LIB_NAME}.lib")
if(ENABLE_OPENMP)
target_link_libraries(TestTrmm OpenMP::OpenMP_CXX)
endif()
target_link_libraries(TestTrmm optimized "${LIB_NAME}.lib")
add_executable(TestTrmv test_trmv.c)
target_link_libraries(TestTrmv debug "${LIB_NAME}.lib")
if(ENABLE_OPENMP)
target_link_libraries(TestTrmv OpenMP::OpenMP_CXX)
endif()
target_link_libraries(TestTrmv optimized "${LIB_NAME}.lib")
add_executable(TestTrsm test_trsm.c)
target_link_libraries(TestTrsm debug "${LIB_NAME}.lib")
if(ENABLE_OPENMP)
target_link_libraries(TestTrsm OpenMP::OpenMP_CXX)
endif()
target_link_libraries(TestTrsm optimized "${LIB_NAME}.lib")
add_executable(TestTrsv test_trsv.c)
target_link_libraries(TestTrsv debug "${LIB_NAME}.lib")
if(ENABLE_OPENMP)
target_link_libraries(TestTrsv OpenMP::OpenMP_CXX)
endif()
target_link_libraries(TestTrsv optimized "${LIB_NAME}.lib")