hdrnet_legacy icon indicating copy to clipboard operation
hdrnet_legacy copied to clipboard

Build "slice" error

Open BaiYu0120 opened this issue 7 years ago • 3 comments

@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 /////////////////////////////////

BaiYu0120 avatar May 24 '18 08:05 BaiYu0120

remove this: -DGOOGLE_CUDA=1

cchen156 avatar May 24 '18 17:05 cchen156

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

butterl avatar May 25 '18 03:05 butterl

Refer this https://devtalk.nvidia.com/default/topic/1027553/cuda-setup-and-installation/importerror-libcublas-so-8-0-cannot-open-shared-object-file-no-such-file-or-directory/

TigerStone93 avatar Jun 27 '19 09:06 TigerStone93