|
12 | 12 |
|
13 | 13 | export JUHPC="\e[1;34m[\e[0m \e[1;35mJ\e[0m\e[1;32mU\e[0m\e[1;31mH\e[0m\e[1;31mP\e[0m\e[1;31mC\e[0m\e[1;34m:\e[0m"
|
14 | 14 |
|
| 15 | +export JUHPC_LOGO=$(cat <<'EOF' |
| 16 | +\e[1;35m ██╗\e[0m \e[1;32m██╗ ██╗\e[0m \e[1;31m██╗ ██╗██████╗ ██████╗\e[0m |
| 17 | +\e[1;35m ██║\e[0m \e[1;32m██║ ██║\e[0m \e[1;31m██║ ██║██╔══██╗██╔════╝\e[0m |
| 18 | +\e[1;35m ██║\e[0m \e[1;32m██║ ██║\e[0m \e[1;31m███████║██████╔╝██║ \e[0m |
| 19 | +\e[1;35m██╗ ██║\e[0m \e[1;32m██║ ██║\e[0m \e[1;31m██╔══██║██╔═══╝ ██║ \e[0m |
| 20 | +\e[1;35m╚█████╔╝\e[0m \e[1;32m╚██████╔╝\e[0m \e[1;31m██║ ██║██║ ╚██████╗\e[0m |
| 21 | +\e[1;35m ╚════╝ \e[0m \e[1;32m ╚═════╝ \e[0m \e[1;31m╚═╝ ╚═╝╚═╝ ╚═════╝\e[0m |
| 22 | +EOF |
| 23 | +) |
| 24 | + |
| 25 | +print_logo() { |
| 26 | + echo -e "$JUHPC_LOGO" >&2 |
| 27 | +} |
| 28 | + |
15 | 29 | info() {
|
16 | 30 | local message="$1"
|
17 | 31 | echo -e "$JUHPC $message" >&2
|
@@ -62,6 +76,7 @@ export TMP_JULIAUP_ROOTDIR=$TMP/juliaup
|
62 | 76 |
|
63 | 77 | # Start installation
|
64 | 78 |
|
| 79 | +print_logo |
65 | 80 | info "Starting installation of HPC setup for juliaup, julia and HPC key packages requiring system libraries..."
|
66 | 81 | check_var "JULIAUP_INSTALLDIR" "JUHPC_SETUP_INSTALLDIR"
|
67 | 82 | check_dir "$JUHPC_SETUP_INSTALLDIR"
|
@@ -121,7 +136,7 @@ if [ -n "${JUHPC_CUDA_HOME}" ]; then # Set preference for using the local CUDA
|
121 | 136 | fi
|
122 | 137 |
|
123 | 138 | if [ -n "${JUHPC_ROCM_HOME}" ]; then # Set preference for using the local ROCm runtime in a more stable way (in case the previous would not be valid anymore)
|
124 |
| - julia --project=$JULIA_PREFDIR -e 'using ROCM; ROCM.AMDGPU.ROCmDiscovery.use_artifacts!(false)' |
| 139 | + julia --project=$JULIA_PREFDIR -e 'using AMDGPU; AMDGPU.ROCmDiscovery.use_artifacts!(false)' |
125 | 140 | fi
|
126 | 141 |
|
127 | 142 | if [ -n "${JUHPC_MPI_VENDOR}" ]; then
|
@@ -150,12 +165,17 @@ mkdir -p "$JULIAUP_WRAPPER_BINDIR" || { error "failed to create directory: $JULI
|
150 | 165 | julia -e '
|
151 | 166 | println("""#!/bin/bash
|
152 | 167 |
|
| 168 | +print_logo() { |
| 169 | + echo -e "$(ENV["JUHPC_LOGO"])" >&2 |
| 170 | +} |
| 171 | +
|
153 | 172 | info() {
|
154 | 173 | local message="\$1"
|
155 | 174 | echo -e "$(ENV["JUHPC"]) \$message" >&2
|
156 | 175 | }
|
157 | 176 |
|
158 | 177 | if [ ! -f $(ENV["JULIAUP_BINDIR"])/juliaup ]; then
|
| 178 | + print_logo |
159 | 179 | info "This is the first call to juliaup; juliaup and the latest julia will now be installed. After that, you can use juliaup and julia normally. Installing in $(ENV["JULIAUP_INSTALLDIR"])..."
|
160 | 180 | PATH_OLD=\$PATH
|
161 | 181 | export PATH=\$(echo \$PATH | perl -pe "s|[^:]*juliaup(?:_wrapper)?[^:]*:?||g") # Remove all juliaup paths from PATH
|
|
0 commit comments