diff options
| author | Joshua Bakita <bakitajoshua@gmail.com> | 2023-11-29 17:40:45 -0500 |
|---|---|---|
| committer | Joshua Bakita <bakitajoshua@gmail.com> | 2023-11-29 17:40:45 -0500 |
| commit | 3ee974590403730f2fea911a2574d335cedc4fab (patch) | |
| tree | b2ff669a50e743a036e6d1187c50586886119e49 /Makefile | |
| parent | aba56610404c90143f7837aadfd19b769caf5460 (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-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -2,7 +2,7 @@ CC = gcc | |||
| 2 | NVCC ?= nvcc | 2 | NVCC ?= 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 |
| 4 | CFLAGS = -fPIC | 4 | CFLAGS = -fPIC |
| 5 | LDFLAGS = -lcuda -I/usr/local/cuda/include | 5 | LDFLAGS = -lcuda -I/usr/local/cuda/include -ldl |
| 6 | 6 | ||
| 7 | .PHONY: clean tests | 7 | .PHONY: clean tests |
| 8 | 8 | ||
