How to allow C# Code run on GPU

  • I have a C# Code in Grasshopper that is taking long time to run.

  • I know Grasshopper components do not allow GPU computation, but I was wondering if there is a way to allow C# code to access my RTX 3080 Ti.

1 Like

I want to know the same

It’s complicated and there’s no easy & free solution.

You can do an internet search for the terms C#, compute and CUDA to find a library that allows you to do something like that.

Doing this entails writing your code so it can be run using any such library, which isn’t, as @gankeyu hints at, necessarily easy to do.

Try ILGPU. It’s quite stable now, easy to use if you have some C# background and free.

3 Likes

FlexHopper use GPU to speed up.

I am also curios about this topic.
Might need to check NVidia Flex.

2 Likes