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

[Compile] identifier "__shfl_down" is undefined #22

Open
JungHY opened this issue Mar 26, 2019 · 6 comments
Open

[Compile] identifier "__shfl_down" is undefined #22

JungHY opened this issue Mar 26, 2019 · 6 comments

Comments

@JungHY
Copy link

JungHY commented Mar 26, 2019

i compiled CD, grouping, interpolation, sampling successfully

failed at emd

this is my tf_auctionmatch_compile.sh

#!/usr/bin/env bash
nvcc=/usr/local/cuda-8.0/bin/nvcc
cudalib=/usr/local/cuda-8.0/lib64/
TF_INC=$(python -c 'import tensorflow as tf; print(tf.sysconfig.get_include())')
TF_LIB=$(python -c 'import tensorflow as tf; print(tf.sysconfig.get_lib())')

$nvcc tf_auctionmatch_g.cu  -c -o tf_auctionmatch_g.cu.o -std=c++11  -I $TF_INC -DGOOGLE_CUDA=1\
 -x cu -Xcompiler -fPIC -O2

g++ tf_auctionmatch.cpp tf_auctionmatch_g.cu.o -o tf_auctionmatch_so.so -std=c++11 -shared -fPIC -I $TF_INC \
-I$TF_INC/external/nsync/public -L$TF_LIB -ltensorflow_framework -lcudart -L $cudalib -O2

error message

tf_auctionmatch_g.cu(220) : error : identifier "__shfl_down" is undefined

tf_auctionmatch_g.cu(243) : error : identifier "__shfl_down" is undefined

2 errors detected in the comilation of "/tmp/tmpxft_00003e79_00000000-7_tf_auctionmatch_g.cpp1.li

i did on cuda 8.0 and cuda 9.2

both same result

@ahmedwael19
Copy link

Can you let me know the commands that you used to compile them? As I am having a hard time doing so

@sunkaiand
Copy link

I have the same question as yours. Do you fix it at the end, can I have the specific solution.

@ahmedwael19
Copy link

I did not fix it.

I hope someone can help both of us as I need to run the code urgently.

@yulequan
Copy link
Owner

Hi, I do not have the same questions. After some research, it seems that changing the cuda and cudnn version would be a possible solution. Adding some parameters would also be possible. See MichalBusta/DeepTextSpotter#26

@sunkaiand
Copy link

Thanks, I will try

@mdane-x
Copy link

mdane-x commented Mar 15, 2022

Same issue on CUDA 11.6.

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

5 participants