From 4a5d013ebcee93f2f338e3cc1d46c860301f7aa7 Mon Sep 17 00:00:00 2001 From: Evan Harvey Date: Thu, 2 Sep 2021 09:09:22 -0600 Subject: [PATCH] perf_test/blas/blas3: Disable simd verify for cuda/10.2.2 --- perf_test/blas/blas3/KokkosBlas3_gemm_perf_test.hpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/perf_test/blas/blas3/KokkosBlas3_gemm_perf_test.hpp b/perf_test/blas/blas3/KokkosBlas3_gemm_perf_test.hpp index d9d32450d2..d7e158f0be 100644 --- a/perf_test/blas/blas3/KokkosBlas3_gemm_perf_test.hpp +++ b/perf_test/blas/blas3/KokkosBlas3_gemm_perf_test.hpp @@ -1504,6 +1504,12 @@ template static inline void __gemm_copy_simd_view_to_3d_view(gemm_simd_args_t src, dstViewType dst, options_t options) { + // clang-format off + // Related issue: https://github.com/kokkos/kokkos-kernels/issues/998 + // CUDA VERSION 10.2.2 generates a compiler error: + // KokkosBlas3_gemm_perf_test.hpp: error: ‘h_subview_type_2d’ was not declared in this scope + // clang-format on +#if (CUDA_VERSION != 10020) using dst_scalar_type = typename dstViewType::value_type; using src_scalar_type = typename view_type_5d::value_type; size_t remainder, vector_batch_size, simd_batch_size, last_batch; @@ -1631,6 +1637,10 @@ static inline void __gemm_copy_simd_view_to_3d_view(gemm_simd_args_t src, out: Kokkos::deep_copy(dst, h_dst); Kokkos::fence(); +#else + Kokkos::abort( + "Cannot perform simd verification with cuda/10.2.2, rerun with -v 0"); +#endif // #if (CUDA_VERSION != 10020) } /**