diff options
| author | Christian Sigg <csigg@google.com> | 2019-10-18 00:30:14 -0700 |
|---|---|---|
| committer | A. Unique TensorFlower <gardener@tensorflow.org> | 2019-10-18 00:30:44 -0700 |
| commit | fe0ee32da537f94602275635a637e0b5ac4ef7cd (patch) | |
| tree | 777941d38af97f8f5b05fc2867263768d6cc6787 /mlir/test/Dialect/GPU | |
| parent | 2acc220f17bacbf933d024a68385a909b44352fd (diff) | |
| download | bcm5719-llvm-fe0ee32da537f94602275635a637e0b5ac4ef7cd.tar.gz bcm5719-llvm-fe0ee32da537f94602275635a637e0b5ac4ef7cd.zip | |
Add gpu.barrier op to synchronize invocations of a local workgroup.
Adding gen table for rewrite patterns from GPU to NVVM dialect.
Copy missing op documentation from GPUOps.td to GPU.md.
PiperOrigin-RevId: 275419588
Diffstat (limited to 'mlir/test/Dialect/GPU')
| -rw-r--r-- | mlir/test/Dialect/GPU/ops.mlir | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mlir/test/Dialect/GPU/ops.mlir b/mlir/test/Dialect/GPU/ops.mlir index 18ce5a61c25..bfc0f154309 100644 --- a/mlir/test/Dialect/GPU/ops.mlir +++ b/mlir/test/Dialect/GPU/ops.mlir @@ -82,6 +82,8 @@ module attributes {gpu.container_module} { %one = constant 1.0 : f32 %sum = "gpu.all_reduce"(%one) ({}) {op = "add"} : (f32) -> (f32) + "gpu.barrier"() : () -> () + "some_op"(%bIdX, %tIdX) : (index, index) -> () %42 = load %arg1[%bIdX] : memref<?xf32, 1> return |

