forked from sourceryinstitute/julienne
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from BerkeleyLab/flang-issue-109589
Use language-feature macros and work around flang I/O issue
- Loading branch information
Showing
11 changed files
with
95 additions
and
49 deletions.
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
! Copyright (c), The Regents of the University of California | ||
! Terms of use are as specified in LICENSE.txt | ||
|
||
#ifndef HAVE_SELECTED_LOGICAL_KIND | ||
! Define whether the compiler supports standard intrinsic function selected_logical_kind(), | ||
! a feature introduced in Fortran 2023 clause 16.9.182. | ||
#if defined(_CRAYFTN) || defined(NAGFOR) || defined(__flang__) | ||
#define HAVE_SELECTED_LOGICAL_KIND 1 | ||
#else | ||
#define HAVE_SELECTED_LOGICAL_KIND 0 | ||
#endif | ||
#endif | ||
|
||
#ifndef HAVE_PROCEDURE_ACTUAL_FOR_POINTER_DUMMY | ||
! Define whether the compiler supports associating a procedure pointer dummy argument with an | ||
! actual argument that is a valid target for the pointer dummy in a procedure assignment, a | ||
! feature introduced in Fortran 2008 and described in Fortran 2023 clause 15.5.2.10 paragraph 5. | ||
#if defined(_CRAYFTN) || defined(__INTEL_COMPILER) || defined(NAGFOR) || defined(__flang__) | ||
#define HAVE_PROCEDURE_ACTUAL_FOR_POINTER_DUMMY 1 | ||
#else | ||
#define HAVE_PROCEDURE_ACTUAL_FOR_POINTER_DUMMY 0 | ||
#endif | ||
#endif | ||
|
||
#ifndef HAVE_MULTI_IMAGE_SUPPORT | ||
! Define whether the compiler supports the statements and intrinsic procedures that support | ||
! multi-image execution, e.g., this_image(), sync all, etc. | ||
#if defined(_CRAYFTN) || defined(__INTEL_COMPILER) || defined(NAGFOR) || defined(__GFORTRAN__) | ||
#define HAVE_MULTI_IMAGE_SUPPORT 1 | ||
#else | ||
#define HAVE_MULTI_IMAGE_SUPPORT 0 | ||
#endif | ||
#endif |
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
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