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
CUDA compiling include file path failure inside tensorflow python installation directory in Windows 10 #39829
Comments
No, it doesn't help. The simple workaround is just remove the include line of unistd.h. But when I publish a middle-ware library, client developers expect that can work directly, without some bothering manual edition in a third-party source code, following a complicated instruction list. Some one should take the responsibility to correct this, if not tensorflow team, please tell me the where the code come from.
Please read my issue description for details. |
@k-l-lambda It looks like you are using an older Version of Tensorflow (2.2). Many bugs have been fixed in the latest version. Could you please execute your code using Latest Version (2.6) and let us know if the issue still persists? Thanks! |
This issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Thank you. |
Closing as stale. Please reopen if you'd like to work on this further. |
Please make sure that this is a bug. As per our
GitHub Policy,
we only address code/doc bugs, performance issues, feature requests and
build/installation issues on GitHub. tag:bug_template
System information
You can collect some of this information using our environment capture
script
You can also obtain the TensorFlow version with:
python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"
python -c "import tensorflow as tf; print(tf.version.GIT_VERSION, tf.version.VERSION)"
Describe the current behavior
Create a CUDA source file, e.g. named test.cu, with content:
Then run command:
nvcc ./test.cu --include-path "C:\Users\xxx\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\include"
Then you will got error like this:
Describe the expected behavior
Compiling succeed.
My Research
The error occurred in an Eigen C++ file named
Tensor
:You can see that
unistd.h
including is not excluded by some conditional compiling branch of _WIN32.It seems a bug within Eigen, but I found the original source here:
This is different, and I haven't found any uniform record in their committing history. So this seems modified by Tensorflow team or someone else already.
And I solved this issue just by commenting out the line of
#include <unistd.h>
in the tensorflow python installation directory. Expecting the official fix.The text was updated successfully, but these errors were encountered: