You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
this is a minor issue, but it is quite inconvenient -- one needs to cast the first parameter of hipMallocPitch to void** in HIP. In CUDA (cudaMallocPitch), the cast is not needed.
fails on compilation (hipcc source.hip.cpp -o program.hip.x) on the hipMallocPitch function:
source.hip.cpp(10): error: argument of type "float **" is incompatible with parameter of type "void **"
Not a huge problem, since casting the first parameter to void** solves it, but in CUDA we do not need to perform the cast, so I think that neither should we in HIP.
I am using nvcc V11.4.152, HIP version 4.4.21401-bedc5f61
The text was updated successfully, but these errors were encountered:
@jakub-homola Apologies for the lack of response. Can you please test with latest ROCm 6.0.2 (HIP 6.0.32831)? If resolved, please close ticket. Thanks!
Hello,
this is a minor issue, but it is quite inconvenient -- one needs to cast the first parameter of
hipMallocPitch
tovoid**
in HIP. In CUDA (cudaMallocPitch
), the cast is not needed.The CUDA program
is compiled with
nvcc source.cu -o program.cuda.x
without any issues.However, the equivalent HIP program
fails on compilation (
hipcc source.hip.cpp -o program.hip.x
) on thehipMallocPitch
function:Not a huge problem, since casting the first parameter to
void**
solves it, but in CUDA we do not need to perform the cast, so I think that neither should we in HIP.I am using nvcc V11.4.152, HIP version 4.4.21401-bedc5f61
The text was updated successfully, but these errors were encountered: