Skip to content

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

Merged
ye-luo merged 5 commits into
QMCPACK:developfrom
ye-luo:fix-cray
May 16, 2023
Merged

Introduce ENABLE_PPCONVERT option and skip ppconvert compilation when cross compiling.#4601
ye-luo merged 5 commits into
QMCPACK:developfrom
ye-luo:fix-cray

Conversation

@ye-luo

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

Copy link
Copy Markdown
Contributor

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

ye-luo commented May 11, 2023

Copy link
Copy Markdown
Contributor Author

Test this please

@prckent prckent left a comment

Copy link
Copy Markdown
Contributor

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

ye-luo commented May 15, 2023

Copy link
Copy Markdown
Contributor Author

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

@prckent prckent left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@prckent

prckent commented May 16, 2023

Copy link
Copy Markdown
Contributor

Test this please

@prckent

prckent commented May 16, 2023

Copy link
Copy Markdown
Contributor

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
@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.

2 participants