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
This commit is contained in:
Hans Pabst 2021-11-19 20:32:19 +01:00 committed by GitHub
parent 6227c4878b
commit d4528354f0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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))