From 487f6182d7df0151eeb9d2376f77ba63b98b4ab2 Mon Sep 17 00:00:00 2001 From: Mathieu Gravey Date: Sun, 7 Jan 2024 15:11:25 +0100 Subject: [PATCH] fix cuda compilation --- build/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/Makefile b/build/Makefile index 9f3b47b..363d0c4 100644 --- a/build/Makefile +++ b/build/Makefile @@ -70,7 +70,7 @@ ifneq ($(dosentSupportCUDA),1) export CFLAGS+= -DWITH_CUDA export WITH_CUDA+=g2s_cuda.so export LDFLAGS_NO_SERVER_ONLY+=-Wl,--export-dynamic -Wl,-rpath,/usr/local/cuda/targets/x86_64-linux/lib/ - export NVLIB +=-L$(dir $(shell sh -c "which ${NVCC}"))/../targets/x86_64-linux/lib/ -lcudart -lcufft -lcublas --compiler-options -Wl,-rpath,/usr/local/cuda/targets/x86_64-linux/lib/ + export NVLIB +=-L$(dir $(shell sh -c "which ${NVCC}"))/../targets/x86_64-linux/lib/ -lcudart -lcufft -lcublas --Xlinker -Wl,-rpath,/usr/local/cuda/targets/x86_64-linux/lib/ export LIBINC+=-I$(dir $(shell sh -c "which ${NVCC}"))/../targets/x86_64-linux/include/ endif