Skip to content
Snippets Groups Projects
Commit faa4d6e7 authored by Hadrien G.'s avatar Hadrien G.
Browse files

Only release tiles when that can be useful

parent 60e807cc
No related branches found
No related tags found
No related merge requests found
Pipeline #338821 passed
......@@ -320,8 +320,8 @@ void run_simulation() {
#endif
}
// Liberate any acquired tile
if (s_acquired_tile && is_leader()) {
// Liberate any acquired tile that was dropped due to an early exit
if (is_leader() && s_acquired_tile && work_group_finished()) {
leader_release_tile();
#if DEBUG || PROFILE
atomicAdd(g_metadata.final_release, 1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment