首页 > 代码库 > Eclipse 手动增加linker library

Eclipse 手动增加linker library


多个cu文件
nvcc -cubin -m64 -lcudadevrt -lcublas_device -gencode arch=compute_35,code=sm_35 -o test.cubin -c test.cu -dlink

You can also do that in two steps:

nvcc -m64 test.cu -gencode arch=compute_35,code=sm_35 -o test.o -dcnvcc -dlink test.o -arch sm_35 -lcublas_device -lcudadevrt -cubin -o test.cubin