================
@@ -0,0 +1,524 @@
+//===- InstrProfilingPlatformROCmHSA.cpp - ROCm HSA device drain ---------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM 
Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+//
+// Supplemental HSA-introspection drain (Linux only).
+//
+// The host-shadow drain in InstrProfilingPlatformROCm.cpp only sees device 
code
+// objects with a host-side shadow (__hipRegisterVar) or an intercepted
+// hipModuleLoad*. Device-linked code with no host shadow (e.g. RCCL) is
+// invisible to it. This pass walks every GPU agent's loaded executables via
+// HSA, finds each __llvm_profile_sections table on the device, and drains the
+// ones the host-shadow pass missed (deduped by the section-bounds tuple). It
+// reuses processDeviceOffloadPrf() so the profraw layout is identical.
+//
+// HSA introspection is Linux-only; on any other target this is an empty TU.
+//
+//===----------------------------------------------------------------------===//
+
+#if defined(__linux__) && !defined(_WIN32)
----------------
lfmeadow wrote:

Fixed.

https://github.com/llvm/llvm-project/pull/203056
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to