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

Update test_omp_target_offload.c #272

Merged
merged 1 commit into from
Feb 10, 2021
Merged

Update test_omp_target_offload.c #272

merged 1 commit into from
Feb 10, 2021

Conversation

spophale
Copy link
Collaborator

For 5.0 the value must be either DEFAULT, DISABLED or MANDATORY, hence any other value is an error.

For 5.0 the value must be either DEFAULT, DISABLED or MANDATORY, hence any other value is an error.
@spophale spophale requested review from tmh97, jhdavis8 and tob2 January 27, 2021 16:08
@spophale spophale added bug fix Fixes a bug in a test or the suite 5.0 Related to spec version 5.0 ready PR is ready for review labels Jan 27, 2021
OMPVV_WARNING_IF(policy==UNKNOWN,"OMP_TARGET_OFFLOAD has an unknown value");
OMPVV_WARNING_IF(policy==NOTSET, "OMP_TARGET_OFFLOAD has not been set");
OMPVV_ERROR_IF(policy==UNKNOWN,"OMP_TARGET_OFFLOAD has an unknown value");
OMPVV_ERROR_IF(policy==NOTSET, "OMP_TARGET_OFFLOAD has not been set");

Copy link
Collaborator

Choose a reason for hiding this comment

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

Other values/unknown are outside of the spec, hence, giving an error is surely sensible. While notset is valid, testing for unset is besides the point for this testcase – hence, an error is also fine → LGTM.

(Requires manually setting the env var or something like PR #262 to avoid the error.)

@spophale spophale merged commit d791970 into master Feb 10, 2021
@spophale spophale deleted the spophale-patch-2 branch February 10, 2021 23:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
5.0 Related to spec version 5.0 bug fix Fixes a bug in a test or the suite ready PR is ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants