openxla / xla

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

[XLA:GPU] Remove the use of GpuTimer::ReturnRandomDurationsForTesting() in determinism_test.cc. #17959

Closed copybara-service[bot] closed 1 week ago

copybara-service[bot] commented 1 week ago

[XLA:GPU] Remove the use of GpuTimer::ReturnRandomDurationsForTesting() in determinism_test.cc.

Instead we inject a mock stream executor that fails the test if some component tries to create a timer.