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

HPX_WITH_CUDA corrupts compilation flags #2538

Closed
biddisco opened this issue Mar 15, 2017 · 1 comment

Comments

Projects
None yet
2 participants
@biddisco
Copy link
Contributor

commented Mar 15, 2017

When CUDA is enabled, definitions are added to the compilation regardless of Debug/Release/Other mode and cause incorrect flags to be passed to the compiler.
The lines of code here
https://github.com/STEllAR-GROUP/hpx/blob/master/cmake/HPX_AddCompileFlag.cmake#L33-L35
are the problem.

This results in _DEBUG and DEBUG flags being passed to release builds - which in hpx/config.h trigger HPX_DEBUG to be set and from there, everything is wrong.

@biddisco biddisco changed the title HPX_WITH_CUDA corrupts compiltion flags HPX_WITH_CUDA corrupts compilation flags Mar 15, 2017

@hkaiser hkaiser added this to the 1.0.0 milestone Mar 15, 2017

@biddisco

This comment has been minimized.

Copy link
Contributor Author

commented Mar 16, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.