Skip to content

Commit

Permalink
Add cmake warning for disabled tests.
Browse files Browse the repository at this point in the history
Using DEFAULT_CPU as TUNING_TARGET for AMD or NVIDIA GPUs let some tests
fail. Disabling failing tests for now and output a proper message.

Signed-off-by: nscipione <[email protected]>
  • Loading branch information
s-Nick committed Apr 29, 2024
1 parent 044773b commit 896c9a7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/unittest/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,17 @@ if(is_dpcpp AND ${TUNING_TARGET} STREQUAL "DEFAULT_CPU")
${PORTBLAS_UNITTEST}/blas2/blas2_tpsv_test.cpp
${PORTBLAS_UNITTEST}/blas3/blas3_trsm_test.cpp
)
message(WARNING "Targetting NVIDIA hardware with DEFAULT_CPU TUNING_TARGET.
Disabling tests for following operators: iamax, iamin, trsv, tbsv, tpsv, trsm.")
elseif(${DPCPP_SYCL_TARGET} STREQUAL "amdgcn-amd-amdhsa")
set(DEFAULT_SKIP
${PORTBLAS_UNITTEST}/blas1/blas1_iamax_test.cpp
${PORTBLAS_UNITTEST}/blas1/blas1_iamin_test.cpp
${PORTBLAS_UNITTEST}/blas2/blas2_tbsv_test.cpp
${PORTBLAS_UNITTEST}/blas2/blas2_tpsv_test.cpp
)
message(WARNING "Targetting AMD hardware with DEFAULT_CPU TUNING_TARGET.
Disabling tests for following operators: iamax, iamin, tbsv, tpsv.")
endif()
endif()

Expand Down

0 comments on commit 896c9a7

Please sign in to comment.