Skip to content

Commit

Permalink
Fix Type Mismatch (#6410)
Browse files Browse the repository at this point in the history
`num_bytes_per_thread` was a smaller type than `file_num_bytes`, this
caused issues when dividing by `num_threads`.

Co-authored-by: jomayeri <deepspeed@H100-VM2.shlnn55tgwve1eacvp21ie45dg.jx.internal.cloudapp.net>
Co-authored-by: Olatunji Ruwase <[email protected]>
  • Loading branch information
3 people authored Aug 23, 2024
1 parent ca4449e commit e2654bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion csrc/aio/py_lib/deepspeed_aio_op_desc.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ struct io_op_desc_t {
const std::string _filename;
const long long int _file_num_bytes;
const int _num_threads;
const int _num_bytes_per_thread;
const long long int _num_bytes_per_thread;
torch::Tensor _contiguous_buffer;
const bool _validate;

Expand Down

0 comments on commit e2654bf

Please sign in to comment.