ComputeSharp, Run C# on the GPU

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • ComputeSharp

    A .NET library to run C# code in parallel on the GPU through DX12, D2D1, and dynamically generated HLSL compute and pixel shaders, with the goal of making GPU computing easy to use for all .NET developers! 🚀

  • I have some more samples in the other folders, and I will also include some snippets in the updated docs (need to finish writing them and include them in the dev branch). Here's a couple examples:

    Super simple, complete examples of a shader that just multiplies all items in a buffer by 2: https://github.com/Sergio0694/ComputeSharp/blob/dev/samples/...

    Simple naive matrix-multiply-add shader: https://github.com/Sergio0694/ComputeSharp/blob/ada133aacd29...

    Let me know if those help, and feel free to ping me on GitHub or in the C# Discord server if you have any issues!

  • ShaderGen

    Proof-of-concept library for generating HLSL, GLSL, and Metal shader code from C#,

  • Another project is ShaderGen [0] which enables writing C# that can run on the GPU as well as on the CPU.

    And there is a practical example implementing raytracing [1].

    [0] https://github.com/mellinoe/shadergen

    [1] https://github.com/mellinoe/veldrid-raytracer

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • radium

    Radium is a helper library to make GPU computation easier in C# (by nick-funk)

  • If you want less overhead, pre-compiled GPU kernel code, and a simple input/output interface for GPU computation. I wrote a similar, but arguably lighter weight solution here:

    https://github.com/nick-funk/radium

    To boot, it uses Cloo, so OpenCL if that's what you like.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • C# and GPU programming

    1 project | /r/csharp | 17 Apr 2023
  • What library should I use to make basic 2D graphics which is simple to use and that is able to quickly draw a bunch of particles (circles) on the screen with updating positions every frame? (Not the best description ever. I explain it better in the post's text)

    4 projects | /r/csharp | 18 Feb 2023
  • How can i build a graphic engine in C#?

    2 projects | /r/csharp | 13 Jun 2022
  • Building the DirectX shader compiler better than Microsoft?

    7 projects | news.ycombinator.com | 10 Feb 2024
  • Show HN: SalamiVG, an SVG framework for generative art and creative coding

    2 projects | news.ycombinator.com | 7 Feb 2024