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

Introduce ENABLE_PPCONVERT option and skip ppconvert compilation when cross compiling. #4601

Merged
merged 5 commits into from
May 16, 2023

Conversation

ye-luo
Copy link
Contributor

@ye-luo ye-luo commented May 11, 2023

Proposed changes

CrayLinuxEnvironment is considered cross-compiling. Thus try_run requires user input and stop.
Consider ppconvert is not critical, simply turn it off by default.
QMC_ISNAN option can be used to override the detection.

What type(s) of changes does this code introduce?

  • Build related changes

Does this introduce a breaking change?

  • No

What systems has this change been tested on?

Frontier/Crusher

Checklist

  • Yes. This PR is up to date with current the current state of 'develop'

@ye-luo
Copy link
Contributor Author

ye-luo commented May 11, 2023

Test this please

Copy link
Contributor

@prckent prckent left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

QMC_ISNAN -> QMC_ENABLE_ISNAN or QMC_USE_ISNAN

I think either of the above would be clearer.

Add to docs.

@ye-luo
Copy link
Contributor Author

ye-luo commented May 15, 2023

A second thought on the name of the cmake option. QMC_USE_ISNAN is reserved for a global option. Here, there is special customization for ppconvert and thus introduce ENABLE_PPCONVERT with docs added.

@ye-luo ye-luo changed the title Protect try_run in CMake when cross compiling. Introduce ENABLE_PPCONVERT option and skip ppconvert compilation when cross compiling. May 15, 2023
Copy link
Contributor

@prckent prckent left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@prckent
Copy link
Contributor

prckent commented May 16, 2023

Test this please

@prckent
Copy link
Contributor

prckent commented May 16, 2023

Test this please

@ye-luo ye-luo enabled auto-merge May 16, 2023 15:31
@ye-luo ye-luo merged commit 98619fe into QMCPACK:develop May 16, 2023
23 checks passed
@ye-luo ye-luo deleted the fix-cray branch May 26, 2023 17:58
@prckent prckent mentioned this pull request Aug 18, 2023
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

Successfully merging this pull request may close these issues.

None yet

2 participants