CudaSharp 0.0.2
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package CudaSharp --version 0.0.2
NuGet\Install-Package CudaSharp -Version 0.0.2
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="CudaSharp" Version="0.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CudaSharp" Version="0.0.2" />
<PackageReference Include="CudaSharp" />
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 CudaSharp --version 0.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: CudaSharp, 0.0.2"
#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 CudaSharp@0.0.2
#: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=CudaSharp&version=0.0.2
#tool nuget:?package=CudaSharp&version=0.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
CudaSharp
Low-level CUDA interop in modern C#. Cross-platform, trimmable and AOT/NativeAOT compatible.
⭐ Please star this project if you like it. ⭐
Example | Example Catalogue | Public API Reference
Example
// Above example code is for demonstration purposes only.
// Short names and repeated constants are only for demonstration.
For more examples see Example Catalogue.
Benchmarks
Benchmarks.
Detailed Benchmarks
Comparison Benchmarks
TestBench Benchmark Results
AMD.Ryzen.9.9950X - TestBench Benchmark Results (CudaSharp 0.0.0.0, System 10.0.326.7603)
| Method | Scope | Count | Mean | Ratio | Allocated | Alloc Ratio |
|---|---|---|---|---|---|---|
| CudaSharp______ | Test | 25000 | 0.0004 ns | ? | - | ? |
Example Catalogue
The following examples are available in ReadMeTest.cs.
Example - Empty
// Above example code is for demonstration purposes only.
// Short names and repeated constants are only for demonstration.
Public API Reference
[assembly: System.CLSCompliant(false)]
[assembly: System.Reflection.AssemblyMetadata("IsAotCompatible", "True")]
[assembly: System.Reflection.AssemblyMetadata("IsTrimmable", "True")]
[assembly: System.Reflection.AssemblyMetadata("RepositoryUrl", "https://github.com/nietras/CudaSharp/")]
[assembly: System.Resources.NeutralResourcesLanguage("en")]
[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("CudaSharp.Benchmarks")]
[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("CudaSharp.ComparisonBenchmarks")]
[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("CudaSharp.Test")]
[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("CudaSharp.XyzTest")]
[assembly: System.Runtime.Versioning.TargetFramework(".NETCoreApp,Version=v10.0", FrameworkDisplayName=".NET 10.0")]
namespace CudaSharp
{
public static class nvcuda
{
public static void Empty() { }
}
}
| Product | Versions 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.
-
net10.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.