Skip to content

Commit cc07041

Browse files
committed
Fix barrier
1 parent eb2acb1 commit cc07041

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ translator](https://github.com/KhronosGroup/SPIRV-LLVM-Translator):
147147

148148
```julia
149149
julia> function kernel()
150-
barrier()
150+
barrier(0)
151151
return
152152
end
153153

src/mapreduce.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# perform a reduction
1717
d = 1
1818
while d < items
19-
barrier()
19+
barrier(0)
2020
index = 2 * d * (item-1) + 1
2121
@inbounds if index <= items
2222
other_val = if index + d <= items

src/oneAPIKernels.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ end
161161
## Synchronization and Printing
162162

163163
@device_override @inline function KA.__synchronize()
164-
barrier()
164+
barrier(0)
165165
end
166166

167167
@device_override @inline function KA.__print(args...)

test/device/intrinsics.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ end
226226

227227
s[t] = d[t]
228228
s2[t] = 2*d[t]
229-
barrier()
229+
barrier(0)
230230
d[t] = s[tr]
231231

232232
return
@@ -252,7 +252,7 @@ end
252252

253253
s[t] = d[t]
254254
s2[t] = d[t]
255-
barrier()
255+
barrier(0)
256256
d[t] = s[tr]
257257

258258
return

test/execution.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -569,18 +569,18 @@ end
569569

570570
r[tx] = r_[tx]
571571

572-
barrier()
572+
barrier(0)
573573

574574
for j=1:n
575575
if tx == 1
576576
r[j] = r[j] / 2f0
577577
end
578-
barrier()
578+
barrier(0)
579579

580580
if tx > j && tx <= 4
581581
r[tx] = r[tx] - 2f0*r[j]
582582
end
583-
barrier()
583+
barrier(0)
584584
end
585585

586586
if bx == 1

0 commit comments

Comments
 (0)