[PATCH] D36867: [GPGPU] Synchronize after each kernel, not each copy out
Tobias Grosser via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 18 05:56:57 PDT 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL311155: [GPGPU] Synchronize after each kernel, not each copy out (authored by grosser).
Repository:
rL LLVM
https://reviews.llvm.org/D36867
Files:
polly/trunk/lib/CodeGen/PPCGCodeGeneration.cpp
Index: polly/trunk/lib/CodeGen/PPCGCodeGeneration.cpp
===================================================================
--- polly/trunk/lib/CodeGen/PPCGCodeGeneration.cpp
+++ polly/trunk/lib/CodeGen/PPCGCodeGeneration.cpp
@@ -1219,6 +1219,8 @@
const char *Str = isl_id_get_name(Id);
if (!strcmp(Str, "kernel")) {
createKernel(UserStmt);
+ if (PollyManagedMemory)
+ createCallSynchronizeDevice();
isl_ast_expr_free(Expr);
return;
}
@@ -1248,7 +1250,6 @@
if (!PollyManagedMemory) {
createDataTransfer(UserStmt, DEVICE_TO_HOST);
} else {
- createCallSynchronizeDevice();
isl_ast_node_free(UserStmt);
}
isl_ast_expr_free(Expr);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D36867.111661.patch
Type: text/x-patch
Size: 697 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170818/1de4fbf1/attachment.bin>
More information about the llvm-commits
mailing list