Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Jan 19th, 2018
59
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.20 KB
| None
|
0
0
raw
download
clone
embed
print
report
In Julia, accomplish reduction syntax
```julia
s = Atomic{Float64}(0.0)
@threads for id in 1:4
tmpsum = 0.0
for i in (id-1)*25+1:id*25
tmpsum += a[i]
end
atomic_add!(s, tmpsum)
end
```
Add Comment
Please,
Sign In
to add comment
Public Pastes
Stargate Coords
Lua | 1 hour ago | 1.13 KB
[tmpfixcorners].config/gtk3/gtk.css
CSS | 3 hours ago | 0.12 KB
Roblox random IP address generator and geoloc...
Lua | 3 hours ago | 6.72 KB
Pascua - 2
HTML | 3 hours ago | 0.90 KB
Untitled
Java | 4 hours ago | 0.72 KB
Untitled
Dart | 5 hours ago | 2.70 KB
fusao mekanism
Lua | 5 hours ago | 1.73 KB
Image W/Gallery Expandable Image Features
HTML | 6 hours ago | 0.41 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!