Hi,
I am trying to figure out the BFS code provided in the b40c library. I
tried running "b40c/test/bfs/make test" but got the following error:
----
mkdir -p bin
"/usr/local/cuda/bin/nvcc" -gencode=arch=compute_20,code=
\"sm_20,compute_20\" -o bin/test_bfs_4.0_i386
test_bfs.cu -Xptxas -v
-Xcudafe -# -Xptxas -abi=no -m32 -I"/usr/local/cuda/bin/../include" -
I.. -I../.. -O3
../../b40c/partition/upsweep/kernel_policy.cuh(110): error: identifier
"CUDA_ARCH" is undefined
../../b40c/partition/downsweep/kernel_policy.cuh(122): error:
identifier "CUDA_ARCH" is undefined
Front end time 1.42 (CPU) 2.00 (elapsed)
2 errors detected in the compilation of "/tmp/
tmpxft_00001af3_00000000-4_test_bfs.cpp1.ii".
Total compilation time 1.42 (CPU) 2.00 (elapsed)
----
`make cull` and `make microbench` are both working fine for me. I
wonder why `make test` fails though. If someone here could provide any
pointers, I'd be grateful. Am I missing something obvious?
P.S: I am on a GTX 280 with CUDA 4.0, if that helps.
Thanks,
Saurav