-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathArgcfile.sh
More file actions
110 lines (96 loc) · 2.96 KB
/
Argcfile.sh
File metadata and controls
110 lines (96 loc) · 2.96 KB
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
#!/usr/bin/env bash
set -e
_choice_julia_version_linux_x86_64() {
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|roihu_cpu]
# @option --version![`_choice_julia_version_linux_x86_64`]
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_julia_version_linux_aarch64() {
ls ./install/julia/version/linux-aarch64 | sed 's/\.yaml//g'
}
# @cmd Install Julia for Linux aarch64 (ARM)
# @meta require-tools ansible-playbook
# @option --system![roihu_gpu]
# @option --version![`_choice_julia_version_linux_aarch64`]
install-julia-linux-aarch64() {
ansible-playbook \
-i hosts.yaml \
-l "${argc_system}" \
-e "system_name=${argc_system}" \
-e "version=${argc_version}" \
-e "arch=linux-aarch64" \
"./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|roihu_cpu|roihu_gpu]
# @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|roihu_gpu]
# @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" "$@")"