1 Notes on installing and running qpms on Triton
2 ==============================================
4 Running anything in a cluster environment can cause some unexpected problems.
5 With these notes, one should be able to run qpms successfully on Aalto's Triton.
7 The main problem is that it is often not completely trivial to ensure
8 the mutual compatibility of various libraries and tools on which qpms depends.
11 ### Installing qpms with anaconda
13 This section shows how to use qpms in an anaconda virtual environment.
14 First, we purge the modules to ensure that no other other conflicting python
16 Then we load an anaconda3 module.
21 Next, conda needs to infect our shell with some code in order to work properly.
22 (If you use a different shell than bash, modify the following command
27 This adds several lines to `~/.bashrc` (or elsewhere, depending on the shell).
28 Then we might be required to restart the shell.
30 Next, we create and activate a virtual environment to be used with qpms.
31 It will be called `trqpms` throughout this document.
32 We will also need to have `cython` installed before even trying to install qpms.
39 Moreover, we need to load the GCC and gsl modules. GCC has to be loaded *after*
40 loading anaconda3 and activating the conda virtual environment, otherwise
41 anaconda will try to use its own (likely broken) compiler when installing qpms.
42 And we also need cmake for building amos.
43 Lastly, we save the list of loaded modules for later use as `qpms_conda`.
48 module save qpms_conda
51 From now on, we need to be in the qpms source root directory.
56 Now it's time to build `amos`. First, we clean all the files previously
57 created by `cmake` (if needed). This is to ensure that `cmake` uses the same
58 `gfortran` that is in the current `PATH`; otherwise, `cmake` might use some
59 Fortran compiler detected earlier (`cmake` apparently does not update
60 that information) and that might later cause mismatch between
64 rm -r CMakeFiles CMakeCache.txt
69 Cmake builds in other directories are not supported right now, as qpms setup
70 scripts now expects certain amos files at fixed relative paths. Therefore
73 And finaly, build qpms.
75 python3 setup.py install
78 At this point, qpms should be installed successfully. If not, this document
81 ### Running qpms with anaconda
83 After installing the qpms python module, one should be able to import it and to
84 use the scripts in the misc directory in the same shell session used
87 To use qpms also later, one has to restore the environment, i.e. load the same
88 modules and activate the anaconda virtual environment.
90 module restore qpms_conda