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

fatal error: tensorflow/stream_executor/lib/status.h: No such file or directory #6602

Closed
albertz opened this issue Jan 2, 2017 · 15 comments
Closed
Assignees
Labels

Comments

@albertz
Copy link
Contributor

albertz commented Jan 2, 2017

I try to write my own op and I have installed TensorFlow 0.12.0 with GPU support on Linux.

This code fails:

#include "tensorflow/core/platform/stream_executor.h"

With error:

fatal error: tensorflow/stream_executor/lib/status.h: No such file or directory

That files does not exists.
Some more include files seem to be missing. When grepping for DeviceMemory in the include path, the only file it finds is include/tensorflow/core/util/stream_executor_util.h.

@gunan
Copy link
Contributor

gunan commented Jan 4, 2017

AFAIK when adding new ops, you need to install from sources:
https://www.tensorflow.org/how_tos/adding_an_op/

From your description, I think you maybe installed the pip package?
When I look at our repo, both master and r0.12 branch has the file:
https://github.com/tensorflow/tensorflow/blob/r0.12/tensorflow/core/platform/stream_executor.h
https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/platform/stream_executor.h

So I am not sure what you installed, or what the reason might be.
Please try installing from sources and if the problem persists, include more debugging information, detailing each step you took to reproduce the problem.

@vrv
Copy link

vrv commented Jan 4, 2017

It's possible our stream executor headers are not packaged in pip. I can take a look tomorrow

@vrv
Copy link

vrv commented Jan 4, 2017

https://github.com/tensorflow/tensorflow/blob/master/tensorflow/tools/pip_package/setup.py#L159 it looks like we're missing tensorflow/stream_executor there

I'm not sure if we're missing anything else, unfortunately, but I can add that change.

@vrv vrv self-assigned this Jan 4, 2017
@albertz
Copy link
Contributor Author

albertz commented Jul 11, 2017

This is not complete yet. When I try to include stream_executor.h:

#include "tensorflow/core/platform/stream_executor.h"

I get:
/u/zeyer/.local/lib/python2.7/site-packages/tensorflow/include/tensorflow/stream_executor/dso_loader.h:32:30: fatal error: cuda/cuda_config.h: No such file or directory

@nikste
Copy link
Contributor

nikste commented Aug 11, 2017

I get the same error with stream_executor.h, when compiling a custom op with nvcc and 1.3.0 binaries:

In file included from /usr/local/lib/python3.5/dist-packages/tensorflow/include/tensorflow/core/platform/default/stream_executor.h:26:0,
                 from /usr/local/lib/python3.5/dist-packages/tensorflow/include/tensorflow/core/platform/stream_executor.h:24,
                 from /usr/local/lib/python3.5/dist-packages/tensorflow/include/tensorflow/core/util/cuda_kernel_helper.h:26,
                 from roi_align_gpu.cu.cc:8:
/usr/local/lib/python3.5/dist-packages/tensorflow/include/tensorflow/stream_executor/dso_loader.h:32:30: fatal error: cuda/cuda_config.h: No such file or directory

@pronobis
Copy link

pronobis commented Sep 6, 2017

Same problem here with 1.3.0 compiled from source when I try to compile a custom op. Does anyone have a workaround?

@cy89
Copy link

cy89 commented Sep 14, 2017

@pronobis it seems like you're suggesting a workaround yourself in #12860:

Copying cuda_config.h to /site-packages/tensorflow/include/tensorflow/stream_executor/cuda solves the problem.

Are you asking for something else?

@cy89 cy89 reopened this Sep 14, 2017
@pronobis
Copy link

I suppose #12860 is there now to track this problem. Generally, I'm looking for a better permanent solution, but again, that's what #12860 is for.

@albertz
Copy link
Contributor Author

albertz commented Nov 7, 2017

I wonder what the state is here? Wouldn't it be possible to just add cuda_config.h to the pip package? Wouldn't that solve the problem?

@aselle aselle removed the stat:awaiting response Status - Awaiting response from author label Nov 7, 2017
@tensorflowbutler
Copy link
Member

It has been 14 days with no activity and this issue has an assignee.Please update the label and/or status accordingly.

@gunan
Copy link
Contributor

gunan commented Dec 20, 2017

@av8ramit could you check if we have all the dependencies of stream_executor.h as a part of the pip package, except for cuda headers?

@av8ramit
Copy link

@gunan, the dependencies are in the pip package

@tensorflowbutler
Copy link
Member

Nagging Assigneee: It has been 14 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

@vrv vrv assigned av8ramit and unassigned vrv Jan 5, 2018
@av8ramit
Copy link

av8ramit commented Jan 5, 2018

All the dependencies are in the pip package.

@av8ramit av8ramit assigned gunan and unassigned av8ramit Jan 5, 2018
@gunan
Copy link
Contributor

gunan commented Jan 5, 2018

Folding all the duplicates into #15002

@gunan gunan closed this as completed Jan 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

9 participants