PR #9827: [ROCm] Stream executor API logging API
PR #9827: [ROCm] Stream executor API logging API

Imported from GitHub PR https://github.com/openxla/xla/pull/9827

Separated from https://github.com/openxla/xla/pull/9593.

This adds a low-overhead ability to log stream executor API calls, for testing purposes (unit tests can enable the functionality and use it to verify that high-level operations result in correct sequences of low-level calls). At present, this only covers BlasGemm / BlasLt calls on ROCm backend.
Copybara import of the project:

--
41732ac48c5383f33d428fe76fcebe02506d5b52 by Eugene Kuznetsov <eugene.kuznetsov@amd.com>:

Stream executor API logging API

Merging this change closes #9827

FUTURE_COPYBARA_INTEGRATE_REVIEW=https://github.com/openxla/xla/pull/9827 from ROCm:ci_se_logging 41732ac48c5383f33d428fe76fcebe02506d5b52
