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` --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 9f6da4d..688d73d 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,13 @@ .PHONY: all copy_experiments clean +NVCC ?= nvcc all: constant_cycles_kernel preemption_logger copy_experiments constant_cycles_kernel: constant_cycles_kernel.cu testbench.h - nvcc constant_cycles_kernel.cu -o constant_cycles_kernel + $(NVCC) constant_cycles_kernel.cu -o constant_cycles_kernel preemption_logger: task_host_utilities.cu preemption_logger.cu testbench.h - nvcc preemption_logger.cu -o preemption_logger -g + $(NVCC) preemption_logger.cu -o preemption_logger -g copy_experiments: $(MAKE) -C $@ -- cgit v1.2.2