[all-commits] [llvm/llvm-project] 39f19f: [Offload] Store device info tree in device handle ...

Ross Brunton via All-commits all-commits at lists.llvm.org
Fri Jun 27 07:11:04 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 39f19f2f1fb808bf16704a40ffaf99e47a83b584
      https://github.com/llvm/llvm-project/commit/39f19f2f1fb808bf16704a40ffaf99e47a83b584
  Author: Ross Brunton <ross at codeplay.com>
  Date:   2025-06-27 (Fri, 27 Jun 2025)

  Changed paths:
    M offload/liboffload/src/OffloadImpl.cpp

  Log Message:
  -----------
  [Offload] Store device info tree in device handle (#145913)

Rather than creating a new device info tree for each call to
`olGetDeviceInfo`, we instead do it on device initialisation. As well
as improving performance, this fixes a few lifetime issues with returned
strings.

This does unfortunately mean that device information is immutable,
but hopefully that shouldn't be a problem for any queries we want to
implement.

This also meant allowing offload initialization to fail, which it can
now do.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list