-
Notifications
You must be signed in to change notification settings - Fork 0
/
Argcfile.sh
92 lines (80 loc) · 2.38 KB
/
Argcfile.sh
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
82
83
84
85
86
87
88
89
90
91
92
#!/usr/bin/env bash
set -e
_choice_julia_linux_x86_64_version() {
ls ./install/julia/version/linux-x86_64 | sed 's/\.yaml//g'
}
# @cmd Install Julia for Linux x86_64
# @meta require-tools ansible-playbook
# @option --system![puhti|mahti|lumi]
# @option --version![`_choice_julia_linux_x86_64_version`]
install-julia-linux-x86-64() {
ansible-playbook \
-i hosts.yaml \
-l "${argc_system}" \
-e "system_name=${argc_system}" \
-e "version=${argc_version}" \
-e "arch=linux-x86_64" \
"./install/julia/install.yaml" "$@"
}
_choice_mpi_version() {
ls ./install/mpi/version
}
# @cmd Install MPI.jl preferences
# @meta require-tools ansible-playbook
# @option --system![puhti|mahti|lumi]
# @option --version![`_choice_mpi_version`]
install-mpi() {
ansible-playbook \
-i hosts.yaml \
-l "${argc_system}" \
-e "system_name=${argc_system}" \
-e "version=${argc_version}" \
"./install/mpi/install.yaml" "$@"
}
_choice_cuda_version() {
ls ./install/cuda/version
}
# @cmd Install CUDA.jl preferences
# @meta require-tools ansible-playbook
# @option --system![puhti|mahti]
# @option --version![`_choice_cuda_version`]
install-cuda() {
ansible-playbook \
-i hosts.yaml \
-l "${argc_system}" \
-e "system_name=${argc_system}" \
-e "version=${argc_version}" \
"./install/cuda/install.yaml" "$@"
}
_choice_amdgpu_version() {
ls ./install/amdgpu/version
}
# @cmd Install AMDGPU.jl preferences
# @meta require-tools ansible-playbook
# @option --system=lumi
# @option --version![`_choice_amdgpu_version`]
install-amdgpu() {
ansible-playbook \
-i hosts.yaml \
-l "${argc_system}" \
-e "system_name=${argc_system}" \
-e "version=${argc_version}" \
"./install/amdgpu/install.yaml" "$@"
}
_choice_jupyter_version() {
ls ./install/jupyter/version | sed 's/\.yaml//g'
}
# @cmd Install Jupyter for IJulia.jl
# @meta require-tools ansible-playbook
# @option --system![puhti|mahti|lumi]
# @option --version![`_choice_jupyter_version`]
install-jupyter() {
ansible-playbook \
-i hosts.yaml \
-l "${argc_system}" \
-e "system_name=${argc_system}" \
-e "version=${argc_version}" \
"./install/jupyter/install.yaml" "$@"
}
# See more details at https://github.com/sigoden/argc
eval "$(argc --argc-eval "$0" "$@")"