CUDA5 Examples: Has anyone translated some cutil definitions to CUDA5?

ⅰ亾dé卋堺 提交于 2019-11-27 03:26:55

问题


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.

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

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


回答1:


Has anyone started to work with the CUDA5 SDK?

Probably.

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:

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.



来源:https://stackoverflow.com/questions/12474191/cuda5-examples-has-anyone-translated-some-cutil-definitions-to-cuda5

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!