Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compiling error: identifier "__atomic_fetch_add" is undefined #15

Open
hainm opened this issue May 1, 2015 · 3 comments
Open

compiling error: identifier "__atomic_fetch_add" is undefined #15

hainm opened this issue May 1, 2015 · 3 comments

Comments

@hainm
Copy link

hainm commented May 1, 2015

Hi,

I am trying to install cudarray but got above error.

this is what I did

export INSTALL_PREFIX=./test/
export CUDA_PREFIX=/usr/local/cuda-5.0/
export CUDNN_ENABLED=1
make

and this is what I got

/usr/local/cuda-5.0//bin/nvcc -gencode arch=compute_20,code=sm_20 -gencode arch=compute_20,code=compute_20 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_30,code=compute_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_35,code=compute_35 -O3 --compiler-options '-DCUDNN_ENABLED -O3 -fPIC -Wall -Wfatal-errors' --ftz=true --prec-div=false -prec-sqrt=false --fmad=true -I./include -I/usr/local/cuda-5.0//include -c -o src/nnet/pool_b01.o src/nnet/pool_b01.cu
/usr/include/c++/4.8/ext/atomicity.h(49): error: identifier "__atomic_fetch_add" is undefined

/usr/include/c++/4.8/ext/atomicity.h(53): error: identifier "__atomic_fetch_add" is undefined

2 errors detected in the compilation of "/tmp/tmpxft_00004173_00000000-12_pool_b01.compute_35.cpp1.ii".
make: *** [src/nnet/pool_b01.o] Error 2

any idea why this happened? thanks

Hai

@andersbll
Copy link
Owner

Yikes, I'm not sure what caused the error and I'm having a hard time finding something online that matches your output. Maybe you should try upgrading the CUDA SDK to something more recent. Alternatively, there might be an error in your version of GCC.

@hainm
Copy link
Author

hainm commented May 1, 2015

thanks. I will try. The compiler worked fine with pycuda and scikits.cuda

Hai

@andersbll
Copy link
Owner

Strange, it could be interesting to compare the calls to NVCC from those libraries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants