From 2954d90f30673288b1dc4fb1b6164073531ecddf Mon Sep 17 00:00:00 2001 From: Chris Dryden Date: Sat, 27 Apr 2024 14:14:02 -0700 Subject: [PATCH] Enable multithreading in nvcc Tested locally and reduced compilation time by 200ms, unfortunately for me upgrading to 12.4 made my compilations times slow by 2x but at least this can make it a bit faster --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 2908e27..0c1cc48 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,7 @@ CFLAGS_COND = -march=native NVCC := $(shell which nvcc 2>/dev/null) # NVCC flags -NVCC_FLAGS = -O3 --use_fast_math +NVCC_FLAGS = -O3 -t=0 --use_fast_math NVCC_LDFLAGS = -lcublas -lcublasLt NCLL_INCLUDES = NVCC_LDLIBS =