Skip to content

Commit

Permalink
added support for flang-new (LLVM flang) and marked existing flang as…
Browse files Browse the repository at this point in the history
… "classic"
  • Loading branch information
dalekopera committed Dec 10, 2024
1 parent 4b92449 commit 1deefa5
Show file tree
Hide file tree
Showing 4 changed files with 122 additions and 3 deletions.
2 changes: 1 addition & 1 deletion compiler.pc.lnx.fla
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# LLVM Flang compiler
# Classic Flang compiler
#
# Fortran compilation and loading
#
Expand Down
59 changes: 59 additions & 0 deletions compiler.pc.lnx.fln
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# LLVM Flang compiler
#
# Fortran compilation and loading
#

FORTRAN='flang-new'
BASIC='-c -fPIC'
MBASIC='-fPIC'
I8='-fdefault-integer-8'
LIBCMD=''
MODCMD='-I$MOD'
MODCMDB=$MODCMD
MVMODS='$(MV) -f $(OBJ)/*.mod $(MOD)/ || true'
OPTIMIZATION='-O'
NOOPTIMIZATION='-O0'
DEBUG=
OPENMP='-fopenmp'
SOMP='-fopenmp'
F77='-ffixed-form'
F90=''
F95=''
NOFMAIN=''
CCONDEF=
USUAL=
SPECIAL=
F77SUFFIX=f90
F95SUFFIX=f90
CUDA=
CUDACOMP=$FORTRAN
CUDAARCH=
CUDACODE=
CUDABASIC=
CUDALIBS=
CUDAOPENMP=$OPENMP
TIMER=GEN
BLAS=
LAPACK=
OMP4=no
IEEECK=
HSL=
SPRAL='-lgalahad_spral'
METIS4='-lgalahad_metis4'
METIS5=
PARMETIS=
SCOTCH=
PTSCOTCH=
MPI='-lgalahad_mpi'
PARDISO='-lgalahad_pardiso'
MKL_PARDISO='-lgalahad_mkl_pardiso'
WSMP='-lgalahad_wsmp'
NOT95=IS95
NOT64=NOT64
INTEGER=32bit
QUADREAL=no
BINSHELL=sh
SHARED='-shared'
PASTIX='-lgalahad_pastix'
MUMPS='-lgalahad_mumps'
UMFPACK='-lgalahad_umfpack'
4 changes: 2 additions & 2 deletions compiler.pc64.lnx.fla
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# LLVM Flang compiler
# Classic Flang compiler
#
# Fortran compilation and loading
#
Expand All @@ -15,7 +15,7 @@ OPTIMIZATION='-O'
NOOPTIMIZATION='-O0'
DEBUG=
OPENMP='fopenmp -lstdc++ -lhwloc'
SOMP='-fopenmp=libomp -I/usr/lib/llvm-14/lib/clang/14.0.0/include'
SOMP='-fopenmp'=libomp -I/usr/lib/llvm-14/lib/clang/14.0.0/include'
F77='-ffixed-form'
F90=''
F95=''
Expand Down
60 changes: 60 additions & 0 deletions compiler.pc64.lnx.fln
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# LLVM Flang compiler
#
# Fortran compilation and loading
#

FORTRAN='flang-new'
BASIC='-c -fPIC'
MBASIC='-fPIC'
I8='-i8'
LIBCMD=''
MODCMD='-I$MOD'
MODCMDB=$MODCMD
MVMODS='$(MV) -f $(OBJ)/*.mod $(MOD)/ || true'
OPTIMIZATION='-O'
NOOPTIMIZATION='-O0'
DEBUG=
OPENMP='fopenmp -lstdc++ -lhwloc'
SOMP='-fopenmp'
F77='-ffixed-form'
F90=''
F95=''
NOFMAIN=''
CCONDEF=
USUAL=
SPECIAL=
F77SUFFIX=f90
F95SUFFIX=f90
CUDA=
CUDACOMP=$FORTRAN
CUDAARCH=
CUDACODE=
CUDABASIC=
CUDALIBS=
CUDAOPENMP=$OPENMP
CUDAOPENMP=$OPENMP
TIMER=GEN
BLAS=
LAPACK=
OMP4=no
IEEECK=
HSL=
SPRAL='-lgalahad_spral'
METIS4='-lgalahad_metis4'
METIS5=
PARMETIS=
SCOTCH=
PTSCOTCH=
MPI='-lgalahad_mpi'
PARDISO='-lgalahad_pardiso'
MKL_PARDISO='-lgalahad_mkl_pardiso'
WSMP='-lgalahad_wsmp'
NOT95=IS95
NOT64=IS64
INTEGER=32bit
QUADREAL=no
BINSHELL=sh
SHARED='-shared'
PASTIX='-lgalahad_pastix'
MUMPS='-lgalahad_mumps'
UMFPACK='-lgalahad_umfpack'

0 comments on commit 1deefa5

Please # to comment.