This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
institute_lorentz:xmaris [2022/06/10 08:48] – [Xmaris GPUs] lenocil | institute_lorentz:xmaris [2022/06/10 12:47] – [Installing extra software] lenocil | ||
---|---|---|---|
Line 193: | Line 193: | ||
Any pre-installed software can be made available in your environment via the '' | Any pre-installed software can be made available in your environment via the '' | ||
- | It is possible to save a list of modules you use often in a //module collection// | + | It is possible to save a list of modules you use often in a //module collection// |
<code bash> | <code bash> | ||
module load mod1 mod2 mod3 mod4 mod5 mod6 | module load mod1 mod2 mod3 mod4 mod5 mod6 | ||
Line 209: | Line 209: | ||
|TensorFlow-1.15.0-Miniconda3/ | |TensorFlow-1.15.0-Miniconda3/ | ||
- | To create | + | The following example shows how you can create a tensorflow-aware jupyter |
<code bash> | <code bash> | ||
- | # only on maris075 (GPU node) | + | # We use maris075 (GPU node) and load the optimised tf module |
ml load TensorFlow/ | ml load TensorFlow/ | ||
- | pip install --user | + | |
- | pip install --user jupyter-client==5.3.1 | + | # We install ipykernel, because necessary to run py notebooks |
- | ipython kernel install | + | python -m pip install |
+ | |||
+ | # We create a kernel called TFQuantum based on python from TensorFlow/ | ||
+ | python -m ipykernel | ||
+ | |||
+ | # We edit the kernel such that it does not execute python directly | ||
+ | # but via a custom wrapper script | ||
+ | cat $HOME/ | ||
+ | |||
+ | { | ||
+ | " | ||
+ | "/ | ||
+ | "-m", | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | ], | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | } | ||
+ | |||
+ | # The wrapper script will call python but only after loading any | ||
+ | # appropriate module | ||
+ | cat / | ||
+ | |||
+ | #!/bin/env bash | ||
+ | ml load TensorFlow/ | ||
+ | |||
+ | exec python $@ | ||
+ | |||
+ | # DONE. tfquantum will appear in the dropdown list of kernels | ||
+ | # upon creating a new notebook | ||
</ | </ | ||
- | When launching a jupyter notebook remember to specify '' | + | |
=== TensorFlow with Graphviz === | === TensorFlow with Graphviz === | ||
Line 238: | Line 273: | ||
* via a traditional // | * via a traditional // | ||
- | Whatever installation method you might choose, please note that you do not have administrative rights to the cluster. | + | Whatever installation method you might choose, please note that you **do not have** administrative rights to the cluster. |
Line 266: | Line 301: | ||
</ | </ | ||
- | :!: The environment variable '' | + | |:!: The environment variable '' |
- | ml|here]]. | + | ml|here]].| |
- | :!: When compiling OpenBLAS it is not sufficient to define '' | + | |:!: When compiling OpenBLAS it is not sufficient to define '' |
Then execute | Then execute |