Skip to content

Commit 7d45c78

Browse files
committed
Keep install.sh diagnostics in parity with the install.ps1 xpu family
install.ps1 now classifies an /xpu index leaf as family xpu / branch xpu, so mirror the same two cases in _tauri_torch_index_family and _tauri_gpu_branch. These feed the [TAURI:DIAG] line only, and a Linux user can already reach the xpu index via UNSLOTH_TORCH_INDEX_FAMILY, where it previously reported auto/unknown. Linux Intel auto-detection is not added here.
1 parent b88db27 commit 7d45c78

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

install.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,7 @@ _tauri_torch_index_family() {
487487
*/cu128) echo "cu128" ;;
488488
*/cu130) echo "cu130" ;;
489489
*/cpu) echo "cpu" ;;
490+
*/xpu) echo "xpu" ;;
490491
*/rocm[0-9]*.[0-9]*)
491492
_diag_family=${_diag_url##*/}
492493
case "$_diag_family" in
@@ -522,6 +523,7 @@ _tauri_gpu_branch() {
522523
echo "rocm"
523524
fi ;;
524525
radeon) echo "rocm_radeon" ;;
526+
xpu) echo "xpu" ;;
525527
cpu) echo "cpu" ;;
526528
none) echo "no_torch" ;;
527529
*) echo "unknown" ;;

0 commit comments

Comments
 (0)