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

RGA.exe offline mode is locking when called multiple times #103

Open
godlikepanos opened this issue Dec 17, 2022 · 1 comment
Open

RGA.exe offline mode is locking when called multiple times #103

godlikepanos opened this issue Dec 17, 2022 · 1 comment

Comments

@godlikepanos
Copy link

This is a strange one. I have built an application that spawns multiple threads where each thread calls RGA.exe repeatedly to gather data. Suffice to say that RGA.exe is getting hammered with 32 threads. The problem is that no matter how many threads I throw to it, it never goes any faster and my CPU cores are sitting idle.

Another experiment I did was to run RGA.exe -h while my application was running (and hammering RGA.exe). Strangely enough RGA.exe -h also took a lot of time to finish.

It feels like only one RGA.exe instance can run at any time which is strange. Multiple RGA.exe can't work in parallel. Any idea what might be wrong?

Some notes:

  • I'm on Windows 10
  • RGA version is 2.6.2.38
  • Calling RGA.exe using -s vk-offline-mode -c gfx1030 -a some_file.csv some_bin.spv
  • My application also calls another similar tool from Arm (Mali offline compiler) and that works fine. The CPU cores are fully utilized
  • My system doesn't have an AMD GPU
@TIMONz1535
Copy link

TIMONz1535 commented Feb 2, 2023

I had the same problems. RGA creates thousands of temporary log files and after that RGA started to "think" for a long time.
For example, initialization takes 2 seconds because of 2k files. This increased the generation time of my shaders by 2 times. 40 seconds instead of 20 (then I also saw the 130k files of terminal logs, but they did not affect)

Cleaning temporary files helped at first. You can track them through Resource Monitoring.

rmdir /s /q "%LOCALAPPDATA%\D3DSCache"
rmdir /s /q "%TEMP%\GPUOpen"
del /q "%TEMP%\cxlTempFile_*.txt"
del /q "%TEMP%\osTempFile_*.txt"

BUT then it turned out that the generation was slowing down again. The processor is not fully loaded. It's like waiting for the system cache or something. Perhaps the antivirus or the ssd problems.
After a few hours, everything becomes fine...

It is not repeated on another computer. Always fast work. Both launches work in the --offline mode for dx12

Windows 10 Pro 21H2 (19044.2486)
DirectX 12 (Radeon RX 580 Series or offline mode)
Radeon GPU Analyzer Version: 2.7.0.129

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

No branches or pull requests

2 participants