Skip to content

Commit

Permalink
Update src/execution.jl
Browse files Browse the repository at this point in the history
Co-Authored-By: Tim Besard <[email protected]>
  • Loading branch information
kshyatt and maleadt committed Apr 6, 2020
1 parent 18b8408 commit 0bc80bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/execution.jl
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ For example:
cd = Mem.alloc(DeviceBuffer, 10*sizeof(Float32))
cudacall(vadd, (CuPtr{Cfloat},CuPtr{Cfloat},CuPtr{Cfloat}), ad, bd, cd; threads=10)
unsafe_copyto!(onvert(Ptr{Cvoid}, c), cd, 10*sizeof(Float32)))
unsafe_copyto!(convert(Ptr{Cvoid}, c), cd, 10*sizeof(Float32)))
The `blocks` and `threads` arguments control the launch configuration, and should both
consist of either an integer, or a tuple of 1 to 3 integers (omitted dimensions default to
Expand Down

0 comments on commit 0bc80bc

Please sign in to comment.