Comments (3)
@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.
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.
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)
- [Issue]: Cannot register Static Global Var on inline variable HOT 4
- [Issue]: failed call to hipInit: HIP_ERROR_InvalidDevice HOT 3
- [Issue]: python -c "import torch;print(torch.cuda.is_available())" returns False HOT 10
- stream create, copy and destroy example HOT 6
- [Documentation]: Fix NVIDIA build instructions HOT 1
- [Documentation]: Installation. ( hipcc-nvidia ) HOT 7
- [Issue]: Blender hangs when rendering
- HIP SDK 5.7 installer installs HIP runtime 5.2 HOT 4
- [Issue]: Asynchronous execution with hipExtModuleLaunchKernel HOT 3
- https://github.com/ROCm/HIP/issues/2209 should be reopened for hipcc returning incosistent values HOT 1
- [Issue]: how to close or bypass L1 cache HOT 2
- [Issue]: use of overloaded operator '/' is ambiguous (with operand types 'float2' (aka 'HIP_vector_type<float, 2>') and 'float2') HOT 2
- [Feature]: Do we now have planning that adds Dynamic Parallelism features? HOT 1
- return value of the device property HOT 1
- [Issue]: Windows + nvidia gpu = error: no ROCm-capable device is detected? HOT 1
- [Issue]: Could not find a configuration file for package "HIP" - requested 1.0, found 6.0.0
- HIP installation on Nvidia platform HOT 6
- [Issue]: Conversion of tiny-cuda-nn lib into HIP HOT 2
- [Issue]: I want to use rocgdb to trace the calling situation of the hip runtime functions。such as hipMalloc HOT 1
- [Documentation]: hipMemGetAdressRange unexpectedly returns hipErrorNotFound HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hip.