Mori.LocateAnythingSharp.Runtime.Cuda 0.1.0

dotnet add package Mori.LocateAnythingSharp.Runtime.Cuda --version 0.1.0
                    
NuGet\Install-Package Mori.LocateAnythingSharp.Runtime.Cuda -Version 0.1.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="Mori.LocateAnythingSharp.Runtime.Cuda" Version="0.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Mori.LocateAnythingSharp.Runtime.Cuda" Version="0.1.0" />
                    
Directory.Packages.props
<PackageReference Include="Mori.LocateAnythingSharp.Runtime.Cuda" />
                    
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 Mori.LocateAnythingSharp.Runtime.Cuda --version 0.1.0
                    
#r "nuget: Mori.LocateAnythingSharp.Runtime.Cuda, 0.1.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 Mori.LocateAnythingSharp.Runtime.Cuda@0.1.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=Mori.LocateAnythingSharp.Runtime.Cuda&version=0.1.0
                    
Install as a Cake Addin
#tool nuget:?package=Mori.LocateAnythingSharp.Runtime.Cuda&version=0.1.0
                    
Install as a Cake Tool

Mori.LocateAnythingSharp.Runtime.Cuda

CUDA native engine for Mori.LocateAnythingSharp (Windows x64). One DLL embeds GPU kernels for NVIDIA RTX 20/30/40/50 series (plus PTX for newer architectures); at runtime it selects the GPU when a usable one is present and falls back to CPU otherwise.

This package contains no managed code: it ships locate_anything.dll under runtimes/win-x64/native, and the .NET SDK copies it next to your application automatically.

Usage

Install together with the bindings package:

dotnet add package Mori.LocateAnythingSharp
dotnet add package Mori.LocateAnythingSharp.Runtime.Cuda
using Mori.LocateAnything;

using var engine = LocateEngine.Load("locate-anything-q8_0.gguf");
Console.WriteLine(engine.DeviceName);   // "CUDA0" on GPU, "cpu" on fallback

Requirements

  • NVIDIA CUDA runtime DLLs (cudart64_*, cublas64_*, cublasLt64_*) must be loadable: either next to your application or via an installed CUDA Toolkit on PATH. They are NVIDIA redistributables, far too large to include in a NuGet package. Without them the engine DLL fails to load with DllNotFoundException.
  • NVIDIA display driver on the target machine for GPU execution. Without it (or without any NVIDIA GPU), the engine still works and reports cpu - the GpuSupport helpers in the bindings package can prompt users to install the driver.
  • Set the LA_DEVICE=cpu environment variable to force CPU execution.

You also need the GGUF model weights (~6.3 GB, downloaded separately) - see the bindings package README or https://github.com/CristianMori/LocateAnythingSharp for details.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

  • .NETStandard 2.0

    • No dependencies.

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.1.0 159 7/26/2026