================ @@ -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; } ---------------- shiltian wrote:
https://docs.nvidia.com/cuda/cuda-c-programming-guide/#execution-configuration Isn't it a `dim3`? https://github.com/llvm/llvm-project/pull/119009 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits