aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJoshua Bakita <bakitajoshua@gmail.com>2023-11-29 17:40:45 -0500
committerJoshua Bakita <bakitajoshua@gmail.com>2023-11-29 17:40:45 -0500
commit3ee974590403730f2fea911a2574d335cedc4fab (patch)
treeb2ff669a50e743a036e6d1187c50586886119e49 /Makefile
parentaba56610404c90143f7837aadfd19b769caf5460 (diff)
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.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index cfbd971..6abc124 100644
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,7 @@ CC = gcc
2NVCC ?= nvcc 2NVCC ?= nvcc
3# -fPIC is needed in all cases, as we may be linked into another shared library 3# -fPIC is needed in all cases, as we may be linked into another shared library
4CFLAGS = -fPIC 4CFLAGS = -fPIC
5LDFLAGS = -lcuda -I/usr/local/cuda/include 5LDFLAGS = -lcuda -I/usr/local/cuda/include -ldl
6 6
7.PHONY: clean tests 7.PHONY: clean tests
8 8