openxla / xla

A machine learning compiler for GPUs, CPUs, and ML accelerators
Apache License 2.0
2.64k stars 418 forks source link

Avoid compile error on MacOS. #17971

Closed copybara-service[bot] closed 1 week ago

copybara-service[bot] commented 1 week ago

Avoid compile error on MacOS.

xla/service/gpu/gpu_transfer_manager.cc:241:24: error: no matching function for call to 'min' /chunk_size=/std::min(chunk_size, size - chunk_index * chunk_size)));

This can be avoided by explicitly casting to size_t.