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

后端 未结 1 1877
南笙
南笙 2020-12-10 06:13

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

相关标签:
1条回答
  • 2020-12-10 06:46

    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.

    0 讨论(0)
提交回复
热议问题