-
Notifications
You must be signed in to change notification settings - Fork 1.9k
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
Build error: nvcc fatal: A single input file is required for a non-link phase when an outputfile is specified #39
Comments
did you solve it |
I had problems with nvcc too. They went away when I upgraded to the latest version (11.6). Check your version with |
I had the problem too. Add ' -XCompiler' can solve it. |
I also had the error message After that, I got the error Now I am stuck at EDIT: New issues so far:
Next, I got:
This could be fixed by defining
After compiling for maybe 15 minutes, I get the next error:
Another issue mentions that a similar error could be fixed by defining |
my new issue is: nvcc fatal: A single input file is required for a non-link phase when an outputfile is specified |
I give up. My computer is broken now because of driver update. Of course no offense to the authors. It is not their fault that NVIDIA drivers are trash. Best luck to all of you. |
Hi, has anyone been able to solve this issue? |
By adding a -v to cmake, it will show you the line it is trying to execute. For me, I followed the advice to add a space but that will actually change the parameters which are generated. Where before, the parameters would be
now it was
and nvcc does not seem to understand that. So after updating my cmake I removed all spaces in both CMakeLists files again and this time it finishes compiling. You can check what your cmake command produces with:
Depending on your cuda version, for me it's 11.6. I think the culprit here could be cmake which changes how it adds these command line parameters between versions but I don't know for sure. |
you cant have file path with spaces. that solved my problem |
See also #198 |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
nvcc fatal:unKnown option 'fPIC'
The text was updated successfully, but these errors were encountered: