| 123456789101112131415161718192021222324252627282930313233 |
- //go:build !cuda
- package compute
- import (
- "unsafe"
- "makarna/pkg/backend/cpu"
- "makarna/pkg/backend/cuda"
- )
- type GPUWeightCache struct{}
- type cachedWeight struct{}
- func GetWeightCache(gpu int) *GPUWeightCache {
- return &GPUWeightCache{}
- }
- func (c *GPUWeightCache) Get(key string) (unsafe.Pointer, bool) {
- return nil, false
- }
- func (c *GPUWeightCache) GetTensor(key string) (*cuda.Tensor, bool) {
- return nil, false
- }
- func (c *GPUWeightCache) Upload(key string, _ *cpu.Tensor) (unsafe.Pointer, error) {
- return nil, nil
- }
- // LogWeightCacheSummary is a no-op in CPU-only builds.
- func LogWeightCacheSummary() {}
|