You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm pretty sure this should be changed to unsigned(nbytes), otherwise it throws a truncation error when the buffer size is larger than Int(typemax(UInt32)).
The text was updated successfully, but these errors were encountered:
ericproffitt
changed the title
nbytes is coerced to UInt32 in Buffer.jl outer constructor.nbytes is coerced to UInt32 in Buffer outer constructor.
Dec 15, 2021
ericproffitt
changed the title
nbytes is coerced to UInt32 in Buffer outer constructor.
nbytes is coerced to UInt32 in Buffer outer constructor
Dec 15, 2021
Currently the
nbytes
argument ofapi.clCreateBuffer
is converted to unsigned usingcl_uint
,OpenCL.jl/src/buffer.jl
Line 126 in f5f609c
I'm pretty sure this should be changed to
unsigned(nbytes)
, otherwise it throws a truncation error when the buffer size is larger thanInt(typemax(UInt32))
.The text was updated successfully, but these errors were encountered: