fetch_ml/internal/worker/native_bridge_nocgo.go
Jeremie Fraeys be39b37aec
feat: native GPU detection and NVML bridge for macOS and Linux
- Add dynamic NVML loading for Linux GPU detection
- Add macOS GPU detection via IOKit framework
- Add Zig NVML wrapper for cross-platform GPU queries
- Update native bridge to support platform-specific GPU libs
- Add CMake support for NVML dynamic library
2026-02-21 17:59:59 -05:00

35 lines
854 B
Go

//go:build !cgo
// +build !cgo
package worker
import (
"errors"
"github.com/jfraeys/fetch_ml/internal/manifest"
)
// HashFilesBatchNative is not available without CGO.
func HashFilesBatchNative(paths []string) ([]string, error) {
return nil, errors.New("native batch hash requires CGO")
}
// GetSIMDImplName returns "disabled" without CGO.
func GetSIMDImplName() string {
return "disabled (no CGO)"
}
// HasSIMDSHA256 returns false without CGO.
func HasSIMDSHA256() bool {
return false
}
// ScanArtifactsNative is disabled without CGO.
func ScanArtifactsNative(runDir string) (*manifest.Artifacts, error) {
return nil, errors.New("native artifact scanner requires CGO")
}
// ExtractTarGzNative is disabled without CGO.
func ExtractTarGzNative(archivePath, dstDir string) error {
return errors.New("native tar.gz extractor requires CGO")
}