Yang7879 / 3D-BoNet

🔥3D-BoNet in Tensorflow (NeurIPS 2019, Spotlight)

Home Page:https://arxiv.org/abs/1906.01140

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Compiling in Cuda 11.1

neshatbln opened this issue · comments

Hi,

I have a problem in the compiling step.

I'm using Ubuntu20 and cuda11.1. I've got the following error using tf 1.4 and python 3.6. Would you let me know what's the solution if I want to use cuda 11.1.

e1

(neshenv) Neshat@CV2:~/3D-BoNet/3D-BoNet/tf_ops/sampling$ g++ -std=c++11 tf_sampling.cpp tf_sampling_g.cu.o -o tf_sampling_so.so -shared -fPIC -I /home/Neshat/neshenv/lib/python3.6/site-packages/tensorflow/include -I /home/Neshat/neshenv/lib/python3.6/site-packages/tensorflow/include/external/nsync/public -I /usr/local/cuda-11.1/include -lcudart -L /usr/local/cuda-11.1/lib64/

tf_sampling.cpp: In lambda function:
tf_sampling.cpp:20:40: warning: ignoring return value of ‘tensorflow::Status tensorflow::shape_inference::InferenceContext::WithRank(tensorflow::shape_inference::ShapeHandle, tensorflow::int64, tensorflow::shape_inference::ShapeHandle*)’, declared with attribute warn_unused_result [-Wunused-result]
20 | c->WithRank(c->input(0), 2, &dims1);
| ^
In file included from tf_sampling.cpp:8:
/home/Neshat/neshenv/lib/python3.6/site-packages/tensorflow/include/tensorflow/core/framework/shape_inference.h:377:10: note: declared here
377 | Status WithRank(ShapeHandle shape, int64 rank,
| ^~~~~~~~
tf_sampling.cpp:22:40: warning: ignoring return value of ‘tensorflow::Status tensorflow::shape_inference::InferenceContext::WithRank(tensorflow::shape_inference::ShapeHandle, tensorflow::int64, tensorflow::shape_inference::ShapeHandle*)’, declared with attribute warn_unused_result [-Wunused-result]
22 | c->WithRank(c->input(1), 2, &dims2);
| ^
In file included from tf_sampling.cpp:8:
/home/Neshat/neshenv/lib/python3.6/site-packages/tensorflow/include/tensorflow/core/framework/shape_inference.h:377:10: note: declared here
377 | Status WithRank(ShapeHandle shape, int64 rank,
| ^~~~~~~~
tf_sampling.cpp: In lambda function:
tf_sampling.cpp:34:40: warning: ignoring return value of ‘tensorflow::Status tensorflow::shape_inference::InferenceContext::WithRank(tensorflow::shape_inference::ShapeHandle, tensorflow::int64, tensorflow::shape_inference::ShapeHandle*)’, declared with attribute warn_unused_result [-Wunused-result]
34 | c->WithRank(c->input(0), 3, &dims1);
| ^
In file included from tf_sampling.cpp:8:
/home/Neshat/neshenv/lib/python3.6/site-packages/tensorflow/include/tensorflow/core/framework/shape_inference.h:377:10: note: declared here
377 | Status WithRank(ShapeHandle shape, int64 rank,
| ^~~~~~~~
tf_sampling.cpp: In lambda function:
tf_sampling.cpp:47:40: warning: ignoring return value of ‘tensorflow::Status tensorflow::shape_inference::InferenceContext::WithRank(tensorflow::shape_inference::ShapeHandle, tensorflow::int64, tensorflow::shape_inference::ShapeHandle*)’, declared with attribute warn_unused_result [-Wunused-result]
47 | c->WithRank(c->input(0), 3, &dims1);
| ^
In file included from tf_sampling.cpp:8:
/home/Neshat/neshenv/lib/python3.6/site-packages/tensorflow/include/tensorflow/core/framework/shape_inference.h:377:10: note: declared here
377 | Status WithRank(ShapeHandle shape, int64 rank,
| ^~~~~~~~
tf_sampling.cpp:49:40: warning: ignoring return value of ‘tensorflow::Status tensorflow::shape_inference::InferenceContext::WithRank(tensorflow::shape_inference::ShapeHandle, tensorflow::int64, tensorflow::shape_inference::ShapeHandle*)’, declared with attribute warn_unused_result [-Wunused-result]
49 | c->WithRank(c->input(1), 2, &dims2);
| ^
In file included from tf_sampling.cpp:8:
/home/Neshat/neshenv/lib/python3.6/site-packages/tensorflow/include/tensorflow/core/framework/shape_inference.h:377:10: note: declared here
377 | Status WithRank(ShapeHandle shape, int64 rank,
| ^~~~~~~~