|
149 | 149 |
|
150 | 150 | # make sure the the software and modules directory exist |
151 | 151 | # (since it's expected by init/eessi_environment_variables when using archdetect and by the EESSI module) |
152 | | - mkdir -p ${EESSI_PREFIX}/software/${EESSI_OS_TYPE}/${EESSI_SOFTWARE_SUBDIR_OVERRIDE}/{modules,software} |
| 152 | + mkdir -p -v ${EESSI_PREFIX}/software/${EESSI_OS_TYPE}/${EESSI_SOFTWARE_SUBDIR_OVERRIDE}/{modules,software} |
153 | 153 |
|
154 | 154 | # If EESSI_ACCELERATOR_TARGET_OVERRIDE is defined, we are building for an accelerator target |
155 | 155 | # In that case, make sure the modulepath for the accelerator subdir exists, otherwise the EESSI module will not |
|
160 | 160 | # Note that ${EESSI_PREFIX}/software/${EESSI_OS_TYPE}/${EESSI_SOFTWARE_SUBDIR_OVERRIDE}/${EESSI_ACCELERATOR_TARGET_OVERRIDE}/modules/all |
161 | 161 | # is only the correct path if EESSI_ACCEL_SOFTWARE_SUBDIR_OVERRIDE is not set |
162 | 162 | if [ -z $EESSI_ACCEL_SOFTWARE_SUBDIR_OVERRIDE ]; then |
163 | | - mkdir -p ${EESSI_PREFIX}/software/${EESSI_OS_TYPE}/${EESSI_SOFTWARE_SUBDIR_OVERRIDE}/${EESSI_ACCELERATOR_TARGET_OVERRIDE}/modules/all |
| 163 | + mkdir -p -v ${EESSI_PREFIX}/software/${EESSI_OS_TYPE}/${EESSI_SOFTWARE_SUBDIR_OVERRIDE}/${EESSI_ACCELERATOR_TARGET_OVERRIDE}/modules/all |
164 | 164 | else |
165 | 165 | # At runtime, one might want to use a different CPU subdir for a given accelerator. E.g. one could use |
166 | 166 | # a zen2 CPU subdir on a zen4 node if the required GPU software isn't available in the zen4 tree. |
|
368 | 368 | fi |
369 | 369 |
|
370 | 370 | # use PR patch file to determine in which easystack files stuff was added |
371 | | -changed_easystacks=$(cat ${pr_diff} | grep '^+++' | cut -f2 -d' ' | sed 's@^[a-z]/@@g' | grep 'easystacks/.*yml$' | egrep -v 'known-issues|missing') |
| 371 | +# Note that we exclude the scripts/gpu_support/ dir, since those are not meant to be built in the |
| 372 | +# software-layer, but they are helper easystacks for installing e.g. CUDA in host_injections |
| 373 | +changed_easystacks=$(cat ${pr_diff} | grep '^+++' | cut -f2 -d' ' | sed 's@^[a-z]/@@g' | grep 'easystacks/.*yml$' | egrep -v 'known-issues|missing' | (grep -v "scripts/gpu_support/" || true)) |
372 | 374 | if [ -z "${changed_easystacks}" ]; then |
373 | 375 | echo "No missing installations, party time!" # Ensure the bot report success, as there was nothing to be build here |
374 | 376 | else |
|
0 commit comments