General scientific issues regarding ROMS
Moderators: arango , robertson
cloudy4568
Posts: 39 Joined: Thu Oct 17, 2019 8:56 pm
Location: Clarkson University
#1
Unread post
by cloudy4568 » Thu May 21, 2020 3:11 pm
Dear all,
I encountered the same error while compiling coawst(v3.6) project inlet_test and installing SCRIP_COAWST :
Code: Select all
f951: sorry, unimplemented: Graphite loop optimizations cannot be used (isl is not available) (-fgraphite, -fgraphite-identity, -floop-nest-optimize, -floop-parallelize-all)
make: *** [Build/mod_kinds.o] Error 1
I am using gfortran and the version is 8.3.0. Roms could be compiled and run well. Do you have any idea about how to solve this problem? Any help would be appreciated.
jcwarner
Posts: 1200 Joined: Wed Dec 31, 2003 6:16 pm
Location: USGS, USA
#2
Unread post
by jcwarner » Thu May 21, 2020 3:57 pm
you need to edit a file in your Compilers dir. most likely:
Compilers/Linux-gfortran.mk
but i did a search and dont see any graphite flags in there. maybe post more of the build.
where is that flag coming from??
cloudy4568
Posts: 39 Joined: Thu Oct 17, 2019 8:56 pm
Location: Clarkson University
#3
Unread post
by cloudy4568 » Thu May 21, 2020 5:14 pm
Thank you, John. The full build is:
Code: Select all
rm -f -r core *.ipo ./Build /mnt/home/cyue/make_macros.mk
cp -f /opt/ohpc/pub/libs/gnu8/openmpi3/netcdf-fortran/4.5.2/include/netcdf.mod ./Build
cp -f /opt/ohpc/pub/libs/gnu8/openmpi3/netcdf-fortran/4.5.2/include/typesizes.mod ./Build
cp -p /mnt/home/cyue/make_macros.mk ./Build
\
cd ./Build; \
cpp -P -DINLET_TEST -D'HEADER="inlet_test.h"' -D'ROMS_HEADER="/mnt/home/cyue/coawst/Projects/Inlet_test/Coupled/inlet_test.h"' -I/mnt/home/cyue/coawst/ROMS/Include /mnt/home/cyue/coawst/Master/MCT_coupler/mod_coupler_kinds.F > mod_coupler_kinds.f90; \
/mnt/home/cyue/coawst/ROMS/Bin/cpp_clean mod_coupler_kinds.f90; \
/opt/ohpc/pub/mpi/openmpi3-gnu8/3.1.4/bin/mpif90 -c -frepack-arrays -O3 -ffast-math -O3 -ftree-vectorize -ftree-loop-linear -funroll-loops -w -ffree-form -ffree-line-length-none -frecord-marker=4 -fconvert=big-endian -I/usr/include -Imnt/home/cyue/cooo/MCT/include mod_coupler_kinds.f90; \
cpp -P -DINLET_TEST -D'HEADER="inlet_test.h"' -D'ROMS_HEADER="/mnt/home/cyue/coawst/Projects/Inlet_test/Coupled/inlet_test.h"' -I/mnt/home/cyue/coawst/ROMS/Include /mnt/home/cyue/coawst/Master/MCT_coupler/mct_coupler_params.F > mct_coupler_params.f90; \
/mnt/home/cyue/coawst/ROMS/Bin/cpp_clean mct_coupler_params.f90; \
/opt/ohpc/pub/mpi/openmpi3-gnu8/3.1.4/bin/mpif90 -c -frepack-arrays -O3 -ffast-math -O3 -ftree-vectorize -ftree-loop-linear -funroll-loops -w -ffree-form -ffree-line-length-none -frecord-marker=4 -fconvert=big-endian -I/usr/include -Imnt/home/cyue/cooo/MCT/include mct_coupler_params.f90;
f951: Warning: Nonexistent include directory ‘mnt/home/cyue/cooo/MCT/include’ [-Wmissing-include-dirs]
f951: sorry, unimplemented: Graphite loop optimizations cannot be used (isl is not available) (-fgraphite, -fgraphite-identity, -floop-nest-optimize, -floop-parallelize-all)
f951: Warning: Nonexistent include directory ‘mnt/home/cyue/cooo/MCT/include’ [-Wmissing-include-dirs]
f951: sorry, unimplemented: Graphite loop optimizations cannot be used (isl is not available) (-fgraphite, -fgraphite-identity, -floop-nest-optimize, -floop-parallelize-all)
make: *** [mct_params] Error 1
make: Nothing to be done for `wrfclean'.
make: Nothing to be done for `wrf'.
make: Nothing to be done for `wrfhydroclean'.
make: Nothing to be done for `wrfhydro'.
make: Nothing to be done for `ww3clean'.
make: Nothing to be done for `ww3'.
/usr/bin/cpp -P -traditional -w -DMPI -DLINUX -DX86_64 -DGFORTRAN -D'ROOT_DIR="/mnt/home/cyue/coawst"' -DINLET_TEST -D'HEADER="inlet_test.h"' -D'ROMS_HEADER="/mnt/home/cyue/coawst/Projects/Inlet_test/Coupled/inlet_test.h"' -DNestedGrids= -D'ANALYTICAL_DIR="/mnt/home/cyue/coawst/Projects/Inlet_test/Coupled"' -D'MY_ANALYTICAL="on"' -D'SVN_URL="https://coawstmodel.sourcerepo.com/coawstmodel/COAWST"' -D'SVN_REV="1484"' -IROMS/Include -I/mnt/home/cyue/coawst/Projects/Inlet_test/Coupled -IROMS/Nonlinear -IROMS/Nonlinear/Biology -IROMS/Nonlinear/Sediment -IROMS/Nonlinear/Wec -IROMS/Nonlinear/Vegetation -IROMS/Utility -IROMS/Drivers -IROMS/Functionals -I/mnt/home/cyue/coawst/Projects/Inlet_test/Coupled -ISWAN/Src -IMaster -ICompilers -D'HEADER_DIR="/mnt/home/cyue/coawst/Projects/Inlet_test/Coupled"' ROMS/Nonlinear/my25_prestep.F > Build/my25_prestep.f90
ROMS/Bin/cpp_clean Build/my25_prestep.f90
/usr/bin/cpp -P -traditional -w -DMPI -DLINUX -DX86_64 -DGFORTRAN -D'ROOT_DIR="/mnt/home/cyue/coawst"' -DINLET_TEST -D'HEADER="inlet_test.h"' -D'ROMS_HEADER="/mnt/home/cyue/coawst/Projects/Inlet_test/Coupled/inlet_test.h"' -DNestedGrids= -D'ANALYTICAL_DIR="/mnt/home/cyue/coawst/Projects/Inlet_test/Coupled"' -D'MY_ANALYTICAL="on"' -D'SVN_URL="https://coawstmodel.sourcerepo.com/coawstmodel/COAWST"' -D'SVN_REV="1484"' -IROMS/Include -I/mnt/home/cyue/coawst/Projects/Inlet_test/Coupled -IROMS/Nonlinear -IROMS/Nonlinear/Biology -IROMS/Nonlinear/Sediment -IROMS/Nonlinear/Wec -IROMS/Nonlinear/Vegetation -IROMS/Utility -IROMS/Drivers -IROMS/Functionals -I/mnt/home/cyue/coawst/Projects/Inlet_test/Coupled -ISWAN/Src -IMaster -ICompilers -D'HEADER_DIR="/mnt/home/cyue/coawst/Projects/Inlet_test/Coupled"' ROMS/Nonlinear/exchange_3d.F > Build/exchange_3d.f90
ROMS/Bin/cpp_clean Build/exchange_3d.f90
/usr/bin/cpp -P -traditional -w -DMPI -DLINUX -DX86_64 -DGFORTRAN -D'ROOT_DIR="/mnt/home/cyue/coawst"' -DINLET_TEST -D'HEADER="inlet_test.h"' -D'ROMS_HEADER="/mnt/home/cyue/coawst/Projects/Inlet_test/Coupled/inlet_test.h"' -DNestedGrids= -D'ANALYTICAL_DIR="/mnt/home/cyue/coawst/Projects/Inlet_test/Coupled"' -D'MY_ANALYTICAL="on"' -D'SVN_URL="https://coawstmodel.sourcerepo.com/coawstmodel/COAWST"' -D'SVN_REV="1484"' -IROMS/Include -I/mnt/home/cyue/coawst/Projects/Inlet_test/Coupled -IROMS/Nonlinear -IROMS/Nonlinear/Biology -IROMS/Nonlinear/Sediment -IROMS/Nonlinear/Wec -IROMS/Nonlinear/Vegetation -IROMS/Utility -IROMS/Drivers -IROMS/Functionals -I/mnt/home/cyue/coawst/Projects/Inlet_test/Coupled -ISWAN/Src -IMaster -ICompilers -D'HEADER_DIR="/mnt/home/cyue/coawst/Projects/Inlet_test/Coupled"' ROMS/Modules/mod_param.F > Build/mod_param.f90
ROMS/Bin/cpp_clean Build/mod_param.f90
/usr/bin/cpp -P -traditional -w -DMPI -DLINUX -DX86_64 -DGFORTRAN -D'ROOT_DIR="/mnt/home/cyue/coawst"' -DINLET_TEST -D'HEADER="inlet_test.h"' -D'ROMS_HEADER="/mnt/home/cyue/coawst/Projects/Inlet_test/Coupled/inlet_test.h"' -DNestedGrids= -D'ANALYTICAL_DIR="/mnt/home/cyue/coawst/Projects/Inlet_test/Coupled"' -D'MY_ANALYTICAL="on"' -D'SVN_URL="https://coawstmodel.sourcerepo.com/coawstmodel/COAWST"' -D'SVN_REV="1484"' -IROMS/Include -I/mnt/home/cyue/coawst/Projects/Inlet_test/Coupled -IROMS/Nonlinear -IROMS/Nonlinear/Biology -IROMS/Nonlinear/Sediment -IROMS/Nonlinear/Wec -IROMS/Nonlinear/Vegetation -IROMS/Utility -IROMS/Drivers -IROMS/Functionals -I/mnt/home/cyue/coawst/Projects/Inlet_test/Coupled -ISWAN/Src -IMaster -ICompilers -D'HEADER_DIR="/mnt/home/cyue/coawst/Projects/Inlet_test/Coupled"' ROMS/Modules/mod_kinds.F > Build/mod_kinds.f90
ROMS/Bin/cpp_clean Build/mod_kinds.f90
cd ./Build; /opt/ohpc/pub/mpi/openmpi3-gnu8/3.1.4/bin/mpif90 -c -frepack-arrays -O3 -ffast-math -O3 -ftree-vectorize -ftree-loop-linear -funroll-loops -w -ffree-form -ffree-line-length-none -frecord-marker=4 -fconvert=big-endian -I/usr/include -Imnt/home/cyue/cooo/MCT/include mod_kinds.f90
f951: Warning: Nonexistent include directory ‘mnt/home/cyue/cooo/MCT/include’ [-Wmissing-include-dirs]
f951: sorry, unimplemented: Graphite loop optimizations cannot be used (isl is not available) (-fgraphite, -fgraphite-identity, -floop-nest-optimize, -floop-parallelize-all)
make: *** [Build/mod_kinds.o] Error 1
Should it be related to MCT compiling? The path does exist.
jcwarner
Posts: 1200 Joined: Wed Dec 31, 2003 6:16 pm
Location: USGS, USA
#4
Unread post
by jcwarner » Sat May 23, 2020 12:51 am
it does not relate to MCT. It has to do with your compiler, maybe the gcc, ?? , maybe the optimizations?
i did a little googling
https://gcc.gnu.org/gcc-4.8/changes.html
that page has some info. i am really not sure, have not seen this one before. looks like a compiler issue, not the code.
cloudy4568
Posts: 39 Joined: Thu Oct 17, 2019 8:56 pm
Location: Clarkson University
#5
Unread post
by cloudy4568 » Mon May 25, 2020 3:19 pm
Thank you, John. You are right, I changed the following code in Compilers/Linux-gfortran.mk:
Code: Select all
FFLAGS += -ftree-vectorize -ftree-loop-linear -funroll-loops -w -ffree-form -ffree-line-length-none -frecord-marker=4 -fconvert=big-endian
to
Code: Select all
FFLAGS += -ftree-vectorize -funroll-loops -w -ffree-form -ffree-line-length-none -frecord-marker=4 -fconvert=big-endian
then coawst.M is compiled completely, and Inlet_test example can be run successfully.
This is compiled with DEBUG=off.
I also tried DEBUG=on, though I can get coawst.G, but there are errors when running examples.
Thank you for your help!