The cudainfo program is executed inside the build sandbox so we can see if it works properly. It uses the autoAddDriverRunpath hook to inject in the runpath the location of the library directory for CUDA libraries.
13 lines
187 B
Makefile
13 lines
187 B
Makefile
HOSTCXX ?= g++
|
|
NVCC := nvcc -ccbin $(HOSTCXX)
|
|
CXXFLAGS := -m64
|
|
|
|
# Target rules
|
|
all: cudainfo
|
|
|
|
cudainfo: cudainfo.cpp
|
|
$(NVCC) $(CXXFLAGS) -o $@ $<
|
|
|
|
clean:
|
|
rm -f cudainfo cudainfo.o
|