[clang] clang/AMDGPU: Set amdgpu-max-num-workgroups to disable Y/Z by default (PR #119009)

Matt Arsenault via cfe-commits cfe-commits at lists.llvm.org
Fri Dec 6 13:12:31 PST 2024


================
@@ -706,6 +706,10 @@ class LangOptions : public LangOptionsBase {
     return OpenCL || CUDA;
   }
 
+  /// Return true if the dispatch size for an offload language only uses one
+  /// dimension.
+  bool gridSizeIsOneDimension() const { return CUDA || HIP || OpenMP; }
----------------
arsenm wrote:

Yes

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


More information about the cfe-commits mailing list