Building 32 bit SDK code on a 64bit machine

It is rather easy to build 32bit code on a 64bit Win Visual Studio 2010 machine.
Build-> configuration manager-> active solution platform-> x64 or win32

In Linux you need
sudo apt-get install gcc-multilib g+±multilib

Build the shared “stuff”:
@ ~/NVIDIA_GPU_Computing_SDK/C/
make i386=1 // will build 32 code
make x86_64=1 // will build 64 code

If they didn’tall build already, you can build the individual code samples by going into the project folder and using the correct MAKE commands.
make i386=1 // will build 32 code
make x86_64=1 // will build 64 code

If you get: /usr/bin/ld: cannot find -lshrutil_i386, you didn’t build the shared “stuff”. They appear in ~/NVIDIA_GPU_Computing_SDK/shared/lib.
You will more than likely get other shared lib errors, like /usr/bin/ld: cannot find -lglut. I’m not sure which libs to pull in to fix these.

When trying to run the 32bit code on a 64bit machine, you will get → CUDA driver version is insufficient for CUDA runtime version.
The 64bit code should run fine.