Has anyone been able to cross-compile, link and run a 32-bit CUDA app on a 64-bit platform? According to tmurray’s July 21 post announcing the release of CUDA v2.3, “the 64-bit versions of the CUDA Toolkit now support compiling 32-bit applications,” so I imagine it must be possible. On Ubuntu 9.04 AMD64, I’m able to compile to 32-bit object code using g++ v4.3.3 and nvcc v2.3, but when trying to link with the 32-bit library in /usr/local/cuda/lib, using GNU ld v2.19.1 I, get the following errors:
skipping incompatible /usr/local/cuda/lib/libcudart.so when searching for -lcudart cannot find -lcudart
My linker flags include -melf-i386. Do I need to install the 32-bit SDK and toolkit? If so, then what did tmurray mean in his post? Any help would be appreciated.