Skip to content
Prev Previous commit
Tighten comments on the amd-smi removal
  • Loading branch information
danielhanchen committed Nov 27, 2026
commit 041afc4b123e572856d9ea190cc2d47a7ddd1f8f
3 changes: 1 addition & 2 deletions install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -8865,8 +8865,7 @@ main()
function Test-OtherVendorAdapterPresent {
param($Scan = $null)
if ($null -eq $Scan) { $Scan = Invoke-BoundedVideoControllerScan }
# AMD evidence the AMD route finds without WMI (override, the installer's forwarded arch, HIP SDK)
# vetoes too.
# AMD evidence found without WMI (override, forwarded arch, HIP SDK) vetoes too.
if ("$env:UNSLOTH_ROCM_GFX_ARCH".Trim() -or "$env:_UNSLOTH_ROCM_GFX_ARCH_HANDOFF".Trim()) { return $true }
try {
if (Get-Command hipinfo -CommandType Application -ErrorAction SilentlyContinue) { return $true }
Expand Down
1 change: 0 additions & 1 deletion studio/install_python_stack.py
Original file line number Diff line number Diff line change
Expand Up @@ -12071,7 +12071,6 @@ def install_python_stack() -> int:
_ensure_xpu_triton()

if IS_WINDOWS and not NO_TORCH and not _has_usable_nvidia_gpu():
# hipinfo only: Windows amd-smi pops a UAC/DiskPart prompt (_amd_smi_allowed).
_win_amd_gpu = False
_hipinfo = shutil.which("hipinfo")
if _hipinfo:
Expand Down
3 changes: 1 addition & 2 deletions studio/setup.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3894,8 +3894,7 @@ function Test-IntelXpuRuntimeProven {
function Test-OtherVendorAdapterPresent {
param($Scan = $null)
if ($null -eq $Scan) { $Scan = Invoke-BoundedVideoControllerScan }
# AMD evidence the AMD route finds without WMI (override, the installer's forwarded arch, HIP SDK)
# vetoes too.
# AMD evidence found without WMI (override, forwarded arch, HIP SDK) vetoes too.
if ("$env:UNSLOTH_ROCM_GFX_ARCH".Trim() -or "$env:_UNSLOTH_ROCM_GFX_ARCH_HANDOFF".Trim()) { return $true }
try {
if (Get-Command hipinfo -CommandType Application -ErrorAction SilentlyContinue) { return $true }
Expand Down
1 change: 0 additions & 1 deletion tests/studio/install/test_pr5940_followups.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,6 @@ def test_amd_smi_allowed_on_linux_regardless(module):
@pytest.mark.parametrize("hipinfo_present", [False, True], ids = ["no-hip-sdk", "hip-sdk"])
@pytest.mark.parametrize("flag", [None, "1", "0"], ids = ["unset", "opt-in", "opt-out"])
def test_amd_smi_never_runs_on_windows(module, hipinfo_present, flag):
# A HIP SDK used to open the gate, which popped DiskPart prompts during every update.
env = {} if flag is None else {"UNSLOTH_ENABLE_AMD_SMI": flag}
assert _amd_smi_allowed_under(module, "Windows", hipinfo_present, env) is False

Expand Down
Loading