You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This seems to happen for any backend. I've observed this consistently with oneAPI 2024.0 (based on LLVM 17) and 2024.2 (based on LLVM 19), running on Ubuntu Linux 22.04.
To reproduce
Build any complex program with ahead-of-time compilation for multiple backends, e.g. multiple Intel GPUs.
@fwyzard, the problem is ocloc tool. llvm-foreach just a simple launcher runs commands from a file and waits for them to complete. You can check the logic here - it's ~200 lines of code.
@bader while it would definitely be nice if ocloc were faster, the issue is that llvm-foreach itself takes 100% cpu, in addition to ocloc taking up 100% cpu (on another core4).
Instead of tightly looping, would it be possible to make llvm-foreach sleep until a subprocess complete ?
Or, at least, something like sleeping 100ms between each check ?
I think we are going to new remove this tool soon. We are refactoring the compilation process for offload code and new approach won't use this tool or similar approach to detect the task completion. @asudarsa, @maksimsab, @sarnex, FYI.
Describe the bug
While building SYCL code with Intel oneAPI, I noticed that
llvm-foreach
is almost always sitting at 100% cpu usage.top:
ps -xf:
This seems to happen for any backend. I've observed this consistently with oneAPI 2024.0 (based on LLVM 17) and 2024.2 (based on LLVM 19), running on Ubuntu Linux 22.04.
To reproduce
Build any complex program with ahead-of-time compilation for multiple backends, e.g. multiple Intel GPUs.
Environment
Intel(R) oneAPI DPC++/C++ Compiler 2024.2.1 (2024.2.1.20240711)
sycl-ls --verbose
Additional context
No response
The text was updated successfully, but these errors were encountered: