-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Sync] Support CUDA multi-stream work queue and other updates (#86)
- Loading branch information
1 parent
56b8397
commit f99e390
Showing
22 changed files
with
343 additions
and
541 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.7.0 | ||
1.7.1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// RUN: byteir-opt %s --insert-detensorize-transform="func-anchor=test_func_anchor match-prefix=test_prefix" --transform-dialect-interpreter --canonicalize --cse --split-input-file | FileCheck %s | ||
|
||
// CHECK-LABEL: func.func @elementwise | ||
// CHECK-SAME: (%[[ARG0:.+]]: tensor<f32>, %[[ARG1:.+]]: tensor<f32>) | ||
func.func @elementwise(%arg0: tensor<f32>, %arg1: tensor<f32>) -> tensor<f32> attributes {test_func_anchor, other} { | ||
%0 = linalg.elemwise_unary ins(%arg0 : tensor<f32>) | ||
outs(%arg1: tensor<f32>) -> tensor<f32> | ||
// CHECK: %[[EXTRACT:.+]] = tensor.extract %[[ARG0]][] : tensor<f32> | ||
// CHECK: %[[UNARY:.+]] = math.exp %[[EXTRACT]] : f32 | ||
%1 = linalg.elemwise_binary ins(%0, %arg0 : tensor<f32>, tensor<f32>) | ||
outs(%arg1: tensor<f32>) -> tensor<f32> | ||
// CHECK: %[[BINARY:.+]] = arith.addf %[[UNARY]], %[[EXTRACT]] : f32 | ||
// CHECK: %[[RET:.+]] = tensor.from_elements %[[BINARY]] : tensor<f32> | ||
return %1 : tensor<f32> | ||
// CHECK: return %[[RET]] : tensor<f32> | ||
} | ||
|
||
// CHECK: transform.sequence failures(propagate) { | ||
// CHECK: ^bb0(%arg0: !pdl.operation): | ||
// CHECK: %0 = transform.structured.match attributes {test_prefix_0} | ||
// CHECK: transform.structured.detensorize %0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.