[all-commits] [llvm/llvm-project] 3e72f0: [Offload][OpenMP][libdevice] Make check to enter s...
Alex Duran via All-commits
all-commits at lists.llvm.org
Wed Mar 25 08:22:45 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 3e72f02e20b99ba1fa0dce2982d89aaa0ef6ab26
https://github.com/llvm/llvm-project/commit/3e72f02e20b99ba1fa0dce2982d89aaa0ef6ab26
Author: Alex Duran <alejandro.duran at intel.com>
Date: 2026-03-25 (Wed, 25 Mar 2026)
Changed paths:
M openmp/device/src/Kernel.cpp
Log Message:
-----------
[Offload][OpenMP][libdevice] Make check to enter state machine architecture dependent (#188144)
The genericStateMachine call uses synchronize::thread wich is expected
to be implemented using a workgroup level barrier.
Currently as in some other architectures where if threads in the same
warp as the main thread reach the barrier may cause a race condition
there's a condition that makes some threads not enter the state machine.
But in Intel GPUs all threads must reach the barrier for it to be
completed, otherwise the threads in the state machine never make
progress.
This PR moves the condition into an architecture-dependent config so it
can work correctly for both kinds of hardware.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list