Skip to content

Commit

Permalink
Merge pull request #54 from exanauts/kk/dev
Browse files Browse the repository at this point in the history
Fixing potential race conditions
  • Loading branch information
youngdae authored Aug 11, 2023
2 parents bfaa546 + 03c2332 commit 0075782
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/CUDA/ddot.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@
@inbounds for i=1:n
v += dx[i]*dy[i]
end
CUDA.sync_threads()
return v
end
1 change: 1 addition & 0 deletions src/CUDA/dspcg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
end
end
end
CUDA.sync_threads()
nfree = CUDA.shfl_sync(0xffffffff, nfree, 1)

# Exit if there are no free constraints.
Expand Down

0 comments on commit 0075782

Please sign in to comment.