-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy patheasybuild.txt
81 lines (65 loc) · 2.19 KB
/
easybuild.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
## Instalación centos
sudo yum install -y epel-release
sudo yum install -y Lmod
sudo yum install -y python2-pip
sudo yum install -y wget patch python-keyring zlib-devel openssl-devel libibverbs-devel unzip rpm-build
sudo yum install -y libX11-devel # for node
sudo yum groupinstall -y "Development Tools"
## Instalación ubuntu
sudo apt update
sudo apt install -y lmod
sudo apt install -y python-pip python-dev build-essential
sudo apt install -y wget patch python-keyring zlib1g-dev libssl-dev libibverbs-dev unzip
sudo apt install -y libx11-dev # for node
echo "export PATH=$PATH:/usr/share/lmod/5.8/libexec/" >> ~/.bashrc
echo ". /usr/share/lmod/5.8/init/bash" >> ~/.bashrc
## Seguir aquí...
sudo pip install --upgrade pip
# sudo pip install -U setuptools
echo "export EASYBUILD_PREFIX=/app/.local/easybuild" >> ~/.bashrc
echo "export MODULEPATH=\$EASYBUILD_PREFIX/modules/all:$MODULEPATH" >> ~/.bashrc
source ~/.bashrc
newgrp
wget https://raw.githubusercontent.com/hpcugent/easybuild-framework/develop/easybuild/scripts/bootstrap_eb.py
chmod +x bootstrap_eb.py
python bootstrap_eb.py $EASYBUILD_PREFIX
## Inicio
ml avail EasyBuild
ml load EasyBuild
## Ejemplo FFmpeg
Search the software
eb -S '^ffmpeg'
eb FFmpeg-3.1.3-foss-2016b.eb --try-toolchain-version=2017a --dry-run
eb FFmpeg-3.1.3-foss-2016b.eb --try-toolchain-version=2017a --robot
# to load a module
ml foss/2016b
ml FFmpeg/3.1.3-foss-2016b
# Check all modules avalaible
ml av
# check module laoded
ml list
## Ejemplo Wget
eb -S '^wget'
eb wget-1.17.1-foss-2016a.eb --dry-run
eb wget-1.17.1-foss-2016a.eb --robot
## Ejemplo node
eb -S '^node'
eb nodejs-6.10.3-foss-2017a.eb --robot
### Varios
Para descargar todos los modulos
module purge
## Configuración
eb --show-config
eb --show-full-config
module switch modulefile_old modulefile_new
$ module load lang/R/3.0.2-ictce-5.3.0
$ R --version
R version 3.0.2 (2013-09-25) -- "Frisbee Sailing"
$ module switch lang/R/3.2.0-ictce-7.3.5-Rmpi
## Tests
export TEST_EASYBUILD_MODULES_TOOL=Lmod
python -m test.framework.suite
## Guias
Guia sobre cómo crear un GOALF en EB
https://github.com/hpcugent/easybuild/wiki/Step-by-step-guide
https://ulhpc-tutorials.readthedocs.io/en/latest/basic/getting_started/README/