Skip to content

Commit 31f620c

Browse files
committed
Updated basics
1 parent 657052a commit 31f620c

File tree

1 file changed

+31
-38
lines changed

1 file changed

+31
-38
lines changed

content/basics/basics.rst

Lines changed: 31 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ download and unpack a release
1010

1111
.. code-block:: bash
1212
13-
wget https://github.com/UppASD/UppASD/archive/refs/tags/v6.0.1.tar.gz
14-
tar xvzf v6.0.1.tar.gz
13+
wget https://github.com/UppASD/UppASD/archive/refs/tags/v6.0.2.tar.gz
14+
tar xvzf v6.0.2.tar.gz
1515
cd UppASD
1616
1717
or clone the git repository
@@ -36,34 +36,37 @@ UppASD on Dardel
3636
UppASD is available on the HPE Cray EX supercomputer
3737
`Dardel <https://www.pdc.kth.se/hpc-services/computing-systems/about-dardel-1.1053338>`_
3838
as a centrally installed software
39-
`UppASD <https://www.pdc.kth.se/software/software/UppASD/index_general.html>`_.
39+
`UppASD <https://support.pdc.kth.se/doc/applications/uppasd/>`_.
4040

4141
To build UppASD on Dardel with a Gnu toolchain and the Cray compiler wrappers
4242

4343
.. code-block:: bash
4444
45-
ml PrgEnv-gnu/8.2.0
46-
make deps
47-
make gfortran-ftn
45+
ml PrgEnv-gnu/8.6.0
46+
ml cmake/4.0.1
47+
mkdir buildGnu
48+
cd buildGnu
49+
cmake ..
50+
make -j 8
4851
49-
Run one of the testsuites, for instance *asd-tests*
52+
Run one of the testsuites, for instance *test*
5053

5154
.. code-block:: bash
5255
53-
make asd-tests
56+
make test
5457
55-
To set up a Python environment for the graphical user interface, the first step
56-
is to follow instructions on how to
57-
`load and activate Anaconda on Dardel. <https://www.pdc.kth.se/software/software/python/cpe21.11/3.8.8/index_using.html>`_.
58-
A conda environment can then be built with
58+
To set up a Python environment for the graphical user interface, the preferred route is
59+
to use Python venv or virtualenv and install with pip.
5960

6061
.. code-block:: bash
6162
63+
ml cray-python/3.11.7
64+
python -m venv asd_gui_env
65+
. asd_gui_env/bin/activate
66+
pip install numpy matplotlib pyyaml pandas pyqt6==6.4.2 pyqt6-qt6==6.4.2 vtk
67+
cd ASD_GUI
68+
pip install .
6269
ml PDC/21.11
63-
ml Anaconda3/2021.05
64-
source ~/conda.init.sh
65-
conda create --name ASD_GUI_env python=3.6 vtk=8.1.0 numpy scipy matplotlib yaml pyyaml pandas jsoncpp=1.8.3 tbb=2020.2
66-
conda activate ASD_GUI_env
6770
6871
UppASD can be run on nodes allocated for interactive use, or as batch jobs.
6972
To request 4 cores on the shared partition of Dardel for one hour, use the command
@@ -74,15 +77,6 @@ To request 4 cores on the shared partition of Dardel for one hour, use the comma
7477
7578
where ``project name`` needs to be replaced with the name of an active compute project.
7679

77-
At the UppASD Autumn School 20222, reservations have been set up for dedicated nodes.
78-
To request 8 cores on the reserved nodes for one hour, use the command
79-
80-
.. code-block:: bash
81-
82-
salloc -n 8 -t 1:00:00 -p shared -A edu22.uppasd --reservation=uppasd-2022-10-11
83-
84-
where in the name of the reservation, the date needs to be set to *today*.
85-
8680
A typical output will look like
8781

8882
.. code-block:: bash
@@ -103,9 +97,7 @@ you can use the template jobscript
10397

10498
.. code-block:: bash
10599
106-
#!/bin/bash -l
107-
# The -l above is required to get the full environment with modules
108-
100+
#!/bin/bash
109101
#SBATCH -A <project name> # Set the allocation to be charged for this job
110102
#SBATCH -J myjob # The name of the script is myjob
111103
#SBATCH -t 02:00:00 # 2 hours wall-clock time
@@ -135,25 +127,26 @@ To build UppASD on Tetralith with an Intel toolchain
135127

136128
.. code-block:: bash
137129
138-
ml buildenv-intel/2018a-eb
139-
make deps
140-
make ifort
130+
ml buildenv-intel/2023a-eb
131+
mkdir buildGnu
132+
cd buildGnu
133+
cmake ..
134+
make -j 8
141135
142-
Run one of the testsuites, for instance *asd-tests*
136+
Run one of the testsuites, for instance *test*
143137

144138
.. code-block:: bash
145139
146-
make asd-tests
140+
make test
147141
148142
To set up a Python environment for the graphical user interface
149143

150144
.. code-block:: bash
151145
152-
ml Anaconda/2020.07-nsc1
153-
conda create --name ASD_GUI_env python=3.6 vtk=8.1.0 numpy scipy matplotlib yaml pyyaml pandas jsoncpp=1.8.3 tbb=2020.2
154-
conda activate ASD_GUI_env
155-
# Set the environment variable
156-
export MESA_GL_VERSION_OVERRIDE=3.3
146+
ml Python/3.11.5-env-hpc1-gcc-2023b-eb
147+
python -m venv asd_gui_env
148+
. asd_gui_env/bin/activate
149+
pip install asd_gui
157150
158151
UppASD can be run on nodes allocated for interactive use, or as batch jobs.
159152
To request 1 node on Tetralith for 1 hour, use the command

0 commit comments

Comments
 (0)