[all-commits] [llvm/llvm-project] 16064e: [OpenMP] Reset async stream properly upon failure

Joseph Huber via All-commits all-commits at lists.llvm.org
Fri Mar 26 16:05:33 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 16064e71e934547ca68b3d8f4bd71e9a2b7f4248
      https://github.com/llvm/llvm-project/commit/16064e71e934547ca68b3d8f4bd71e9a2b7f4248
  Author: Joseph Huber <jhuber6 at vols.utk.edu>
  Date:   2021-03-26 (Fri, 26 Mar 2021)

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

  Log Message:
  -----------
  [OpenMP] Reset async stream properly upon failure

Summary:
If the call to `synchronize` fails, it will currently block the stream indefinitely if execution is continued from this point. Additionally, if the program exits it will trigger an assertion on the non-null value of the async queue and prevent the runtime from printing debugging information.

Reviewers: jdoerfert

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




More information about the All-commits mailing list