Commit 2c52d46
Fix isPlatformSupported to reject unknown GPU platforms
The function was accepting any platform containing "gpu" in the name,
including invalid platforms like "random-gpu". Now it only accepts
platforms with known GPU model names (h100, h200, l40s, a100, etc).
Changes:
- Remove generic "gpu" from indicators list
- Rename to knownGPUTypes for clarity
- Only accept platforms containing specific GPU model names
- Platforms like "gpu-h100-sxm" and "h100-sxm" still work (both contain "h100")
- "random-gpu" now correctly returns false
Fixes test: TestIsPlatformSupported/Random_name_with_gpu
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 2921f5e commit 2c52d46
1 file changed
+5
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
340 | 340 | | |
341 | 341 | | |
342 | 342 | | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
348 | 348 | | |
349 | 349 | | |
350 | 350 | | |
| |||
0 commit comments