pointnet-autoencoder icon indicating copy to clipboard operation
pointnet-autoencoder copied to clipboard

_ZTIN10tensorflow8OpKernelE

Open maryumjam opened this issue 4 years ago • 2 comments

I have tried everything there is . It doesn't stop giving me this error. #/bin/bash CUDA_ROOT=/usr/local/cuda-10.0 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())') TF_CFLAGS=( $(python -c 'import tensorflow as tf; print(" ".join(tf.sysconfig.get_compile_flags()))') ) TF_LFLAGS=( $(python -c 'import tensorflow as tf; print(" ".join(tf.sysconfig.get_link_flags()))') )

${CUDA_ROOT}/bin/nvcc tf_nndistance_g.cu -o tf_nndistance_g.cu.o -c -O2 -DGOOGLE_CUDA=1 -x cu -Xcompiler -fPIC

g++ -std=c++11 tf_nndistance.cpp tf_nndistance_g.cu.o -o tf_nndistance_so.so -shared -fPIC -I $TF_LIB/include -I $TF_INC/external/nsync/public -L$TF_LIB-ltensorflow_framework -I $CUDA_ROOT/include -lcudart -L $CUDA_ROOT/lib64/ -O2

I have CUDA 10.0 CuDNN 7.4 Python 3.5 Tensorflow 1.14 Please help me

maryumjam avatar Sep 29 '19 02:09 maryumjam

I am having the same issue. The only difference is I am running Tensorflow 2.0

AlbertoMQ avatar Dec 10 '19 16:12 AlbertoMQ

https://github.com/optas/latent_3d_points/issues/21

import tensorflow as tf
print(tf.sysconfig.get_compile_flags(),'\n')
print(tf.sysconfig.get_link_flags())

In my case, output:

['-I/home/sohee/anaconda3/envs/py3/lib/python3.6/site-packages/tensorflow/include', '-D_GLIBCXX_USE_CXX11_ABI=1'] 
['-L/home/sohee/anaconda3/envs/py3/lib/python3.6/site-packages/tensorflow', '-l:libtensorflow_framework.so.1']

make ~/pointnet-autoencoder/tf_ops/tf_compile.sh

CUDA_ROOT=/usr/local/cuda-10.0
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())')
CXX11=-D_GLIBCXX_USE_CXX11_ABI=1
ltensor=-l:libtensorflow_framework.so.1

$CUDA_ROOT/bin/nvcc approxmatch/tf_approxmatch_g.cu -o approxmatch/tf_approxmatch_g.cu.o -c -O2 -DGOOGLE_CUDA=1 -x cu -Xcompiler -fPIC

# TF>=1.4.0
g++ -std=c++11 approxmatch/tf_approxmatch.cpp approxmatch/tf_approxmatch_g.cu.o -o approxmatch/tf_approxmatch_so.so -shared -fPIC -I$TF_INC/ -I$TF_INC/external/nsync/public -L$TF_LIB $ltensor -I$CUDA_ROOT/include -lcudart -L$CUDA_ROOT/lib64/ -O2 $CXX11

$CUDA_ROOT/bin/nvcc nn_distance/tf_nndistance_g.cu -o nn_distance/tf_nndistance_g.cu.o -c -O2 -DGOOGLE_CUDA=1 -x cu -Xcompiler -fPIC

g++ -std=c++11 nn_distance/tf_nndistance.cpp nn_distance/tf_nndistance_g.cu.o -o nn_distance/tf_nndistance_so.so -shared -fPIC -I$TF_INC/ -I$TF_INC/external/nsync/public -L$TF_LIB $ltensor -I$CUDA_ROOT/include -lcudart -L$CUDA_ROOT/lib64/ -O2 $CXX11

$ bash tf_compile.sh

sohee-zoe avatar Sep 15 '20 07:09 sohee-zoe