From 10c29787b57cedd253ae23d960c150ea12262bd2 Mon Sep 17 00:00:00 2001 From: Nathan Ellingwood Date: Wed, 21 Nov 2018 14:03:38 -0700 Subject: [PATCH] CMakeLists.txt Fix for case CUBLAS=ON but BLAS not explicitly ON Address issue #347 reported by @csiefer2 --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 27ab894f71..046ee71e39 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -298,6 +298,10 @@ IF (TPL_ENABLE_MKL) ENDIF() IF(${Kokkos_ENABLE_Cuda}) + IF (KOKKOSKERNELS_ENABLE_TPL_BLAS) + SET(KOKKOSKERNELS_ENABLE_TPL_BLAS ON) + LIST(APPEND TPL_LIST "BLAS") + ENDIF() # CUBLAS is ON by default when CUDA is enabled SET(KOKKOSKERNELS_ENABLE_TPL_CUBLAS ON) # Tribit provides TPL mechanism for CUSPARSE; thus, use it