ROCm / ROCm

AMD ROCm™ Software - GitHub Home

Home Page:https://rocm.docs.amd.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Issue]: hipcc does not work with O0

noderyagever132 opened this issue · comments

Problem Description

I've been trying to compile hip source code for AMD GPU RX7600 for a while now. I had some bugs in my code so I tried to compile the source code with O0 (optimization level). With the O0 optimization level - the kernel does not seem to dispatch with error code 401 (Invalid state of device - I have no clue what it means and could not find any documentation). When compiled with any other optimization level - everything seems to work fine.

I tried using the precompiled hipcc (which is installed with rocm) and even tried to compile it by myself using aomp and it doesn't work in both cases.

Operating System

Ubunutu 20.06 LTS

CPU

intel i5 12600

GPU

AMD Radeon RX 7900 XT

ROCm Version

ROCm 6.0.0

ROCm Component

aomp, HIPCC

Steps to Reproduce

Compile any code with hipcc -O0 and dispatch a kernel

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

No response

Additional Information

No response

Internal ticket has been created for investigation.

I've narrowed down the problem a bit, still can't solve it:
https://stackoverflow.com/questions/78161172/enable-pcie-atomic-on-ubuntu-20

The problem was atomic PCIe - I did have support on my computer but only for one pcie port - switched a port and it worked like magic.