0
CUDA编程指南指出:正确认识CUDA版本和兼容性
the driver API is backward compatible, meaning that applications, plug-ins, and libraries (including the C runtime) compiled against a particular version of the driver API will continue to work on subsequent device driver releases
我明白这是说,如果我的代码是在CUDA4编译二进制将在CUDA5运行。然而,事实证明,上运行CUDA5的CUDA5编译的二进制导致:
error while loading shared libraries: libcudart.so.4: cannot open shared object file: No such file or directory
请注意,我使用Linux中的“模块”设施,以不同CUDA版本之间进行切换的,即
module load cuda4
compile
module unload cuda4
module load cuda5
run