The cudainfo program checks that we can initialize the CUDA RT library and communicate with the driver. It can be used as standalone program or built with cudainfo.gpuCheck so it is executed inside the build sandbox to see if it also works fine. It uses the autoAddDriverRunpath hook to inject in the runpath the location of the library directory for CUDA libraries. Reviewed-by: Aleix Boné <abonerib@bsc.es>
		
			
				
	
	
		
			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
 |