cuda compilation problem by zerocopy example

Hi,
When I am trying to compile the zerocopy example with the compile option -code=sm_20, it failes.
The error is “nvcc fatal:Value of -arch option ( ‘sm_10’) must be a virtual code architecture”.
I compile it by “nvcc zerocopy.cu -code=sm_20”,
Does anyone know what it means?
Thanks !

Hi,

simply replace “-code=sm_20” by “-arch=sm_20”.

Gilles