Most recent steps for Gateway users
In order to use most recent version of Kepler do following. First of all make sure you have directory imas-kepler
inside your $HOME
Code Block |
---|
> mkdir -p $HOME/imas-kepler/modulefiles |
Make sure to set KEPLER_DIR
variable inside .cshrc
file or to set KEPLER_DIR
just after loading imasenv
Info |
---|
title | More info (technical details) can be found here |
---|
|
You can find more info regarding this installation at ITER: https://confluence.iter.org/display/IMP/2019/05/24/New+release+and+installation+of+IMAS+and+Kepler+on+ITER+cluster |
Info |
---|
title | Make sure to set KEPLER_DIR properly |
---|
|
If you want, you can use KEPLER_DIR variable to set preferred location for all Kepler installations |
Code Block |
---|
> echo "$HOME-kepler" >> ~/.cshrc_kepler
# bash
> export KEPLER_DIR=$ITMWORK/imas_kepler
|
You can use different location if you like. |
Warning |
---|
title | ITM_KEPLER_DIR vs. KEPLER_DIR |
---|
|
In the past, KEPLER_DIR variable was used to set location of user based installations inside ITM. This variable was adapted by IMAS based release of Kepler. If you want to set location of your ITM based Keplers, make sure to use variable ITM_KEPLER_DIR |
Load imasenv/3.23.1
Now, you can load imasenv/3.22.0
module by calling
Code Block |
---|
> setenv KEPLER_DIR ~/imas-kepler
> module load imasenv/3.2223.01 |
By default Note that this module uses kepler/2.5p4-
develop-nll3.0.1
is loaded together with imasenv/3.23.1
Code Block |
---|
> setenv KEPLER_DIR ~/imas-kepler
> module load imasenv/3.2223.01
INFO: No wpcdenv was set. Using default one.
WARNING: Cannot find /afs/eufus.eu/user/g/g2michal/imas-kepler/2.5p4-develop-nll... Run kepler_install_light before running kepler;
INFO: setting KEPLER=/gw/swimas/extra/kepler/2.5p4-develop-nll;
IMAS environment loaded.
Please do not forget to set database by calling 'imasdb <machine_name>' !
|
Now, you can install your personal Kepler installation (please note that since release kepler/2.5p5p4-23.10.5
and 0
and keplertools-1.78.0
it 1
it is possible to switch between different installations of Kepler (- they will not collide).
Code Block |
---|
> kepler_install my_personal_kepler2.5p4-3.0.1
Using KEPLER_DIR at: /afs/eufus.eu/user/g/g2michal/.local/imas-kepler.
Using KEPLER_SRC from KEPLER: /afsgw/eufus.euswimas/userextra/g/g2michal/kepler/2.5p4-develop-nllkeplertools/1.8.0.
mkdir: created directory ?/afs/eufus.eu/user/g/g2michal/imas-.local/kepler/my_personal_kepler?2.5p4-3.0.1
mkdir: created directory ?/afs/eufus.eu/user/g/g2michal/.local/imas-kepler/my_personal_kepler2.5p4-3.0.1/.kepler?
mkdir: created directory ?/afs/eufus.eu/user/g/g2michal/.local/imas-kepler/my_personal_kepler2.5p4-3.0.1/.ptolemyII?
mkdir: created directory ?/afs/eufus.eu/user/g/g2michal/imas-.local/kepler/my_personal_kepler2.5p4-3.0.1/KeplerData?
Done installing /afs/eufus.eu/user/g/g2michal/imas-.local/kepler/my_personal_kepler2.5p4-3.0.1/kepler.
?/gw/swimas/extra/keplertools/1.78.1/share/modulefiles/kepler? -> ?/afs/eufus.eu/user/g/g2michal/imas-.local/kepler/modulefiles/kepler/my_personal_kepler?2.5p4-3.0.1
Kepler was installed inside /afs/eufus.eu/user/g/g2michal/imas-.local/kepler/my_personal_kepler2.5p4-3.0.1
Its module file is: /afs/eufus.eu/user/g/g2michal/imas-.local/kepler/modulefiles/kepler/my_personal_kepler2.5p4-3.0.1
To see available installations: kepler_avail
To remove this installation, run: kepler_remove my_2.5p4-3.0.1
To load this environment, run: kepler_load my_2.5p4-3.0.1
( or module switch kepler/my_personal_kepler
To see available installations: module avail kepler load /afs/eufus.eu/user/g/g2michal/.local/kepler/modulefiles/kepler/my_2.5p4-3.0.1 ) |
Warning |
---|
|
Note that by default, Kepler is installed inside $HOME/.local/kepler . You can change this location by setting KEPLER_DIR variable Code Block |
---|
# tcsh
> mkdir $ITMWORK/my_imas_keplers
> setenv KEPLER_DIR $ITMWORK/my_imas_keplers# tcsh
# bash
> mkdir $ITMWORK/my_imas_keplers
> export KEPLER_DIR=$ITMWORK/my_imas_keplers
|
|
Now, you can list your own Kepler installations by calling
Code Block |
---|
> kepler_avail
Using KEPLER_DIR at: |
Info |
---|
|
---------------------------------------------------------- /afs/eufus.eu/user/g/g2michal /imas-kepler/modulefiles ----------------------------------------------------------- kepler/my_personal_kepler/.local/kepler.
Available local installations (* currently loaded):
* my_2.5p4-3.0.1 : /gw/swimas/extra/kepler/2.5p4-3.0.1 keplertools/1.8.1
WARNING: KEPLER is not in KEPLER_DIR (/afs/eufus.eu/user/g/g2michal/.local/kepler)! |
As you can see, your personal Kepler installations are available via modules. In order to switch to given version of Kepler you need to switch the module
Code Block |
---|
> module switch kepler/my_personal_keplerkepler_load my_2.5p4-3.0.1 |
Once you have set version of Kepler, you can run it by typing kepler
Code Block |
---|
> kepler
The base dir is /afs/eufus.eu/g2itmdev/user/g2michal/.local/imas-kepler/my_personal_kepler2.5p4-3.0.1/kepler
Kepler.run going to run.setMain(org.kepler.Kepler)
JVM Memory: min = 256m1G, max = 1000m8G, stack = 1m20m, maxPermGen = default
...
... |