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

hipMemcpyHtoDAsync wants a void pointer instead of a const void* #3444

Open
HannoSpreeuw opened this issue Apr 11, 2024 · 1 comment
Open
Assignees

Comments

@HannoSpreeuw
Copy link

Problem Description

Problem similar to #3422

A call to hipMemcpyHtoDAsync with similar types of arguments as a succesful call to cuMemcpyHtoDAsync gives

error: invalid conversion from 'const void*' to 'void*' [-fpermissive]
      |     .............(hipMemcpyHtoDAsync(devPtr, hostPtr, size, _obj));
      |                                              ^~~~~~~
      |                                              |
      |                                              const void*

The problem is with the type of the second argument of this call to hipMemcpyHtoDAsync .

I.e. one cannot give the same types of arguments to hipMemcpyHtoDAsync as one would to cuMemcpyHtoDAsync, which means that running hipconvertinplace-perl.sh is not sufficient.

Operating System

NAME="Rocky Linux" VERSION="8.9 (Green Obsidian)"

CPU

AMD Ryzen Threadripper 3970X 32-Core Processor

GPU

AMD Radeon Pro W7900

ROCm Version

ROCm 6.0.0

ROCm Component

No response

Steps to Reproduce

Call hipMemcpyHtoDAsync with the same types of arguments as a succesful call to cuMemcpyHtoDAsync without using -fpermissive.

(Optional for Linux users) Output of /opt/rocm/bin/rocminfo --support

No response

Additional Information

This is actually with a W7700 (not listed) using ROCm 6.0.2.

@kjayapra-amd
Copy link
Contributor

Discussing with the team internally. Will update.

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