CUDA toolkit 2.3.a
CUDA DRiver 2.3.1a
on Snow Leopard:
I have problem with thrust:
I got this error on all examples using thrust:
/usr/include/c++/4.2.1/ext/atomicity.h(51): error: identifier “__sync_fetch_and_add” is undefined
/usr/include/c++/4.2.1/ext/atomicity.h(55): error: identifier “__sync_fetch_and_add” is undefined
2 errors detected in the compilation of “/tmp/tmpxft_00002fed_00000000-4_version.cpp1.ii”.
If I use the old gcc (g++) 4.0.1 than everything is fine…
For the examples in the SDK I had to modify the common.mk to use -m32, otherwise all compiled and working…
So my question is: What is the problem with thrust?
Thanks for bringing this to our attention. This is probably some incompatibility with gcc-4.2 + nvcc 2.3a that we can work around. We’re looking into it.
What was your workaround there. I’m getting the same error “__sync_add” message when try to compile a mix of .cpp and .cu files using FindCUDA on the release candidate three of cmake. I’m using fedora 11 with gcc 4.4.1. Cheers