Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hipMemcpyHtoD wants void* instead of const void* as type of second argument #2977

Open
HannoSpreeuw opened this issue Mar 25, 2024 · 2 comments

Comments

@HannoSpreeuw
Copy link

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

@nartmada
Copy link
Collaborator

nartmada commented Apr 1, 2024

An internal ticket has been created to track the investigation.

@nartmada
Copy link
Collaborator

@HannoSpreeuw, sorry for the slow response. Issue will be addressed in an upcoming ROCm release. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants