Commit 7891b80
authored
Do not approximate erf on rocm. (#19969)
On ROCm, we want to use the device library functions, which we link as
bitcode and inline. In this PR, we start with `math.erf` because that's
the immediate use case, but this will likely be generalized to other
functions in a subsequent PR.
Signed-off-by: Benoit Jacob <[email protected]>1 parent c8ba691 commit 7891b80
File tree
2 files changed
+20
-1
lines changed- compiler/src/iree/compiler/Codegen/Common
- test
2 files changed
+20
-1
lines changedLines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
103 | 102 | | |
104 | 103 | | |
105 | 104 | | |
| |||
124 | 123 | | |
125 | 124 | | |
126 | 125 | | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
127 | 129 | | |
128 | 130 | | |
129 | 131 | | |
| |||
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
0 commit comments