hipMemcpyHtoD wants void* instead of const void* as type of second argument
HannoSpreeuw opened this issue · comments
Problem Description
Calling hipMemcpyHtoD(dst, src, size)
with the same types of arguments as a succesful call to cuMemcpyHtoD
gives
error: invalid conversion from 'const void*' to 'void*' [-fpermissive]
48 | .....(hipMemcpyHtoD(dst, src, size));
| ^~~
| |
| const void*
So the problem is with the second argument, i.e. src
with is of type const void*
and not void*
, which hipMemcpyHtoD
needs, contrary to cuMemcpyHtoD
.
This means that just running hipconvertinplace-perl.sh
is insufficient.
Operating System
NAME="Rocky Linux" VERSION="8.9 (Green Obsidian)"
CPU
AMD EPYC 7282 16-Core Processor
GPU
AMD Radeon Pro W6800
ROCm Version
ROCm 6.0.0
ROCm Component
No response
Steps to Reproduce
Call hipMemcpyHtoDAsync
with a const void*
type second argument while not using -fpermissive
.
(Optional for Linux users) Output of /opt/rocm/bin/rocminfo --support
No response
Additional Information
No response
An internal ticket has been created to track the investigation.