-
Notifications
You must be signed in to change notification settings - Fork 36
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
Improve error handling for GPU code path unimplemented features #193
Open
wdeconinck
wants to merge
7
commits into
develop
Choose a base branch
from
feature/error_handling
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
65b757a
GPU: Temporary workaround for SETUP_TRANS(LDSPSETUPONLY=.TRUE.) -- no…
wdeconinck 5294bc4
GPU: Temporary workaround for SETUP_TRANS(LDGRIDONLY=.TRUE.) -- not y…
wdeconinck aeb6d0b
GPU: ABORT_TRANS for SETUP_TRANS(LDLL=.TRUE.) -- not yet implemented
wdeconinck c33db00
GPU: ABORT_TRANS for VORDIV_TO_UV -- not yet implemented
wdeconinck 24a5d4f
transi: disable DR_HOOK_ASSERT_MPI_INITIALIZED when MPI is turned off…
wdeconinck a2f4281
transi: Avoid deleting uninitialized trans handle
wdeconinck 76eb4a2
transi: Throw errors gracefully for known not-yet-implemented code pa…
wdeconinck File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -283,6 +283,24 @@ SUBROUTINE SETUP_TRANS(KSMAX,KDGL,KDLON,KLOEN,LDSPLIT,PSTRET,& | |
R%NNOEXTZL=0 | ||
R%NNOEXTZG=0 | ||
|
||
|
||
IF(PRESENT(LDSPSETUPONLY)) THEN | ||
LLSPSETUPONLY=LDSPSETUPONLY | ||
! <<<<<<<<<<< EXTRA TO WORKAROUND NOT YET IMPLEMENTED FEATURE | ||
IF (LLSPSETUPONLY) THEN | ||
WRITE(NOUT,'(A)') "DEVELOPER WARNING: LDSPSETUPONLY IS NOT YET IMPLEMENTED CORRECTLY WITH GPU BACKEND. IGNORING IT FOR NOW" | ||
LLSPSETUPONLY = .FALSE. | ||
R%NDGL = NPROC | ||
! Make even and positive | ||
IF (MOD(R%NDGL,2) /= 0) THEN | ||
R%NDGL = NPROC+1 | ||
ENDIF | ||
R%NDGL = MAX(2,R%NDGL) | ||
ENDIF | ||
! >>>>>>>>>>>>> | ||
ENDIF | ||
|
||
|
||
! IMPLICIT argument : | ||
G%LAM = .FALSE. | ||
|
||
|
@@ -295,6 +313,8 @@ SUBROUTINE SETUP_TRANS(KSMAX,KDGL,KDLON,KLOEN,LDSPLIT,PSTRET,& | |
IF(PRESENT(LDLL)) THEN | ||
S%LDLL=LDLL | ||
IF( LDLL ) THEN | ||
CALL ABORT_TRANS ('SETUP_TRANS: LDLL=.TRUE. is not yet supported with GPU backend') | ||
|
||
S%NDLON=R%NDLON | ||
! account for pole + equator | ||
R%NDGL=R%NDGL+2 | ||
|
@@ -363,10 +383,14 @@ SUBROUTINE SETUP_TRANS(KSMAX,KDGL,KDLON,KLOEN,LDSPLIT,PSTRET,& | |
|
||
IF(PRESENT(LDGRIDONLY)) THEN | ||
D%LGRIDONLY=LDGRIDONLY | ||
ENDIF | ||
|
||
IF(PRESENT(LDSPSETUPONLY)) THEN | ||
LLSPSETUPONLY=LDSPSETUPONLY | ||
! <<<<<<<<<<< EXTRA TO WORKAROUND NOT YET IMPLEMENTED FEATURE | ||
IF (D%LGRIDONLY) THEN | ||
R%NSMAX=1 | ||
R%NTMAX = R%NSMAX | ||
Comment on lines
+388
to
+389
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Likewise, what are these two lines for? |
||
WRITE(NOUT,'(A,I0)') "DEVELOPER WARNING: LDGRIDONLY IS NOT YET IMPLEMENTED CORRECTLY WITH GPU BACKEND. IGNORE AND USE TRUNCATION: ", R%NSMAX | ||
D%LGRIDONLY = .FALSE. | ||
ENDIF | ||
! >>>>>>>>>>>>> | ||
ENDIF | ||
|
||
IF(PRESENT(LDPNMONLY)) THEN | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the purpose of this block?