openxla / xla

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

[XLA:GPU] Fix invalid memory dereference in `GpuCudaMallocAsyncAllocator`. #14389

Closed copybara-service[bot] closed 2 weeks ago

copybara-service[bot] commented 2 weeks ago

[XLA:GPU] Fix invalid memory dereference in GpuCudaMallocAsyncAllocator.

The issue is this:

The solution is to not store pointers and so not need any dereference. The underlying type is anyway a pointer so we can store and compare it directly.