Sylin.Koan.AI.Compute 0.17.0

dotnet add package Sylin.Koan.AI.Compute --version 0.17.0
                    
NuGet\Install-Package Sylin.Koan.AI.Compute -Version 0.17.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Sylin.Koan.AI.Compute" Version="0.17.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Sylin.Koan.AI.Compute" Version="0.17.0" />
                    
Directory.Packages.props
<PackageReference Include="Sylin.Koan.AI.Compute" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Sylin.Koan.AI.Compute --version 0.17.0
                    
#r "nuget: Sylin.Koan.AI.Compute, 0.17.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Sylin.Koan.AI.Compute@0.17.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Sylin.Koan.AI.Compute&version=0.17.0
                    
Install as a Cake Addin
#tool nuget:?package=Sylin.Koan.AI.Compute&version=0.17.0
                    
Install as a Cake Tool

Koan.AI.Compute

Hardware-agnostic compute fabric discovery for Koan. Detects GPUs, enumerates available runtimes (Ollama, ONNX, Python), and resolves the best placement for AI workloads across local and network resources.

  • Target framework: net10.0
  • License: Apache-2.0
  • Version: 0.6.3

Install

dotnet add package Sylin.Koan.AI.Compute

Quick Start

// Check what's available on this machine
var resources = await Compute.Available();
foreach (var r in resources)
    Console.WriteLine($"{r.DeviceName} [{r.Accelerator}] {r.VramBytes / 1_073_741_824}GB VRAM");

// Resolve best compute for a workload
var resolution = await Compute.Resolve(new ComputeRequirement
{
    Accelerator = Accelerator.CUDA,
    MinVramBytes = 8L * 1024 * 1024 * 1024,  // 8 GB
    Capabilities = [ComputeCapability.Inference]
});

if (resolution.Target is not null)
    Console.WriteLine($"Using: {resolution.Target.DeviceName}");

Core API

Compute.Available()                          // All detected compute resources
Compute.Fleet()                              // Full fleet including network nodes
Compute.Resolve(ComputeRequirement req)      // Best placement → ComputeResolution
Compute.Check(ComputeRequirement req)        // bool — requirement satisfiable?
Compute.Require(ComputeRequirement req)      // Throws if requirement not met
Compute.Prefer(ComputeRequirement req)       // Returns best or null (no throw)

ComputeResource

public sealed class ComputeResource
{
    string Id              { get; }
    Accelerator Accelerator { get; }  // None | CUDA | ROCm | Metal | DirectML | OneAPI
    long VramBytes         { get; }
    string DeviceName      { get; }
    ComputeLocation Location { get; } // Local | Network
    IReadOnlyList<string> Runtimes { get; }  // "ollama", "onnx", "python", etc.
    string Status          { get; }
}

Accelerators

Value Hardware
None CPU-only
CUDA NVIDIA GPU
ROCm AMD GPU
Metal Apple Silicon
DirectML Windows ML (any GPU)
OneAPI Intel GPU

Detection Sources

  • NVIDIA: nvidia-smi, CUDA environment variables
  • AMD: ROCm sysfs (/sys/class/drm/)
  • Apple: Metal framework availability
  • Runtimes: Ollama process detection, Python environment, ONNX Runtime presence

Reference

  • Related: Koan.AI.Models (model deployment routing), Koan.AI (pipeline facade)
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.17.0 0 6/12/2026
0.8.0 96 5/16/2026