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