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

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 3 13:02:16 PST 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();
+}
----------------
arsenm wrote:

There shouldn't be an option for a particular workload. Controls should be defined semantically 

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


More information about the llvm-commits mailing list