Git Product home page Git Product logo

Comments (3)

whchung avatar whchung commented on July 24, 2024

@BeamOfLight I assume you use hipify tool to convert the sample to HIP. As a first step, could you check if _cudaGetErrorEnum with the specified function signature does exist in the HIPified project?

from hip.

BeamOfLight avatar BeamOfLight commented on July 24, 2024

There are some problems in last message - i forgot to convert some headers from ../../common/inc/ directory.
After convertation i have this error:

../../common/inc/helper_cuda.h: In instantiation of ‘void check(T, const char*, const char*, int) [with T = cudaError]’:
../../common/inc/helper_cuda_gl.h:92:5: required from here
../../common/inc/helper_cuda.h:990:81: error: no matching function for call to ‘_cudaGetErrorEnum(cudaError&)’
file, line, static_cast(result), _cudaGetErrorEnum(result), func);
^
../../common/inc/helper_cuda.h:36:21: note: candidate: const char* _cudaGetErrorEnum(hipError_t)
static const char * _cudaGetErrorEnum(hipError_t error)
^
../../common/inc/helper_cuda.h:36:21: note: no known conversion for argument 1 from ‘cudaError’ to ‘hipError_t’
../../common/inc/helper_cuda.h:295:20: note: candidate: const char* _cudaGetErrorEnum(CUresult)
static const char _cudaGetErrorEnum(CUresult error)
^
../../common/inc/helper_cuda.h:295:20: note: no known conversion for argument 1 from ‘cudaError’ to ‘CUresult {aka cudaError_enum}’
../../common/inc/helper_cuda.h:524:20: note: candidate: const char
_cudaGetErrorEnum(cufftResult)
static const char *_cudaGetErrorEnum(cufftResult error)
^
../../common/inc/helper_cuda.h:524:20: note: no known conversion for argument 1 from ‘cudaError’ to ‘cufftResult {aka cufftResult_t}’
Makefile:266: recipe for target 'oceanFFT.o' failed

In header file we have:

static const char * _cudaGetErrorEnum(hipError_t error)
static const char *_cudaGetErrorEnum(CUresult error)
static const char *_cudaGetErrorEnum(cublasStatus_t error)
static const char *_cudaGetErrorEnum(cufftResult error)
static const char *_cudaGetErrorEnum(cusparseStatus_t error)
static const char *_cudaGetErrorEnum(cusolverStatus_t error)
static const char *_cudaGetErrorEnum(curandStatus_t error)
static const char *_cudaGetErrorEnum(NppStatus error)

P.S. Full header file attached.
helper_cuda_h.txt

from hip.

 avatar commented on July 24, 2024

Hi @BeamOfLight
The error is due to cudaGLSetGLDevice() func. We haven’t included it in our Hipify tool because this function is deprecated with CUDA 5.0 and should no longer be used.

For OpenGL Interoperability, HIP doesn't supports the following functions yet:
cuda2hipRename["cudaGLGetDevices"] = {"hipGLGetDevices", CONV_GL, API_RUNTIME, HIP_UNSUPPORTED};
cuda2hipRename["cudaGraphicsGLRegisterBuffer"] = {"hipGraphicsGLRegisterBuffer", CONV_GL, API_RUNTIME, HIP_UNSUPPORTED};
cuda2hipRename["cudaGraphicsGLRegisterImage"] = {"hipGraphicsGLRegisterImage", CONV_GL, API_RUNTIME, HIP_UNSUPPORTED};
cuda2hipRename["cudaWGLGetDevice"] = {"hipWGLGetDevice", CONV_GL, API_RUNTIME, HIP_UNSUPPORTED};

Thanks

from hip.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.