message: Fix XLA runtime issue on custom PTX check.
  The check is only applicable on CUDA.
diff: @@ -245,7 +245,8 @@ GpuExecutable::ResolveConstantGlobals(se::StreamExecutor* executor) {
  module_spec.AddCudaPtxInMemory(text().c_str());
  absl::flat_hash_map<int64, se::DeviceMemoryBase> globals;
  - if (module_spec.cuda_ptx_in_memory() == nullptr) {
  + if (executor->platform_kind() == se::PlatformKind::kCuda &&
  + module_spec.cuda_ptx_in_memory() == nullptr) {
  // No custom PTX => no globals.
  return &module_globals_.emplace(executor, std::move(globals)).first->second;
  }
  