HCJung-jbnu / Autocoding

0 stars 0 forks source link

GloSea6, GNU+nvptx 11.3.1 compile #3

Closed HyunChaeJung closed 1 year ago

HyunChaeJung commented 1 year ago

[openmpi 4.0.7]

[GCOM]

[zlib]

[hdf5]

[netcdf-c]

[netcdf-fortran]

[cmake]

[eccodes]

cmake -D CMAKE_C_COMPILER=... -D CMAKE_C_COMPILER=... -D CMAKE_INSTALL_PREFIX=/usr/local/eccodes/2.9.2/GNU/11.3 ../

- cmake -DCMAKE_FORTRAN_COMPILER=/data1/home/synim/offload/install/bin/gfortran -DCMAKE_C_COMPILER=/data1/home/synim/offload/install/bin/gcc -DCMAKE_INSTALL_PREFIX=/data1/home/synim/Library/GNU1131/eccodes/2.9.2 ../
- make
- make install
- ctest

### [OASIS3-MCT]
- vi make.inc

include $(HOME)/oasis3-mct_4.0/util/make_dir/make.gfortran_openmpi_linux

- vi make.gfortran_openmpi_linux

ARCHDIR = $(COUPLE)/compile_oa3-mct_gnu_openmpi

MPIDIR = /data1/home/synim/Library/GNU1131/openmpi/4.0.7 NETCDF_INCLUDE1 = /data1/home/synim/Library/GNU1131/netcdf/4.7.3/include NETCDF_INCLUDE2 = /data1/home/synim/Library/GNU1131/netcdf/netcdf-fortran-4.4.4/include NETCDF_LIBRARY = -L/data1/home/synim/Library/GNU1131/netcdf/4.7.3/lib -L/data1/home/synim/Library/GNU1131/netcdf/netcdf-fortran-4.4.4/lib -lnetcdff -lnetcdf

F90 = $(MPIBIN)/mpif90 -I$(MPI_INCLUDE) -fallow-argument-mismatch F90FLAGS_1 = -ffree-line-length-none #-fopenmp LDFLAGS = #-fopenmp

- make cleanlibs -f TopMakefileOasis3
- make -f TopMakefileOasis3

### [XIOS]
- vi arch-GCC_LINUX.fcm

%BASE_FFLAGS -DNONE -Wno-maybe-uninitialized -Wno-unused-dummy-argument -Wno-unused-parameter -Wno-compare-reals -Wno-integer-division -ffree-line-length-none -fallow-argument-mismatch

- vi arch-GCC_LINUX.env

export MPI_INC_DIR=$MPICH_HOME/include export MPI_LIB_DIR=$MPICH_HOME/lib export HDF5_INC_DIR=$HDF5_HOME/include export HDF5_LIB_DIR=$HDF5_HOME/lib export NETCDF_INC_DIR=$NETCDF/include export NETCDF_LIB_DIR=$NETCDF/lib export NETCDFF_INC_DIR=$NETCDFF/include export NETCDFF_LIB_DIR=$NETCDFF/lib

- vi arch-GCC_LINUX.path

NETCDF_INCDIR="-I$NETCDF/include -I$NETCDFF/include" NETCDF_LIBDIR="-L$NETCDF/lib -L$NETCDFF/lib" NETCDF_LIB="-lnetcdff -lnetcdf"

MPI_INCDIR="-I$MPICH_HOME/include" MPI_LIBDIR="-L$MPICH_HOME/lib" MPI_LIB="-lmpi"

HDF5_INCDIR="-I$HDF5_HOME/include" HDF5_LIBDIR="-L$HDF5_HOME/lib" HDF5_LIB="-lhdf5_hl -lhdf5 -lhdf5 -lz"

BOOST_INCDIR="" BOOST_LIBDIR="" BOOST_LIB=""

OASIS_INCDIR="" OASIS_LIBDIR="" OASIS_LIB=""


- ./make_xios --prod --full --arch GCC_LINUX --jobs 8
HyunChaeJung commented 1 year ago

[CTLDATA1, fcm:um.xm/tags/vn11.3]

[CTLDATA2, fcm:um.xm_br/dev/synim/r20_um.xm_tr_vn11.3_LowGS6]

