How can I build cuda environment without a nv graphic card

My server can’t access to internet, so i want to test my code on my laptop which does not has a nv card.

My os is debian lenny 32-bit.

How can I build up an emulator?

Thanks

You can compile the code in device emulation mode (add the --device-emulation flag to the compilation).

Be careful with the block size though as last time I checked, the emulator was launching a cpu thread for each block element which killed the machine on large blocks (this is needed if you want to emulate shared memory and thread synchronization)