From 3ee974590403730f2fea911a2574d335cedc4fab Mon Sep 17 00:00:00 2001 From: Joshua Bakita Date: Wed, 29 Nov 2023 17:40:45 -0500 Subject: Build on CUDA 11.8+; Adds libdl dependency nvcc links against a stub version of libcuda.so by default which is missing a required symbol starting around CUDA 11.8. Use libdl to resolve the symbol at runtime instead. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index cfbd971..6abc124 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ CC = gcc NVCC ?= nvcc # -fPIC is needed in all cases, as we may be linked into another shared library CFLAGS = -fPIC -LDFLAGS = -lcuda -I/usr/local/cuda/include +LDFLAGS = -lcuda -I/usr/local/cuda/include -ldl .PHONY: clean tests -- cgit v1.2.2