MCPcopy Create free account
hub / github.com/Thunder-Compute/thunder-cli / TestGPUOptions_UnknownGPUAppended

Function TestGPUOptions_UnknownGPUAppended

utils/spec_store_test.go:35–45  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

33}
34
35func TestGPUOptions_UnknownGPUAppended(t *testing.T) {
36 s := NewSpecStore(map[string]api.GpuSpecConfig{
37 "a6000_x1": {GpuCount: 1},
38 "b200_x1": {GpuCount: 1},
39 })
40
41 got := s.GPUOptions()
42 // a6000 should come first (in display order), b200 appended after
43 assert.Equal(t, "a6000", got[0])
44 assert.Contains(t, got, "b200")
45}
46
47func TestGPUCounts(t *testing.T) {
48 s := testSpecStore()

Callers

nothing calls this directly

Calls 2

GPUOptionsMethod · 0.95
NewSpecStoreFunction · 0.85

Tested by

no test coverage detected