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

Fix openmp build failures with Cray compiler. #50

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bavier
Copy link
Contributor

@bavier bavier commented Jan 21, 2020

The 'lastprivate' clause here causes a build failure with the Cray compiler:
CC-1653 craycc: ERROR File = ./SRC/pzgstrs_lsum.c,
Line = 1171
The variable "irow" cannot be used in this lastprivate clause
because the variable appears in a conflicting clause in an enclosing
region.
#pragma omp simd lastprivate(irow)
^

Since the irow variable is not used later in the enclosing taskloop, its
value is irrelevant, so just leave out the 'lastprivate' clause.

  • SRC/pdgstrs_lsum.c (dlsum_fmod_inv_master): Remove lastprivate clause.
  • SRC/pzgstrs_lsum.c (zlsum_fmod_inv_master): Ditto.

The 'lastprivate' clause here causes a build failure with the Cray compiler:
CC-1653 craycc: ERROR File = ./SRC/pzgstrs_lsum.c,
Line = 1171
  The variable "irow" cannot be used in this lastprivate clause
  because the variable appears in a conflicting clause in an enclosing
  region.
                                      #pragma omp simd lastprivate(irow)
                                                                   ^

Since the `irow` variable is not used later in the enclosing taskloop, its
value is irrelevant, so just leave out the 'lastprivate' clause.

* SRC/pdgstrs_lsum.c (dlsum_fmod_inv_master): Remove lastprivate clause.
* SRC/pzgstrs_lsum.c (zlsum_fmod_inv_master): Ditto.
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.

1 participant