$ccflags{?} = -g -O3 -std=c99 -Wall -Wextra -Wformat=2 -Winit-self \ \ -Wfloat-equal -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align \ \ -Wconversion -Wlogical-op -Wstrict-prototypes -Wmissing-declarations \ \ -Wredundant-decls -Wnested-externs -Woverlength-strings $ccflags_omp \ \ -fdiagnostics-show-option -Wno-format-truncation

- vi ~/r20_um.xm_tr_vn11.3_LowGS6/fcm-make/kma-x86-gnu/um-utils-mpp-high.cfg, um-createbc-high.cfg, um-libs-high.cfg, um-utils-serial-high.cfg 

$fcflags_level = -O3 #-Werror


- vi ./r20_um.xm_tr_vn11.3_LowGS6/fcm-make/kma-x86-gnu/inc/external_paths.cfg

$gcom_root_path{?} = $lib_root_path/gcom/gcom6.8_gcc_openmpi $eccodes_root_path{?} = /data1/home/synim/Library/GNU1131/eccodes/2.9.2 $prism_path{?} = /data1/home/synim/oasis3-mct_4.0/compile_oa3-mct_gnu_openmpi $netcdf_path{?} = /data1/home/synim/Library/GNU1131/netcdf/4.7.3 $netcdff_path{?} = /data1/home/synim/Library/GNU1131/netcdf/netcdf-fortran-4.4.4

HyunChaeJung commented 1 year ago

[MOCI 설정 변경, fcm:moci.xm_br/dev/synim/r22_r2065_moci.xm_tr]

HyunChaeJung commented 1 year ago

[Suite 설정 변경, fcm:kmt.xm/a/b/3/4/7/r3316_N96eORCA1_kmt-ab447_mirae]

fcflags_nemo_overrides=-fstack-arrays -ftree-vectorize -Wmissing-include-dirs -Wall -Wextra -fcheck=all -I/data1/home/synim/Library/GNU1131/netcdf/4.7.3/include -L/data1/home/synim/Library/GNU1131/netcdf/4.7.3/lib -I/data1/home/synim/Library/GNU1131/netcdf/netcdf-fortran-4.4.4/include -L/data1/home/synim/Library/GNU1131/netcdf/netcdf-fortran-4.4.4/lib -lnetcdf -lnetcdff -ffree-line-length-512 -Wno-compare-reals -finit-real=ZERO -finit-integer=0 -fdefault-real-8 -fdefault-double-8 -fallow-argument-mismatch

fcflags_prec=-fdefault-real-8 -fdefault-double-8 -fallow-argument-mismatch

config_root_path=fcm:moci.xm_br/dev/synim/r22_r2065_moci.xm_tr prism_path = /data1/home/synim/oasis3-mct_4.0/compile_oa3-mct_gnu_openmpi xios_path=/data1/home/synim/xios-2.0_clena

- vi ./r3316_N96eORCA1_kmt-ab447_mirae/rose-suite.conf

gcom_path='/data1/home/synim/TI/gcom/gcom6.8_gcc_openmpi/kma_linux_gfortran_mpich3/build'

- vi ./r3316_N96eORCA1_kmt-ab447_mirae/app/fcm_make_um/rose-app.conf

config_root_path=fcm:um.xm_br/dev/synim/r20_um.xm_tr_vn11.3_LowGS6 prism_path=/data1/home/synim/oasis3-mct_4.0/compile_oa3-mct_gnu_openmpi

- vi ./r3316_N96eORCA1_kmt-ab447_mirae/app/fcm_make_ocean/file/fcm-make.cfg

$flags_coupling = -I\$prism_path/build/lib/psmile.MPI1 -I\$xios_path/inc -I\$prism_path/build/lib/mct -I\$prism_path/build/lib/mctdir -I\$prism_path/build/lib/scrip

HyunChaeJung commented 1 year ago

[UM src original code : rivision 38]

HyunChaeJung commented 1 year ago

[NEMO, CICE src original code : revision head]

HyunChaeJung commented 1 year ago

[UM src 수정, fcm:um_nims/branches/dev/synim/r68449_vn11.3_GloSeaFixes_gnu11]