PR #10350: [ROCm] fixed CudaCubinInMemory build error from https://github.com/openxla/xla/pull/9045
PR #10350: [ROCm] fixed CudaCubinInMemory build error from https://github.com/openxla/xla/pull/9045

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

This PR fixed a build error from https://github.com/openxla/xla/pull/9045
@xla-rotation @ddunl 
Copybara import of the project:

--
e233082e980f1d2cf74c96084472e32fa238fca9 by Chao Chen <cchen104@amd.com>:

fixed CudaCubinInMemory for https://github.com/openxla/xla/pull/9045

Merging this change closes #10350

FUTURE_COPYBARA_INTEGRATE_REVIEW=https://github.com/openxla/xla/pull/10350 from ROCm:fixed_CudaCubinInMemory e233082e980f1d2cf74c96084472e32fa238fca9
