Skip to content

Commit

Permalink
Force CUDA on if AMGX is requested.
Browse files Browse the repository at this point in the history
  • Loading branch information
aprilnovak committed Jul 7, 2023
1 parent f48e2a2 commit ba1d537
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ OCCA_OPENCL_ENABLED=0
# Whether to enable AMGX in Nek (only available for Nvidia GPU)
AMGX_ENABLED=0

ifeq ($(AMGX_ENABLED),1)
ifeq ($(OCCA_CUDA_ENABLED),0)
$(info Turning on CUDA backend because AMGX was requested)
OCCA_CUDA_ENABLED=1
endif
endif

CARDINAL_DIR := $(abspath $(dir $(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST))))
CONTRIB_DIR := $(CARDINAL_DIR)/contrib

Expand Down

0 comments on commit ba1d537

Please sign in to comment.