Skip to content

Commit

Permalink
unit-tests: add pre-processor guard in blas gesv tests for TPL MAGMA
Browse files Browse the repository at this point in the history
Re-introducing necessary guard in gesv test, now the CUDA CI test
should compile correctly.
  • Loading branch information
lucbv committed Apr 16, 2021
1 parent b9e9746 commit c9e6b21
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions unit_test/blas/Test_Blas_gesv.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
// Note: Luc Berger-Vergiat 04/15/21
// This test should only be included
// in the CUDA backend if TPL MAGMA
// has been enabled.

#if !defined(TEST_CUDA_BLAS_CPP) \
|| ( defined(TEST_CUDA_BLAS_CPP) && defined(KOKKOSKERNELS_ENABLE_TPL_MAGMA) )

#include<gtest/gtest.h>
#include<Kokkos_Core.hpp>
#include<Kokkos_Random.hpp>
Expand Down Expand Up @@ -386,3 +394,5 @@ TEST_F( TestCategory, gesv_mrhs_complex_float ) {
#endif

#endif//KOKKOSKERNELS_ENABLE_TPL_MAGMA || KOKKOSKERNELS_ENABLE_TPL_BLAS

#endif // Check for TPL MAGMA when compiling the CUDA tests

0 comments on commit c9e6b21

Please sign in to comment.