GPU和C#提供了到GPU的循环 [英] GPU and C# ship for loops to GPU

查看:129
本文介绍了GPU和C#提供了到GPU的循环的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以指导我说明如何制定一个例程,在其中将循环计算发送到GPU吗?因此,每当程序有一个for循环或foreach循环时,便在GPU上完成.

Can anyone direct me to how one might have a routine where you ship off for loop calculations to the GPU? SO everytime the program has a for loop or foreach loop it is done on the GPU.

推荐答案

使用GPU具有往返于CPU的IO瓶颈,因此,只有您的计算时间较长时,性能才可行.

看看这些:

http://research.microsoft.com/en-us/projects/Accelerator/ [ ^ ]

http://cbucks.codeplex.com/ [ ^ ]

http://www.tidepowerd.com/ [ ^ ]

http://www.hoopoe-cloud.com/Solutions/CUDA.NET/Default.aspx [^ ]

http://brahma.ananthonline.net/ [ ^ ]
Using the GPU has an IO bottleneck for transferring to and from the CPU, so it is only performance feasible if your computations take a long time.

Take a look at these:

http://research.microsoft.com/en-us/projects/Accelerator/[^]

http://cbucks.codeplex.com/[^]

http://www.tidepowerd.com/[^]

http://www.hoopoe-cloud.com/Solutions/CUDA.NET/Default.aspx[^]

http://brahma.ananthonline.net/[^]


这篇关于GPU和C#提供了到GPU的循环的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