Skip to content

Commit

Permalink
Merge pull request #210 from Treece-Burgess/07-29-24-remove-arch
Browse files Browse the repository at this point in the history
Removing conditional check for -arch=native flag.
  • Loading branch information
Treece-Burgess authored Sep 9, 2024
2 parents 1345a74 + 602afc3 commit 2151088
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/components/cuda/tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,9 @@ TESTS_NOCTX = concurrent_profiling_noCuCtx pthreads_noCuCtx \
simpleMultiGPU_noCuCtx

NVCC = $(PAPI_CUDA_ROOT)/bin/nvcc
NVCC_VERSION := $(shell $(NVCC) --version | grep -oP '(?<=release )\d+\.\d+')
ifeq ($(shell echo "$(NVCC_VERSION) >= 11.6" | bc), 1)
NVCFLAGS := -arch=native
else
NVCFLAGS :=
endif

PAPI_FLAG = -DPAPI # Comment this line for tests to run without PAPI profiling
NVCFLAGS += -g -ccbin='$(CC)' $(PAPI_FLAG)
NVCFLAGS = -g -ccbin='$(CC)' $(PAPI_FLAG)
CFLAGS += -g $(PAPI_FLAG)
INCLUDE += -I$(PAPI_CUDA_ROOT)/include
CUDALIBS = -L$(PAPI_CUDA_ROOT)/lib64 -lcudart -lcuda
Expand Down

0 comments on commit 2151088

Please sign in to comment.