IT wiki

VU MIF STSC

User Tools

Site Tools


en:hpc

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
en:hpc [2022/04/14 13:24] grikieteen:hpc [2022/04/14 13:33] grikiete
Line 13: Line 13:
  
 The processor below = CPU = core - a single core of the processor (with all hyperthreads if they are turned on). The processor below = CPU = core - a single core of the processor (with all hyperthreads if they are turned on).
 +
 +====== Software ======
 +
 +**main** and **gpu** are installed [[https://docs.qlustar.com/Qlustar/11.0/HPCstack/hpc-user-manual.html|Qlustar 11]] operating system (OS) with Linux core. It is created Ubuntu 18.04 LTS based. **power** is installed Ubuntu 18.04 LTS.
 +
 +You can check the list of OS package with the command ''dpkg -l'' (in log in node **hpc** or in **power** nodes).
 +
 +Su komanda [[https://sylabs.io/guides/3.2/user-guide/index.html|singularity]] galima pasinaudoti jau paruoštomis konteinerių failų kopijomis kataloguose ''/apps/local/hpc'', ''/apps/local/nvidia'', ''/apps/local/intel'', ''/apps/local/lang'' arba pačiam atsisiųsti iš singularity ir docker internetinių katalogų. Pasinaudojus MIF cloud paslauga galima susikurti ir savo singularity konteinerius.
 +
 +Su singularity galite paruošti savo konteinerį, pvz:
 +<code shell>
 +$ singularity build --sandbox /tmp/python docker://python:3.8
 +$ singularity exec -w /tmp/python pip install paketas
 +$ singularity build python.sif /tmp/python
 +$ rm -rf /tmp/python
 +</code>
 +Analogiškai galima pasinaudoti R, Julia ar kitais konteineriais, kuriuose paketams instaliuoti nereikia naudotojo root teisių.
 +
 +Jeigu norima papildyti singularity kontainerį OS paketais, tam reikia root/superuser teisių. Su fakeroot jas simuliuojame, o jam reikalingą biblioteką ''libfakeroot-sysv.so'' kopijuojame į konteinerį, pvz:
 +<code shell>
 +$ singularity build --sandbox /tmp/python docker://ubuntu:18.04
 +$ cp /libfakeroot-sysv.so /tmp/python/
 +$ fakeroot -l /libfakeroot-sysv.so singularity exec -w /tmp/python apt-get update
 +$ fakeroot -l /libfakeroot-sysv.so singularity exec -w /tmp/python apt-get install python3.8 ...
 +$ fakeroot -l /libfakeroot-sysv.so singularity exec -w /tmp/python apt-get clean
 +$ rm -rf /tmp/python/libfakeroot-sysv.so /tmp/python/var/lib/apt/lists (galima ir daugiau išvalyti, ko nereikia)
 +$ singularity build python.sif /tmp/python
 +$ rm -rf /tmp/python
 +</code>
 +
 +Kataloge ''/apps/local/bigdata'' yra paruošti scenarijai pasileisti savo **hadoop** užduotis pasinaudojant [[https://github.com/LLNL/magpie|Magpie]] rinkiniu.
 +
 +Su [[https://hpc.mif.vu.lt/hub/|JupyterHub]] galite interneto naršyklės pagalba vykdyti skaičiavimus su python komandų eilute ir pasinaudoti [[https://jupyter.org|JupyterLab]] aplinka. Jeigu savo namų kataloge instaliuosite savo JupyterLab aplinką, tai reikia instaliuoti papildomai ''batchspawner'' paketą - tada jums startuos jūsų aplinką, pvz:
 +
 +<code shell>
 +$ python3.7 -m pip install --upgrade pip setuptools wheel
 +$ python3.7 -m pip install --ignore-installed batchspawner jupyterlab
 +</code>
 +
 +Taip pat jūs galite pasinaudoti savo pasidarytu konteineriu per JupyterHub. Tame konteineryje reikia instaliuoti ''batchswapner'' ir ''jupyterlab'' paketus bei sukurti script'ą ''~/.local/bin/batchspawner-singleuser'' su vykdymo teisėmis (''chmod +x ~/.local/bin/batchspawner-singleuser'')
 +<code shell>
 +#!/bin/sh
 +exec singularity exec --nv myjupyterlab.sif batchspawner-singleuser "$@"
 +</code>
en/hpc.txt · Last modified: 2024/02/21 12:50 by rolnas

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki