CUDA5 示例:有人将一些 cutil 定义翻译成 CUDA5 吗? [英] CUDA5 Examples: Has anyone translated some cutil definitions to CUDA5?

查看:11
本文介绍了CUDA5 示例:有人将一些 cutil 定义翻译成 CUDA5 吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人开始使用 CUDA5 SDK 了吗?
我有一个旧项目使用了一些 cutil 函数,但它们已被新项目遗弃.

Has anyone started to work with the CUDA5 SDK?
I have an old project that uses some cutil functions, but they've been abandoned in the new one.

解决方案是大多数函数可以从 cutil*/cut* 转换为来自 helper*.h 标头的类似命名的 sdk* 等价物...

The solution was that most functions can be translated from cutil*/cut* to a similar named sdk* equivalent from the helper*.h headers...

例如:cutStartTimer 变为 sdkCreateTimer就这么简单……

As an example: cutStartTimer becomes sdkCreateTimer Just that simple...

推荐答案

有人开始使用 CUDA5 SDK 了吗?

Has anyone started to work with the CUDA5 SDK?

大概吧.

有人将一些 cutil 定义翻译成 CUDA5 吗?

Has anyone translated some cutil definitions to CUDA5?

也许吧.但是为什么不直接使用新的头文件来替换它呢?引自 Beta 版本说明:

Maybe. But why not just use the new header files intended to replace it? Quoted from the Beta release notes:

在 CUDA 5.0 之前,CUDA 示例项目引用了一个实用程序库带有名为 cutil 的头文件和源文件.这已被删除CUDA 5.0 中的 CUDA 示例,并替换为找到的头文件在 CUDA 示例v5.0Ccommoninc

Prior to CUDA 5.0, CUDA Sample projects referenced a utility library with header and source files called cutil. This has been removed with the CUDA Samples in CUDA 5.0, and replaced with header files found in CUDA Samplesv5.0Ccommoninc

helper_cuda.h, helper_cuda_gl.h, helper_cuda_drvapi.h, helper_functions.h,
helper_image.h, helper_math.h, helper_string.h, and helper_timer.h

这些文件为 CUDA 设备初始化提供实用功能,CUDA 错误检查、字符串解析、图像文件加载和保存,以及计时功能.CUDA 示例项目不再有引用和 cutil 的依赖项,现在将使用这些辅助函数继续前进.

These files provide utility functions for CUDA device initialization, CUDA error checking, string parsing, image file loading and saving, and timing functions. The CUDA Samples projects no longer have references and dependencies to cutil, and will now use these helper functions going forward.

这篇关于CUDA5 示例:有人将一些 cutil 定义翻译成 CUDA5 吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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