[llvm] [AMDGPU] Add ML-oriented coexec scheduler selection and queue handling (PR #169616)

Austin Kerbow via llvm-commits llvm-commits at lists.llvm.org
Sun Mar 8 18:03:41 PDT 2026


================
@@ -574,6 +575,58 @@ static cl::opt<std::string>
                         cl::desc("Select custom AMDGPU scheduling strategy."),
                         cl::Hidden, cl::init(""));
 
+enum class AMDGPUPostSchedStrategy {
+  Default,
+  Nop,
+};
+
+static StringRef getAMDGPUWorkloadType(const Module *M) {
+  if (!M)
+    return "";
+
+  auto *WorkloadType =
+      dyn_cast_or_null<MDString>(M->getModuleFlag("amdgpu-workload-type"));
+  if (!WorkloadType)
+    return "";
+
+  return WorkloadType->getString();
+}
----------------
kerbowa wrote:

I've removed the module flag in the meantime for this PR while we settle on an approach.

https://github.com/llvm/llvm-project/pull/169616


More information about the llvm-commits mailing list