我正在编译 libbsc(GPU 压缩库)。在 make 过程中,我收到:
nvcc -DLIBBSC_SORT_TRANSFORM_SUPPORT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O3 -lcuda -lcudart -DLIBBSC_CUDA_SUPPORT -Xcompiler -openmp -DNDEBUG -I/usr/local/cuda/include/ -L/usr/local/cuda/lib64/ -c libbsc/adler32/adler32.cpp
nvcc -DLIBBSC_SORT_TRANSFORM_SUPPORT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O3 -lcuda -lcudart -DLIBBSC_CUDA_SUPPORT -Xcompiler -openmp -DNDEBUG -I/usr/local/cuda/include/ -L/usr/local/cuda/lib64/ -c libbsc/bwt/divsufsort/divsufsort.c
nvcc -DLIBBSC_SORT_TRANSFORM_SUPPORT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O3 -lcuda -lcudart -DLIBBSC_CUDA_SUPPORT -Xcompiler -openmp -DNDEBUG -I/usr/local/cuda/include/ -L/usr/local/cuda/lib64/ -c libbsc/bwt/bwt.cpp
nvcc -DLIBBSC_SORT_TRANSFORM_SUPPORT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O3 -lcuda -lcudart -DLIBBSC_CUDA_SUPPORT -Xcompiler -openmp -DNDEBUG -I/usr/local/cuda/include/ -L/usr/local/cuda/lib64/ -c libbsc/coder/coder.cpp
nvcc -DLIBBSC_SORT_TRANSFORM_SUPPORT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O3 -lcuda -lcudart -DLIBBSC_CUDA_SUPPORT -Xcompiler -openmp -DNDEBUG -I/usr/local/cuda/include/ -L/usr/local/cuda/lib64/ -c libbsc/coder/qlfc/qlfc.cpp
nvcc -DLIBBSC_SORT_TRANSFORM_SUPPORT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O3 -lcuda -lcudart -DLIBBSC_CUDA_SUPPORT -Xcompiler -openmp -DNDEBUG -I/usr/local/cuda/include/ -L/usr/local/cuda/lib64/ -c libbsc/coder/qlfc/qlfc_model.cpp
nvcc -DLIBBSC_SORT_TRANSFORM_SUPPORT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O3 -lcuda -lcudart -DLIBBSC_CUDA_SUPPORT -Xcompiler -openmp -DNDEBUG -I/usr/local/cuda/include/ -L/usr/local/cuda/lib64/ -c libbsc/filters/detectors.cpp
nvcc -DLIBBSC_SORT_TRANSFORM_SUPPORT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O3 -lcuda -lcudart -DLIBBSC_CUDA_SUPPORT -Xcompiler -openmp -DNDEBUG -I/usr/local/cuda/include/ -L/usr/local/cuda/lib64/ -c libbsc/filters/preprocessing.cpp
nvcc -DLIBBSC_SORT_TRANSFORM_SUPPORT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O3 -lcuda -lcudart -DLIBBSC_CUDA_SUPPORT -Xcompiler -openmp -DNDEBUG -I/usr/local/cuda/include/ -L/usr/local/cuda/lib64/ -c libbsc/libbsc/libbsc.cu
nvcc error : 'cudafe' died due to signal 11 (Invalid memory reference)
nvcc error : 'cudafe' core dumped
make: *** [libbsc.o] Error 139
这个‘cudafe’由于信号 11(无效的内存引用)而死亡是什么意思?
如何解决?
答案1
这意味着程序由于错误而试图访问未分配的内存。硬件和系统都会注意到。