| 1 | |
|---|
| 2 | ***** en parallele dans LMDZ.UNIVERSAL |
|---|
| 3 | --> ciclad |
|---|
| 4 | makelmdz_fcm -d 64x48x20 -arch CICLADifort -parallel mpi -p generic gcm |
|---|
| 5 | makelmdz_fcm -d 64x48x20 -arch CICLADifort -parallel mpi -p generic -debug gcm |
|---|
| 6 | --> gnome |
|---|
| 7 | makelmdz_fcm -d 128x96x20 -arch GNOMEp -parallel mpi -p generic gcm |
|---|
| 8 | |
|---|
| 9 | **** sequentiel dans LMDZ.UNIVERSAL |
|---|
| 10 | makelmdz_fcm -d 64x48x20 -arch CICLADifort-seq -p generic -debug gcm |
|---|
| 11 | |
|---|
| 12 | **** pour comparer avec LMDZ.GENERIC (compiler dans le dossier de simu avec le lien absolu) |
|---|
| 13 | **** (attention il faut utiliser un traceur.def legerement different) |
|---|
| 14 | /home/spiga/MODELES/LMDZ.GENERIC/makegcm -d 64x48x20 -t 2 gcm |
|---|
| 15 | **** ou plutot pour ne pas s'embeter avec les traceurs et regler peu de bandes |
|---|
| 16 | /home/spiga/MODELES/LMDZ.GENERIC/makegcm -d 64x48x20 -t 0 -s 1 -b 3x2 gcm |
|---|
| 17 | **** (attention il faut utiliser un traceur.def legerement different) |
|---|
| 18 | |
|---|
| 19 | **** ETAT INITIAUX |
|---|
| 20 | **** POUR LE MOMENT DANS LMDZ.GENERIC |
|---|
| 21 | --> pour start2archive (pas sur qu'il faille encore NOTRAC) |
|---|
| 22 | /home/spiga/MODELES/LMDZ.GENERIC/makegcm -d 64x48x20 -t 0 -debug -cpp NOTRAC start2archive > logcomp |
|---|
| 23 | --> pour newstart |
|---|
| 24 | /home/spiga/MODELES/LMDZ.GENERIC/makegcm -d 64x48x20 -t 0 newstart |
|---|
| 25 | /home/spiga/MODELES/LMDZ.GENERIC/makegcm -d 128x96x20 -t 0 -debug -cpp NOTRAC newstart |
|---|
| 26 | |
|---|
| 27 | -------------------------------------------------- |
|---|
| 28 | FOR LARGE DOMAINS (sur gnome au dela de 256x192) |
|---|
| 29 | 1. recompile netcdf (see below) |
|---|
| 30 | 2. apply patches for large domains in LMDZ.GENERIC (this is for newstart) |
|---|
| 31 | 3. compile with -arch GNOMEp_large |
|---|
| 32 | makelmdz_fcm -d 256x256x20 -arch GNOMEp_large -parallel mpi -p generic gcm |
|---|
| 33 | -------------------------------------------------- |
|---|
| 34 | |
|---|
| 35 | profiling |
|---|
| 36 | ajouter -pg |
|---|
| 37 | compiler lancer |
|---|
| 38 | puis gprof executable > prof.out |
|---|
| 39 | |
|---|
| 40 | |
|---|
| 41 | -------------------------------------------------- |
|---|
| 42 | NETCDF RECOMPILE FOR LARGE DOMAINS |
|---|
| 43 | -------------------------------------------------- |
|---|
| 44 | |
|---|
| 45 | |
|---|
| 46 | >>> Prepare things for install: |
|---|
| 47 | gunzip netcdf.tar.gz |
|---|
| 48 | tar xf netcdf.tar |
|---|
| 49 | cd netcdf-4.0.1 |
|---|
| 50 | |
|---|
| 51 | export CPP="icc -E" |
|---|
| 52 | export F77=ifort |
|---|
| 53 | export FFLAGS="-O2 -ip -no-prec-div -mcmodel=large -shared-intel -fPIC" |
|---|
| 54 | export F90=ifort |
|---|
| 55 | export FCFLAGS="-O2 -ip -no-prec-div -mcmodel=large -shared-intel -fPIC" |
|---|
| 56 | export CC=icc |
|---|
| 57 | export CFLAGS="-O2 -ip -no-prec-div -mcmodel=large -shared-intel -fPIC" |
|---|
| 58 | export CXX=icpc |
|---|
| 59 | export CXXFLAGS="-O2 -ip -no-prec-div -mcmodel=large -shared-intel -fPIC" |
|---|
| 60 | #export LDFLAGS="-mcmodel=large -shared-intel -fPIC" |
|---|
| 61 | |
|---|
| 62 | |
|---|
| 63 | make clean |
|---|
| 64 | |
|---|
| 65 | ./configure --prefix=/san/home/spiga/netcdf.4.0.1 --enable-shared > configure.log 2>&1 |
|---|
| 66 | |
|---|
| 67 | >>> go for it ! |
|---|
| 68 | make > make.log 2>&1 |
|---|
| 69 | >>>> some warnings, but no errors |
|---|
| 70 | >> Tests: |
|---|
| 71 | make test > make_test.log 2>&1 |
|---|
| 72 | >>>> Everything seems OK |
|---|
| 73 | |
|---|
| 74 | make install > make_install.log 2>&1 |
|---|
| 75 | |
|---|
| 76 | |
|---|
| 77 | -Wl,-rpath -Wl, |
|---|
| 78 | |
|---|
| 79 | ---------------------------------------------------------------------- |
|---|
| 80 | Libraries have been installed in: |
|---|
| 81 | /san/home/spiga/netcdf.4.0.1/lib |
|---|
| 82 | |
|---|
| 83 | If you ever happen to want to link against installed libraries |
|---|
| 84 | in a given directory, LIBDIR, you must either use libtool, and |
|---|
| 85 | specify the full pathname of the library, or use the `-LLIBDIR' |
|---|
| 86 | flag during linking and do at least one of the following: |
|---|
| 87 | - add LIBDIR to the `LD_LIBRARY_PATH' environment variable |
|---|
| 88 | during execution |
|---|
| 89 | - add LIBDIR to the `LD_RUN_PATH' environment variable |
|---|
| 90 | during linking |
|---|
| 91 | - use the `-Wl,-rpath -Wl,LIBDIR' linker flag |
|---|
| 92 | - have your system administrator add LIBDIR to `/etc/ld.so.conf' |
|---|
| 93 | |
|---|
| 94 | See any operating system documentation about shared libraries for |
|---|
| 95 | more information, such as the ld(1) and ld.so(8) manual pages. |
|---|
| 96 | ---------------------------------------------------------------------- |
|---|
| 97 | |
|---|
| 98 | |
|---|
| 99 | |
|---|
| 100 | vieilles notes lorsqu'on etait avec LMDZ5 et pas LMDZ.COMMON |
|---|
| 101 | |
|---|
| 102 | faire descendre |
|---|
| 103 | http://svn.lmd.jussieu.fr/LMDZ/LMDZ5/trunk |
|---|
| 104 | |
|---|
| 105 | svn co http://svn.lmd.jussieu.fr/LMDZ/LMDZ5/trunk LMDZ5 |
|---|
| 106 | |
|---|
| 107 | cd LMDZ5/libf |
|---|
| 108 | executer |
|---|
| 109 | $MOD/LMDZ.GENERIC/libf/phystd/for_lmdz5/linkgen.sh |
|---|
| 110 | |
|---|
| 111 | |
|---|
| 112 | faire generatedoth.sh dans phygeneric |
|---|
| 113 | (ou alors modifier makelmdz_fcm) |
|---|
| 114 | |
|---|
| 115 | |
|---|
| 116 | penser | compiler IOIPSL voir dans LMDZ.COMMON |
|---|
| 117 | puis modifier arch.path |
|---|
| 118 | et compiler et c'est bon |
|---|
| 119 | |
|---|
| 120 | EN FAIT LE CICLAD IFORT EST AUSSI VALABLE SUR LES MACHINES DU LMD |
|---|
| 121 | mais IL FAUT ENLEVER LES OPTIONS APRES NC_DOUBLE |
|---|
| 122 | |
|---|
| 123 | makelmdz_fcm -d 48x36x19 -arch CICLADifort -parallel mpi -p dev gcm > log_makelmdz_fcm & |
|---|
| 124 | ou pas dev |
|---|
| 125 | makelmdz_fcm -d 48x36x19 -arch CICLADifort -parallel mpi -p dev gcm |
|---|
| 126 | makelmdz_fcm -d 128x96x20 -arch GNOMEp -parallel mpi -p generic gcm |
|---|
| 127 | |
|---|
| 128 | pour initialisation idealisee, qqch comme iniaqua dans phyaqua ??? |
|---|
| 129 | |
|---|