)]}'
{
  "commit": "57f0bdc8fb1e66d4ed9cfb57f1ef699eefd99646",
  "tree": "b935f6b8b4202665432ce0fd09f723296544faa2",
  "parents": [
    "a886870bc8ace9bdb03422403f8c673b05d9b3aa"
  ],
  "author": {
    "name": "Michael Halkenhaeuser",
    "email": "MichaelGerald.Halkenhauser@amd.com",
    "time": "Tue Aug 22 12:40:55 2023 -0400"
  },
  "committer": {
    "name": "Michael Halkenhaeuser",
    "email": "MichaelGerald.Halkenhauser@amd.com",
    "time": "Tue Aug 22 13:12:09 2023 -0400"
  },
  "message": "[OpenMP][OMPT] Fix `target enter data` callback ordering \u0026 reported device num\n\nThis patch fixes: https://github.com/llvm/llvm-project/issues/64738\nWe observed multiple issues, primarily that the `DeviceId` was reported as -1\nin certain scenarios. The reason for this is simply that the device is not\ninitialized at that point. Hence, we need to move the RAII object creation just\nafter the `checkDeviceAndCtors`, closer to the actual call we want to observe.\n\nThis also solves an odering issue where one `target enter data` callback would\nbe executed before the `Init` callback.\nAdditionally, this change will also fix that the callbacks corresponding to\n`enter / exit data` and `update` in conjunction with `nowait` would not result\nin the emission of an OMPT callback.\n\nAdded a testcase to cover initialized device number and `omp target` constructs.\n\nReviewed By: dhruvachak\n\nDifferential Revision: https://reviews.llvm.org/D157605\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "1b7ce77cb7bc74a015c519aff2719eaed050853e",
      "old_mode": 33188,
      "old_path": "openmp/libomptarget/src/interface.cpp",
      "new_id": "29b9f45b5bdca952433ed75430a79621e30fdf36",
      "new_mode": 33188,
      "new_path": "openmp/libomptarget/src/interface.cpp"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "5bbc47dc11a7d1525574a76299066f113de2f43c",
      "new_mode": 33188,
      "new_path": "openmp/libomptarget/test/ompt/veccopy_data.c"
    }
  ]
}
