Skip to content

[MiniQMC] Update remote, improve script#2225

Merged
jplehr merged 1 commit into
ROCm:aomp-devfrom
jplehr:feat/add-miniqmc-dev-target
Jun 4, 2026
Merged

[MiniQMC] Update remote, improve script#2225
jplehr merged 1 commit into
ROCm:aomp-devfrom
jplehr:feat/add-miniqmc-dev-target

Conversation

@jplehr
Copy link
Copy Markdown
Contributor

@jplehr jplehr commented May 18, 2026

This allows to switch between running the old tag we used internally for some time and the most recent work on OMP_offload user branch.

Sources go to different directory on checkout.
CMake invocation is a bit different.
Build directory is overwritten / reused.

ro-i
ro-i previously approved these changes May 18, 2026
Comment thread bin/run_miniQMC.sh Outdated
Reverting my last change of the miniQMC remote, as suggested by QMCPack
maintainer.

The original goal to enable both the QMCPack/miniqmc as a stable/legacy
version of the mini-app and the current development version were
unsuccessfull. It seems I had done something wrong when I originally
posted the PR with the change.

This changes a few situation in how we handle missing files or not-set
environment variables.
It also updates the CMake command with now required cmake options.
@jplehr jplehr force-pushed the feat/add-miniqmc-dev-target branch from 883cf1b to ffc662d Compare June 3, 2026 16:21
@jplehr jplehr changed the title [MiniQMC] Enable 'dev' target to run latest OMP impl [MiniQMC] Update remote, improve script Jun 3, 2026
@jplehr jplehr requested a review from ro-i June 3, 2026 16:22
@jplehr
Copy link
Copy Markdown
Contributor Author

jplehr commented Jun 3, 2026

I completely changed what this PR is meant to do.
New description:

Reverting my last change of the miniQMC remote, as suggested by QMCPack
maintainer.

The original goal to enable both the QMCPack/miniqmc as a stable/legacy
version of the mini-app and the current development version were
unsuccessfull. It seems I had done something wrong when I originally
posted the PR with the change.

This changes a few situation in how we handle missing files or not-set
environment variables.
It also updates the CMake command with now required cmake options.

@jplehr jplehr dismissed ro-i’s stale review June 3, 2026 16:58

PR changed significantly

Comment thread bin/run_miniQMC.sh

echo "OMP_NUM_THREADS=${MQMC_OMP_NUM_THREADS} ${MQMC_BUILD_DIR}/bin/check_spo_batched_reduction -n 10"
OMP_NUM_THREADS=${MQMC_OMP_NUM_THREADS} "${MQMC_BUILD_DIR}"/bin/check_spo_batched_reduction -n 10
# We intentionally continue running even if some binaries are missing.
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.

why would some binaries be missing?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

If you reset to a different version of miniQMC that happened to me as something would not build.

Comment thread bin/run_miniQMC.sh
exit 1
fi

export PATH=$AOMP/bin:$PATH
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.

Is it necessary to check if $AOMP is set in this script?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

We could. Not sure if needed.

@jplehr jplehr merged commit e07d762 into ROCm:aomp-dev Jun 4, 2026
1 check passed
@jplehr jplehr deleted the feat/add-miniqmc-dev-target branch June 4, 2026 19:40
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.

3 participants