Alea GPU是否支持动态并行性? [英] Does Alea GPU support dynamic parallelism?
问题描述
我需要从内核调用cuBLAS函数和一些内核函数。
I need to call cuBLAS functions and some of my kernel functions from a kernel.
如何在Alea GPU中调用它?
How to do so in Alea GPU?
在Alea GPU不支持的情况下,C#上是否有其他具有此功能的替代方法。
In the case Alea GPU doesn't support that, is there any alternative on C# with such feature.
推荐答案
AleaGpu支持动态并行性。
AleaGpu supports dynamic parallelism.
您可以这样操作:
Gpu.Default.Launch(() =>
{
// Note you are calling a kernel inside a kernel.
var lp = new LaunchParam(1, 1024);
DeviceRuntime.Launch(YourKernel, lp)
}, new LaunchParam(1, 1));
使用最新的AleaGpu版本:
https://www.nuget.org/packages/Alea/3.0.4-beta3
Use the latest AleaGpu release: https://www.nuget.org/packages/Alea/3.0.4-beta3
(不幸的是)您不能做的是在内核中调用Cublas。
对于Cublas,我敦促您使用最新版本,现在在单独的nuget软件包中使用: https://www.nuget.org/packages/Alea.CudaToolkit/
What you cannot do, (unfortunately), is call Cublas inside a kernel. For Cublas I urge you to use the latest version which in now a separate nuget package: https://www.nuget.org/packages/Alea.CudaToolkit/
这篇关于Alea GPU是否支持动态并行性?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!