[Parallel_libs-commits] [PATCH] D24063: [StreamExecutor] Add Stream::blockHostUntilDone

Jason Henline via Parallel_libs-commits parallel_libs-commits at lists.llvm.org
Tue Aug 30 17:19:33 PDT 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL280182: [StreamExecutor] Add Stream::blockHostUntilDone (authored by jhen).

Changed prior to commit:
  https://reviews.llvm.org/D24063?vs=69783&id=69788#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D24063

Files:
  parallel-libs/trunk/streamexecutor/include/streamexecutor/Stream.h

Index: parallel-libs/trunk/streamexecutor/include/streamexecutor/Stream.h
===================================================================
--- parallel-libs/trunk/streamexecutor/include/streamexecutor/Stream.h
+++ parallel-libs/trunk/streamexecutor/include/streamexecutor/Stream.h
@@ -78,7 +78,16 @@
       return make_error(*ErrorMessage);
     else
       return Error::success();
-  };
+  }
+
+  // Blocks the calling host thread until all work enqueued on this Stream
+  // completes.
+  //
+  // Returns the result of getStatus() after the Stream work completes.
+  Error blockHostUntilDone() {
+    setError(PDevice->blockHostUntilDone(ThePlatformStream.get()));
+    return getStatus();
+  }
 
   /// Entrains onto the stream of operations a kernel launch with the given
   /// arguments.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D24063.69788.patch
Type: text/x-patch
Size: 799 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/parallel_libs-commits/attachments/20160831/6a27026a/attachment.bin>


More information about the Parallel_libs-commits mailing list