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

hipCtxGetApiVersion expects int* instead of unsigned int* as second argument #3442

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

Comments

@HannoSpreeuw
Copy link

HannoSpreeuw commented Apr 10, 2024

Problem Description

Problem similar to ROCm/#2977.
(Perhaps I should have submitted that issue also in this repo)

Calling hipCtxGetApiVersion with the same types of arguments as a succesful call to cuCtxGetApiVersion gives

error: invalid conversion from 'unsigned int*' to 'int*' [-fpermissive]
.........................(hipCtxGetApiVersion(_obj, &version);
                                                    ^~~~~~~~
                                                    |
                                                    unsigned int*

So the problem is with the second argument.

Operating System

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

CPU

AMD Ryzen Threadripper 3970X 32-Core Processor

GPU

AMD Radeon Pro W6800

ROCm Version

ROCm 6.0.0

ROCm Component

HIP

Steps to Reproduce

Call hipCtxGetApiVersion with an unsigned int pointer as a second argument, while not using -fpermissive.

This works for CuCtxGetApiVersion, but not for hipCtxGetApiVersion .

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

Sorry, "permission denied".

Additional Information

This is actually on a W6600 (not listed in the dropdown options), using ROCm 6.0.2 (also not listed).

@kjayapra-amd
Copy link
Contributor

Discussing with the team internally.

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