[Openmp-commits] [PATCH] D121011: [OpenMP][FIX] Ensure custom state machine works

Johannes Doerfert via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Fri Mar 4 10:05:03 PST 2022


jdoerfert created this revision.
jdoerfert added reviewers: jhuber6, jdenny.
Herald added subscribers: ormris, guansong, bollu, hiraditya, yaxunl.
Herald added a project: All.
jdoerfert requested review of this revision.
Herald added subscribers: llvm-commits, sstefan1.
Herald added a project: LLVM.

The custom state machine had a check for surplus threads that filtered
the main thread if the kernel was executed by a single warp only. We
now first check for the main thread, then for surplus threads, avoiding
to filter the former out.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D121011

Files:
  llvm/lib/Transforms/IPO/OpenMPOpt.cpp
  llvm/test/Transforms/OpenMP/custom_state_machines.ll
  llvm/test/Transforms/OpenMP/spmdization.ll
  llvm/test/Transforms/OpenMP/spmdization_guarding.ll
  llvm/test/Transforms/OpenMP/spmdization_guarding_two_reaching_kernels.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D121011.413055.patch
Type: text/x-patch
Size: 57585 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20220304/0bd679ac/attachment-0001.bin>


More information about the Openmp-commits mailing list