gpt4 book ai didi

CUDA5 示例 : Has anyone translated some cutil definitions to CUDA5?

转载 作者:行者123 更新时间:2023-12-04 05:32:43 24 4
gpt4 key购买 nike

有人开始使用 CUDA5 SDK 吗?
我有一个旧项目,它使用了一些 cutil 功能,但它们已在新项目中被放弃。

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

举个例子:
cutStartTimer 变成 sdkCreateTimer
就这么简单...

最佳答案

Has anyone started to work with the CUDA5 SDK?



大概。

Has anyone translated some cutil definitions to CUDA5?



也许。但是为什么不直接使用旨在替换它的新头文件呢?引自 Beta release notes :

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

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 示例 : Has anyone translated some cutil definitions to CUDA5?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12474191/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com