Skip to content

Fix openmp build failures with Cray compiler.#50

Open
bavier wants to merge 1 commit intoxiaoyeli:masterfrom
bavier:cray-openmp
Open

Fix openmp build failures with Cray compiler.#50
bavier wants to merge 1 commit intoxiaoyeli:masterfrom
bavier:cray-openmp

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