缺乏CUDA 5动态并行性示例 [英] Dearth of CUDA 5 Dynamic Parallelism Examples

查看:284
本文介绍了缺乏CUDA 5动态并行性示例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在搜索,只能找到计算能力3.0中的新动态并行性的一个简单例子在其技术摘要之一链接从这里。我知道HPC专用卡片可能赢得直到明年的这个时候(在国家实验室得到他们的之后)。是的,我知道,他们给出的简单的例子足以让你去,但越多越好

I've been googling around and have only been able to find a trivial example of the new dynamic parallelism in Compute Capability 3.0 in one of their Tech Briefs linked from here. I'm aware that the HPC-specific cards probably won't be available until this time next year (after the nat'l labs get theirs). And yes, I realize that the simple example they gave is enough to get you going, but the more the merrier.

还有其他例子我错过了?

Are there other examples I've missed?

为了节省您的麻烦,这里是技术简介中给出的整个示例:

To save you the trouble, here is the entire example given in the tech brief:

__global__ ChildKernel(void* data){
    //Operate on data
}
__global__ ParentKernel(void *data){
    ChildKernel<<<16, 1>>>(data);
}
// In Host Code
ParentKernel<<<256, 64>>(data);

// Recursion is also supported
__global__ RecursiveKernel(void* data){
    if(continueRecursion == true)
        RecursiveKernel<<<64, 16>>>(data);
}

编辑:
GTC会话
新特性在CUDA编程模型中,主要关注CUDA 5中的新动态并行性。该链接具有视频和幻灯片。

The GTC talk New Features In the CUDA Programming Model focused mostly on the new Dynamic Parallelism in CUDA 5. The link has the video and slides. Still only toy examples, but a lot more detail than the tech brief above.

推荐答案

这里是你需要的,动态并行性编程指南。详细信息和示例: http://docs.nvidia.com/cuda/pdf/CUDA_Dynamic_Parallelism_Programming_Guide.pdf

Here is what you need, the Dynamic parallelism programming guide. Full of details and examples: http://docs.nvidia.com/cuda/pdf/CUDA_Dynamic_Parallelism_Programming_Guide.pdf

这篇关于缺乏CUDA 5动态并行性示例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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