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 tmp_array size to avoid array mismatch found by GNU #1521

Merged
merged 1 commit into from
May 11, 2017

Conversation

ndkeen
Copy link
Contributor

@ndkeen ndkeen commented May 10, 2017

In the fix for another issue, the tmp_array was allocated to be to large and the GNU compiler stopped with an array mismatch. Reduce the size of the allocated tmp_array by changing the size to be state%ncol, not pcol

This is a redo of PR #1501
Fixes #1263

I allocated the tmp_array to be too large and GNU compiler stopped with an array mismatch.
Change this to be state%ncol in size, not pcol
@ndkeen ndkeen changed the title Fix size of tmp_array to be state%ncol in size to avoid array mismatch could by GNU Fix size of tmp_array to be state%ncol in size to avoid array mismatch found by GNU May 10, 2017
@singhbalwinder singhbalwinder self-assigned this May 10, 2017
@singhbalwinder singhbalwinder changed the title Fix size of tmp_array to be state%ncol in size to avoid array mismatch found by GNU Fixes tmp_array size to avoid array mismatch found by GNU May 10, 2017
singhbalwinder added a commit that referenced this pull request May 10, 2017
Fixes tmp_array size to avoid array mismatch found by GNU

This is a fix to a PR #1501 (github issue #1263).
 I allocated the tmp_array to be too large and GNU compiler stopped
 with  an array mismatch.
 Change this to be state%ncol in size, not pcol

 Fixes #1263

[BFB]

* ndk/cam/fix-add-tmp-arrays-use-ncol:
  This is a fix to a PR #1501 (github issue #1263). I allocated the
  tmp_array to be too large and GNU compiler stopped with an array
  mismatch. Change this to be state%ncol in size, not pcol Add a
  more reasonable pe layout for the a%ne30np4 grid for cori-knl.
  May not be optimal, but allows for testing.
@singhbalwinder
Copy link
Contributor

pushed to next

@ndkeen
Copy link
Contributor Author

ndkeen commented May 10, 2017

Note, Intel compilers don't catch this. I'm googling and it may be that the language is OK with this and it's a benefit of GNU to note it, but Intel chooses to let it go. We already have check bounds with DEBUG Intel.

@singhbalwinder
Copy link
Contributor

Yes, some compilers allow these kind of assignments. Another point to note is that only tests with _D (i.e. debug) are failing indicating GNU allows this behavior for non-debug cases.

@rljacob rljacob changed the title Fixes tmp_array size to avoid array mismatch found by GNU Fix tmp_array size to avoid array mismatch found by GNU May 11, 2017
@singhbalwinder singhbalwinder merged commit cf9e47a into master May 11, 2017
singhbalwinder added a commit that referenced this pull request May 11, 2017
Fixes tmp_array size to avoid array mismatch found by GNU

This is a fix to a PR #1501 (github issue #1263).
 I allocated the tmp_array to be too large and GNU compiler stopped
 with  an array mismatch.
 Change this to be state%ncol in size, not pcol

 Fixes #1263

[BFB]

* ndk/cam/fix-add-tmp-arrays-use-ncol:
  This is a fix to a PR #1501 (github issue #1263). I allocated the
  tmp_array to be too large and GNU compiler stopped with an array
  mismatch. Change this to be state%ncol in size, not pcol Add a
  more reasonable pe layout for the a%ne30np4 grid for cori-knl.
  May not be optimal, but allows for testing.
jgfouca added a commit that referenced this pull request Jun 2, 2017
define acceptable attributes so that all are not required to be present

Define the list of expected attributes to the mpirun command so that the all do not need to
be passed in.
Test suite: scripts_regression_tests.py
Test baseline:
Test namelist changes:
Test status: bit for bit

Fixes #1345

User interface changes?:

Code review:
@ndkeen ndkeen deleted the ndk/cam/fix-add-tmp-arrays-use-ncol branch February 5, 2018 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Calls to outfld in atm that create temp arrays hit invalid float (when pcols != ncols) Intel/debug/cori-knl
2 participants