{"record":{"id":"4d86bd29ab190f57","repo":"LykosAI/StabilityMatrix","slug":"no-rocmsdkdevelpackagename-builds-were-found-on-the-rocm","errorCode":null,"errorMessage":"No {RocmSdkDevelPackageName} builds were found on the ROCm multi-arch index.","messagePattern":"No (.+?) builds were found on the ROCm multi-arch index\\.","errorType":"exception","errorClass":"InvalidOperationException","httpStatus":null,"severity":"error","filePath":"StabilityMatrix.Core/Services/Rocm/RocmPackageHelper.cs","lineNumber":178,"sourceCode":"        {\n            return;\n        }\n\n        var indexResult = await venvRunner\n            .PipIndex(RocmSdkDevelPackageName, multiArchPythonPackageIndexUrl)\n            .ConfigureAwait(false);\n\n        var latestVersion = indexResult?.AvailableVersions.FirstOrDefault();\n        var matchingVersion = string.IsNullOrWhiteSpace(nightlyBuildDateToken)\n            ? null\n            : indexResult?.AvailableVersions.FirstOrDefault(version =>\n                HasNightlyBuildDateToken(version, nightlyBuildDateToken)\n            );\n        var versionToInstall = matchingVersion ?? latestVersion;\n\n        if (string.IsNullOrWhiteSpace(versionToInstall))\n        {\n            throw new InvalidOperationException(\n                $\"No {RocmSdkDevelPackageName} builds were found on the ROCm multi-arch index.\"\n            );\n        }\n\n        if (!string.IsNullOrWhiteSpace(matchingVersion))\n        {\n            progress?.Report(\n                new ProgressReport(\n                    -1f,\n                    $\"Installing {RocmSdkDevelPackageName} {matchingVersion} for Windows ROCm...\",\n                    isIndeterminate: true\n                )\n            );\n        }\n        else\n        {\n            progress?.Report(\n                new ProgressReport(","sourceCodeStart":160,"sourceCodeEnd":196,"githubUrl":"https://github.com/LykosAI/StabilityMatrix/blob/af93d6ef57c01cd890d7e0ad0a9ea8c9fcda3002/StabilityMatrix.Core/Services/Rocm/RocmPackageHelper.cs#L160-L196","documentation":"EnsureWindowsSdkDevelAsync queries the ROCm multi-arch package index for available RocmSdkDevelPackageName builds and picks a version matching the installed torch's nightly build date (or the latest). If the resulting version string is null/whitespace - meaning the index returned no usable builds - it throws InvalidOperationException. This indicates an upstream index problem, not a local environment problem.","triggerScenarios":"The ROCm multi-arch index returned zero builds for RocmSdkDevelPackageName - e.g. the index URL is unreachable/parsed to an empty list, the nightly date token from the installed torch has no matching SDK devel build, or the index dropped older nightly builds matching the token.","commonSituations":"AMD's ROCm nightly index temporarily empty or restructured; installed torch nightly is newer than any published SDK devel build; network/proxy returned an empty package listing; the helper's index parsing failed silently.","solutions":["Check network access to the ROCm multi-arch index and retry later if it's a transient index issue","Update the installed ROCm torch nightly so its build date token matches available SDK devel builds","Verify the configured index URL for the ROCm SDK devel packages is current and returns a package list","Report/pin a known-good combination of torch nightly and SDK devel versions if AMD's index dropped matching builds"],"exampleFix":"// before\n// torch nightly dev20250901 but index only has SDK devel for dev20250825\nawait rocmHelper.EnsureWindowsSdkDevelAsync(venvRunner, ...);\n// after\nawait rocmHelper.InstallWindowsNativeTorchAsync(venvRunner, ...); // reinstall matching nightly\nawait rocmHelper.EnsureWindowsSdkDevelAsync(venvRunner, ...);","handlingStrategy":"retry","validationCode":"// fetch the index package list first; proceed only when non-empty\nvar builds = await rocmHelper.GetAvailableSdkDevelBuildsAsync();\nif (builds.Count == 0) { /* abort or notify user: index has no builds */ }","typeGuard":null,"tryCatchPattern":"try { await rocmHelper.EnsureWindowsSdkDevelAsync(venvRunner, ...); }\ncatch (InvalidOperationException ex) when (ex.Message.Contains(\"builds were found\"))\n{\n    // retry after a delay or surface an upstream-index message to the user\n}","preventionTips":["Keep torch nightly and SDK devel versions aligned (same dev date token)","Handle transient AMD index outages with backoff/retry","Pin a known-good torch+SDK devel pair for reproducible setups"],"tags":["rocm","package-index","network","windows"],"backgroundTag":"empty-result-set","analyzedSha":"af93d6ef57c01cd890d7e0ad0a9ea8c9fcda3002","analyzedAt":"2026-09-12T19:02:43.389Z","contentChangedAt":"2026-09-12T19:02:43.389Z","schemaVersion":2},"datasetVersion":"2026-09-16T04:17:20.429Z"}