Skip to content

[Clang][OpenMP] Deprecate -fopenmp-target-xteam-scan and -fopenmp-target-xteam-no-loop-scan#2704

Open
nicebert wants to merge 1 commit into
amd-stagingfrom
amd/dev/nicebert/deprecate-xteam-scan-options
Open

[Clang][OpenMP] Deprecate -fopenmp-target-xteam-scan and -fopenmp-target-xteam-no-loop-scan#2704
nicebert wants to merge 1 commit into
amd-stagingfrom
amd/dev/nicebert/deprecate-xteam-scan-options

Conversation

@nicebert
Copy link
Copy Markdown

Emit a deprecation warning when either flag (or its -fno- partner) is
passed. The flags and their implementation will be removed once
the upstream cross-team reduction rewrite lands in amd-staging.
Also drop the staging-only tests that exercise these flags.

…get-xteam-no-loop-scan

Emit a deprecation warning when either flag (or its -fno- partner) is
passed. The flags and their implementation will be removed once
the upstream cross-team reduction rewrite lands in amd-staging.
Also drop the staging-only tests that exercise these flags.
@ro-i
Copy link
Copy Markdown

ro-i commented May 28, 2026

there is also the https://github.com/ROCm/llvm-project/tree/6d43f828613a6b15b0ad92333108679754846429/offload/test/xteams directory which should be removed

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Let' s change the deprecation message to something like:

"will be removed in a future revision of the OpenMP implementation."

else
CmdArgs.push_back("-fno-openmp-target-multi-device");

for (Arg *A : Args.filtered(options::OPT_fopenmp_target_xteam_scan,
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

shouldn't we do that on the arg definitions instead of filtering later?

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