[OpenMP][libomptarget] Init device when printing device info
authorKevin Sala <kevin.sala@bsc.es>
Tue, 9 May 2023 14:03:21 +0000 (16:03 +0200)
committerKevin Sala <kevin.sala@bsc.es>
Tue, 9 May 2023 16:47:46 +0000 (18:47 +0200)
commitaa326559c443382030c735db167645685da245a2
tree9ddc5498b1fab8da61ac1690c0e14532dc0292b6
parent0d6d8a853a6ea29b5f461a475a8f8eb7e7ba18e2
[OpenMP][libomptarget] Init device when printing device info

This patch fixes the printing of device information. Devices are initialized
before printing its information. Fixes #61392

Differential Revision: https://reviews.llvm.org/D146081
openmp/libomptarget/src/interface.cpp