Skip to content

Commit 84b5c91

Browse files
committed
Fix amd gfx regex
1 parent daae14b commit 84b5c91

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

init/eessi_archdetect.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,11 +275,11 @@ accelpath() {
275275
log "DEBUG" "accelpath: Override variable set as '$EESSI_ACCELERATOR_TARGET_OVERRIDE' "
276276
if [ ! -z $EESSI_ACCELERATOR_TARGET_OVERRIDE ]; then
277277
# Updated regex to allow both NVIDIA and AMD overrides
278-
if [[ "$EESSI_ACCELERATOR_TARGET_OVERRIDE" =~ ^accel/(nvidia/cc[0-9]+|amd/gfx[0-9a-z]+)$ ]]; then
278+
if [[ "$EESSI_ACCELERATOR_TARGET_OVERRIDE" =~ ^accel/(nvidia/cc[0-9]+|amd/gfx[0-9a-f]+)$ ]]; then
279279
echo "$EESSI_ACCELERATOR_TARGET_OVERRIDE"
280280
return 0
281281
else
282-
log "ERROR" "Value of \$EESSI_ACCELERATOR_TARGET_OVERRIDE should match 'accel/nvidia/cc[0-9]+' or 'accel/amd/gfx[0-9a-z]+', but it does not: '$EESSI_ACCELERATOR_TARGET_OVERRIDE'"
282+
log "ERROR" "Value of \$EESSI_ACCELERATOR_TARGET_OVERRIDE should match 'accel/nvidia/cc[0-9]+' or 'accel/amd/gfx[0-9a-f]+', but it does not: '$EESSI_ACCELERATOR_TARGET_OVERRIDE'"
283283
return 1
284284
fi
285285
fi

0 commit comments

Comments
 (0)