About Interval SDK Example How to compile for SM 2.0

I was looking at Interval example that come with CUDA SDK and I’m not figuring out how and where the CUDA_ARCH macro is defined. The use of this macro occurs in the cuda_interval.h line 345.

As far as I see, in the Makefile, the use of

GENCODE_ARCH    := -gencode=arch=compute_20,code=sm_20

should define this macro. Is that correct?


If you pass the [font=“Courier New”]–dryrun[/font] switch to nvcc you’ll find that the first gcc invocation starts with [font=“Courier New”]gcc -D__CUDA_ARCH__=200 -E[/font] …