Open HannoSpreeuw opened 2 months ago
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
hipCtxGetApiVersion
error: invalid conversion from 'unsigned int*' to 'int*' [-fpermissive] .........................(hipCtxGetApiVersion(_obj, &version); ^~~~~~~~ | unsigned int*
So the problem is with the second argument.
NAME="Rocky Linux" VERSION="8.9 (Green Obsidian)"
AMD Ryzen Threadripper 3970X 32-Core Processor
AMD Radeon Pro W6800
ROCm 6.0.0
HIP
Call hipCtxGetApiVersion with an unsigned int pointer as a second argument, while not using -fpermissive.
-fpermissive
This works for CuCtxGetApiVersion, but not for hipCtxGetApiVersion .
CuCtxGetApiVersion
Sorry, "permission denied".
This is actually on a W6600 (not listed in the dropdown options), using ROCm 6.0.2 (also not listed).
Discussing with the team internally.
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 givesSo 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 forhipCtxGetApiVersion
.(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).