From a1418db164af92d350234dfe6846884562c9e227 Mon Sep 17 00:00:00 2001 From: Joshua Bakita Date: Wed, 25 Oct 2023 09:50:48 -0400 Subject: Allow custom nvcc location when running make + ignore gdb history To specify a custom path to nvcc when building: `make NVCC=/my/path/to/nvcc` --- copy_experiments/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'copy_experiments') diff --git a/copy_experiments/Makefile b/copy_experiments/Makefile index b2d55c2..ede22dc 100644 --- a/copy_experiments/Makefile +++ b/copy_experiments/Makefile @@ -1,12 +1,13 @@ .PHONY: all clean +NVCC ?= nvcc all: copy_contender mon_cross_ctx_copies copy_contender: copy_contender.cu copy_testbench.h ../testbench.h - /usr/local/cuda/bin/nvcc copy_contender.cu -o $@ -lcuda -g + $(NVCC) copy_contender.cu -o $@ -lcuda -g mon_cross_ctx_copies: mon_cross_ctx_copies.cu copy_testbench.h ../testbench.h - /usr/local/cuda/bin/nvcc mon_cross_ctx_copies.cu -o $@ -lcuda -lpthread -g + $(NVCC) mon_cross_ctx_copies.cu -o $@ -lcuda -lpthread -g clean: rm -f copy_contender mon_cross_ctx_copies -- cgit v1.2.2