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

fix CMake compiler option handling #991

Conversation

psychocoderHPC
Copy link
Member

This is the replacement PR for #989

Currenlty we split very often the compiler option and the argument.
This creates issues when the compiler parses the given arguments.

The fix is that the compiler option and argument will be passed with = instead
of a space in between.

The bug is triggered if a cmake script removes duplicated flags with list(REMOVE_DUPLICATES CUDA_NVCC_FLAGS) ref

@psychocoderHPC psychocoderHPC added this to the Version 0.5.0 milestone Apr 29, 2020
@psychocoderHPC psychocoderHPC requested a review from a team April 29, 2020 08:29
@psychocoderHPC psychocoderHPC force-pushed the fix-cmakeCompilerOptionHandling2 branch from 19fb1aa to c2c2fbf Compare April 29, 2020 08:46
This is the replacement PR for alpaka-group#989

Currenlty we split very often the compiler option and the argument.
This creates issues when the compiler parses the given arguments.

The fix is that the compiler option and argument will be passed with `=` instead
of a space in between.
@BenjaminW3
Copy link
Member

BenjaminW3 commented Apr 30, 2020

From my point of view this can be merged. Do you want to try this with any other external repositories (PIConGPU)?

@psychocoderHPC
Copy link
Member Author

From my point of view this can be merged. Do you want to try this with any other external repositories (PIConGPU)?

It can be merged. I tested it with the upcoming release branch of PIConGPU. This PR is compatible with the separable compile issue and allow to use remove duplication on the flag list.

@BenjaminW3 BenjaminW3 merged commit 1efc4b9 into alpaka-group:develop May 4, 2020
@ax3l ax3l added the Type:Install installation & packaging label May 5, 2020
@psychocoderHPC psychocoderHPC deleted the fix-cmakeCompilerOptionHandling2 branch July 27, 2020 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type:Bug Type:Install installation & packaging
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants