Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,11 @@ jobs:
version: latest
container: ghcr.io/lfortran/lfortran:latest

- os: ubuntu-22.04
compiler: lfortran
version: 0.66
container: ghcr.io/lfortran/lfortran:v0.66.0

- os: ubuntu-22.04
compiler: lfortran
version: 0.65
Expand All @@ -171,12 +176,6 @@ jobs:
version: 0.63
container: ghcr.io/lfortran/lfortran:v0.63.0

# https://hub.docker.com/r/phhargrove/lfortran/tags
- os: ubuntu-24.04
compiler: lfortran
version: 0.63
container: phhargrove/lfortran:0.63.0-1

# --- OPT coverage ---
- os: ubuntu-24.04
compiler: flang
Expand All @@ -186,10 +185,10 @@ jobs:
container: phhargrove/llvm-flang:23.1.0-latest
- os: ubuntu-22.04
compiler: lfortran
version: 0.65
version: 0.66
label: OPT
CONFIGURE_ARGS: --disable-debug
container: ghcr.io/lfortran/lfortran:v0.65.0
container: ghcr.io/lfortran/lfortran:v0.66.0

# --- PRIF-old coverage ---
- os: ubuntu-24.04
Expand Down
31 changes: 16 additions & 15 deletions app/print-native-flags.F90
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ subroutine write_flags
! no multi-image support before 0.64.0
# else
call set("--coarray=true")
call no("EVENT")
call no("LOCK")
call no("NOTIFY")
# if __LFORTRAN_MAJOR__ == 0 && __LFORTRAN_MINOR__ == 64
call no("TEAM")

Expand All @@ -81,14 +84,7 @@ subroutine write_flags
call no("ALLOC_COARRAY")
call no("COARRAY_QUERY")
call no("PUTGET_INTRINSIC_ARRAY_CONTIG")

call no("EVENT")
call no("LOCK")
call no("NOTIFY")
# else
if (INDEX(COMPILER_VERSION(), 'version 0.65') /= 0 .and. &
INDEX(COMPILER_VERSION(), '-g') == 0) then
! LFortran release 0.65
# elif __LFORTRAN_MAJOR__ == 0 && __LFORTRAN_MINOR__ == 65
call no("GET_TEAM")
call no("NUM_IMAGES_TEAM")
call no("THIS_IMAGE_TEAM")
Expand All @@ -100,10 +96,19 @@ subroutine write_flags
call no("IMAGE_INDEX")
call no("THIS_IMAGE_COARRAY")
call no("PUTGET_INTRINSIC_ARRAY_CONTIG")
# else
if (INDEX(COMPILER_VERSION(), 'version 0.66') /= 0 .and. &
INDEX(COMPILER_VERSION(), '-g') == 0) then
! LFortran release 0.66
call no("GET_TEAM")
call no("NUM_IMAGES_TEAM")
call no("THIS_IMAGE_TEAM")
call no("TEAM_NUMBER")

call no("EVENT")
call no("LOCK")
call no("NOTIFY")
call no("ALLOC_COARRAY_CLEANUP")
call no("IMAGE_INDEX")
call no("THIS_IMAGE_COARRAY")
call no("PUTGET_INTRINSIC_ARRAY_CONTIG")
else
! LFortran git snapshot or newer, assume latest we know about
call no("GET_TEAM")
Expand All @@ -115,10 +120,6 @@ subroutine write_flags
call no("IMAGE_INDEX")
call no("THIS_IMAGE_COARRAY")
call no("PUTGET_INTRINSIC_ARRAY_CONTIG")

call no("EVENT")
call no("LOCK")
call no("NOTIFY")
end if
# endif
# endif
Expand Down