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

Compiling in Cuda 11.1 #57

Open
neshatbln opened this issue May 16, 2021 · 0 comments
Open

Compiling in Cuda 11.1 #57

neshatbln opened this issue May 16, 2021 · 0 comments

Comments

@neshatbln
Copy link

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,
| ^~~~~~~~

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

1 participant