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

nvcc_wrapper can't handle -Xcompiler -o out.o #2993

Closed
jlippuner opened this issue Apr 29, 2020 · 0 comments
Closed

nvcc_wrapper can't handle -Xcompiler -o out.o #2993

jlippuner opened this issue Apr 29, 2020 · 0 comments

Comments

@jlippuner
Copy link
Contributor

When using CMake 3.16 and 3.17 I've run into some issues where CMake sends -Xcompiler -o out.o over to nvcc_wrapper. The wrapper consumes -Xcompiler and adds -o to its list of flags to be passed via -Xcompiler, but it doesn't consume out.o, which then gets interpreted as a linked object and gets an -Xlinker stuck in front of it. So nvcc_wrapper will pass the following to nvcc: -Xcompiler -x,c++,-fopenmp,-o -Xlinker out.o and that results in different problems on the different platforms, but for both platforms the fix is to not consume the -o flag as part of consuming -Xcompiler.

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

3 participants