最近在用TX2编译Elasticfusion,历经艰难。。。最终完成之时
运行./Elastic -l .klg 时却出现了这样的错误
Error: invalid texture reference: /home/nvidia/ElasticFusion/Core/src/Cuda/convenience.cuh:68
然后想这样该和cuda的编译有关,仔细查看core/cmakelist文件,发现第33行set(CUDA_ARCH_PTX "" CACHE STRING "Specify 'virtual' PTX arch to build PTX intermediate code for. Example: 1.0 1.2 or 10 12")的双引号之间因该缺了什么。于是查了一些资料其中CUDA_ARCH_BIN adds support of only listed GPUs. As alternative CMake scripts also parse 'CUDA_ARCH_PTX' variable, which is a list of intermediate PTX codes to include in final so-file. The PTX code can/will be JIT compiled for any current or future GPU.
最终在双引号之间加了61,cuda的cmake参数。发现结果对了,简直不能太高兴。