C#:在 GPU 上执行操作,而不是 CPU(计算 Pi) [英] C#: Perform Operations on GPU, not CPU (Calculate Pi)
问题描述
我最近阅读了很多关于软件(主要是科学/数学和加密相关)的内容,这些软件将部分计算转移到 GPU 上,从而使支持的操作的速度提高 100-1000 (!) 倍.
I've recently read a lot about software (mostly scientific/math and encryption related) that moves part of their calculation onto the GPU which causes a 100-1000 (!) fold increase in speed for supported operations.
是否有库、API 或其他方式可以通过 C# 在 GPU 上运行某些内容?我正在考虑简单的 Pi 计算.我有一个 GeForce 8800 GTX,如果这完全相关的话(不过我更喜欢独立于卡的解决方案).
Is there a library, API or other way to run something on the GPU via C#? I'm thinking of simple Pi calculation. I have a GeForce 8800 GTX if that's relevant at all (would prefer card independent solution though).
推荐答案
这是一项非常新的技术,但您可以研究一下 CUDA.由于您的问题是用 C# 标记的,这里是一个 .Net包装器.
It's a very new technology, but you might investigate CUDA. Since your question is tagged with C#, here is a .Net wrapper.
作为奖励,您的 8800 GTX 似乎支持 CUDA.
As a bonus, it appears that your 8800 GTX supports CUDA.
这篇关于C#:在 GPU 上执行操作,而不是 CPU(计算 Pi)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!