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

Build "slice" error #25

Open
BaiYu0120 opened this issue May 24, 2018 · 3 comments
Open

Build "slice" error #25

BaiYu0120 opened this issue May 24, 2018 · 3 comments

Comments

@BaiYu0120
Copy link

@mgharbi, I got a error when build custom Tensorflow operator to "slice" in the bilateral grid, log as follows. Can you help me to fix it? I got TF 1.4 and Ubuntu 16.04, Cuda 8.0 in my PC.
////////////////////////////////
nvcc -std c++11 -c ops/bilateral_slice.cu.cc -o build/bilateral_slice.cu.o -DGOOGLE_CUDA=1 -x cu -Xcompiler -fPIC -Ipython -c 'import tensorflow as tf; print(tf.sysconfig.get_include())' -Iops -gencode=arch=compute_30,code="sm_30,compute_30" -expt-relaxed-constexpr -Wno-deprecated-gpu-targets -ftz=true --ptxas-options=-v -lineinfo
In file included from ops/bilateral_slice.cu.cc:20:0:
/usr/local/lib/python2.7/dist-packages/tensorflow/include/tensorflow/core/util/cuda_kernel_helper.h:24:31: fatal error: cuda/include/cuda.h: No such file or directory
compilation terminated.
Makefile:32: recipe for target 'build/bilateral_slice.cu.o' failed
make: *** [build/bilateral_slice.cu.o] Error 1
/////////////////////////////////

@cchen156
Copy link

remove this: -DGOOGLE_CUDA=1

@butterl
Copy link

butterl commented May 25, 2018

add ../$(CUDA_HOME) to -I make it

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

4 participants