Build failing - b40c/test/bfs/make test

30 views
Skip to first unread message

Saurav

unread,
Oct 7, 2011, 3:37:46 AM10/7/11
to B40C
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

Saurav

unread,
Oct 11, 2011, 4:01:44 AM10/11/11
to B40C
Never mind. Fixed it :)
Reply all
Reply to author
Forward
0 new messages