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

查看:211
本文介绍了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 *转换为类似的名为sdk *的辅助函数* .h headers ...

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

例如:
cutStartTimer is 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?

但为什么不使用新的头文件旨在替换它?引用自测试版发行说明

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 Samples\v5.0\C\common\inc

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 Samples\v5.0\C\common\inc

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天全站免登陆