From d4528354f012e3caecd74d6a2bce67abc098ce26 Mon Sep 17 00:00:00 2001 From: Hans Pabst Date: Fri, 19 Nov 2021 20:32:19 +0100 Subject: [PATCH] ocl: allow unknown GPU in case of OpenCL backend (#1747) * An "unknown GPU" may be not know to the build system (Makefile) * The mechanism to pickup parameters is different from CUDA/HIP --- exts/build_dbcsr/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/exts/build_dbcsr/Makefile b/exts/build_dbcsr/Makefile index dc601c1d82..73e654b532 100644 --- a/exts/build_dbcsr/Makefile +++ b/exts/build_dbcsr/Makefile @@ -93,8 +93,10 @@ else ifeq ($(GPUVER),Mi50) else ifeq ($(GPUVER),Mi100) ARCH_NUMBER = gfx908 else ifneq ($(GPUVER),) +ifneq (opencl,$(USE_ACCEL)) $(error GPUVER not recognized) endif +endif # If compiling with nvcc ifeq (cuda,$(USE_ACCEL))