Newbie Build Question Please Help Is this even possible?

Hey,

New to CUDA. I am on 64bit Linux, with 64bit NVIDIA driver installed. I have installed the 32bit CUDA Toolkit as I am going to have to link with existing 32bit libraries. I wanted to try and build an SDK sample in 32bit to test by when I try I get this error:

/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /rmt/home/npilkington/cuda/lib/libcudart.so when searching for -lcudart

/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /rmt/home/npilkington/cuda/lib/libcudart.so when searching for -lcudart

/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: cannot find -lcudart

collect2: ld returned 1 exit status

I assume it is because it’s trying to build in 64bit but finding 32bit (incompatible) libraries. How can I fix this and tell it not to try an build in 64bit?

Thanks guys!