基于CUDA11.2编写的程序在linux系统上可以编译通过,但是在windows10编译时报错:
无法解析的外部符号: __cudaRegisterLinkedBinary_38_cuda_device_runtime_compute_86_cpp1_ii_8b1a5d37,函数 "void __cdecl __sti____cudaRegisterAll(void)" (?__sti____cudaRegisterAll@@YAXXZ) 中引用了该符号
试过网上说的很多方法都没能解决问题,最终将CUDA11.2改为CUDA11.3.1,程序编译通过。怀疑是不是CUDA11.2与windows10有冲突?