[Feature Request] Support GPU Programming #901
Replies: 10 comments
-
I don't think this is a good language feature. I think this should be an API added to the framework/runtime instead (which, I believe, would be a requirement for it to be a language feature in the first place as well). |
Beta Was this translation helpful? Give feedback.
-
Doing a quick search on CoreFX and CoreCLR, it looks like there have been a few discussions related to GPU Compute, but nothing concreate in the forms of an API proposal. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
@tannergooding yeah it sounds more reasonable to add APIs to the framework, i just didn't know what to write in the title :) |
Beta Was this translation helpful? Give feedback.
-
@jnm2 i just wanted it to be natively supported in the .NET , i just don't know why there is no APIs in the .NET for GPUs |
Beta Was this translation helpful? Give feedback.
-
@A7medRamadan Genuine question: are you unable to accomplish a specific scenario with the existing third party libraries? Or is there a specific scenario which can only become more efficient by having the C# language understand it natively? |
Beta Was this translation helpful? Give feedback.
-
@jnm2 i don't want to do anything with it right nowadays, i just wanted it to be as an available option for built-in in the .NET. That is it. |
Beta Was this translation helpful? Give feedback.
-
/cc @khyperia You did some work on this a while ago. |
Beta Was this translation helpful? Give feedback.
-
There are multiple open questions in your proposal:
Keep in mind that I would certainly love to see more support in the .net world for GPU programming, I am simply curious about what exactly you are proposing 😄 |
Beta Was this translation helpful? Give feedback.
-
Although GPU was/is hot, it is never a stable target like CPU. The architecture and performance characters evolve fast. You may do some wonderful GPU code which runs super on your machine, while it may be slower than CPU or even produce wrong result on others' computers. To make proper use of GPU, you have to learn the low-levels of GPU, which are different than CPU. That requires special constraints and features in the language, thus CUDA, OpenCL, etc. It is possible to embed that into C#, similar to It is not people refuse it. It is just because there is no obviously good solution to make it part of the language. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Why there is no built-in support to work with GPUs?
I think it would be a great feature to be added to the language, it will enable to take advantage of the GPU power in a native way.
Beta Was this translation helpful? Give feedback.
All reactions