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

OpenMPTarget verify process fix #4041

Merged
merged 2 commits into from
May 24, 2021

Conversation

rgayatri23
Copy link
Contributor

The PR adds a check to verify_is_process routine which determines if the routine is being called on the host.

@rgayatri23 rgayatri23 requested review from crtrott and dalg24 May 21, 2021 17:33
@@ -77,7 +77,7 @@ namespace Kokkos {
namespace Impl {

void OpenMPTargetExec::verify_is_process(const char* const label) {
if (omp_in_parallel()) {
if (omp_in_parallel() && (!omp_is_initial_device())) {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
if (omp_in_parallel() && (!omp_is_initial_device())) {
// if current task is enclosed in a parallel region not on the host
if (omp_in_parallel() && (!omp_is_initial_device())) {

@dalg24
Copy link
Member

dalg24 commented May 22, 2021

Retest this please

@crtrott crtrott merged commit aa4ff00 into kokkos:develop May 24, 2021
@rgayatri23 rgayatri23 deleted the OpenMPTarget_verify_process_fix branch March 24, 2023 22:04
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

3 participants