[all-commits] [llvm/llvm-project] 622627: [libomptarget] [amdgpu] After a kernel dispatch pa...

dhruvachak via All-commits all-commits at lists.llvm.org
Wed Sep 29 09:22:37 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 622627025332af4bfa01057210f315b2278a9439
      https://github.com/llvm/llvm-project/commit/622627025332af4bfa01057210f315b2278a9439
  Author: Dhruva Chakrabarti <Dhruva.Chakrabarti at amd.com>
  Date:   2021-09-29 (Wed, 29 Sep 2021)

  Changed paths:
    M openmp/libomptarget/plugins/amdgpu/src/rtl.cpp

  Log Message:
  -----------
  [libomptarget] [amdgpu] After a kernel dispatch packet is published, its contents must not be accessed.

Fixes: SWDEV-275232 (With contributions from Ammar Elwazir, Laurent Morichetti, and Tony Tye)

The current code is racy. After the packet is submitted, the GPU will increment the read index. If this wraps around before the memory is read from it'll refer to a signal from an unrelated packet. Change avoids reading from the packet post-submission.

Reviewed By: JonChesterfield

Differential Revision: https://reviews.llvm.org/D110679




More information about the All-commits mailing list