File tree Expand file tree Collapse file tree 5 files changed +8
-8
lines changed
Expand file tree Collapse file tree 5 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ translator](https://github.com/KhronosGroup/SPIRV-LLVM-Translator):
147147
148148``` julia
149149julia> function kernel ()
150- barrier ()
150+ barrier (0 )
151151 return
152152 end
153153
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 161161# # Synchronization and Printing
162162
163163@device_override @inline function KA. __synchronize ()
164- barrier ()
164+ barrier (0 )
165165end
166166
167167@device_override @inline function KA. __print (args... )
Original file line number Diff line number Diff line change 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
252252
253253 s[t] = d[t]
254254 s2[t] = d[t]
255- barrier ()
255+ barrier (0 )
256256 d[t] = s[tr]
257257
258258 return
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments