[Openmp-commits] [openmp] [OpenMP] Support 'omp_get_num_procs' on the device (PR #65501)
Shilei Tian via Openmp-commits
openmp-commits at lists.llvm.org
Wed Sep 6 11:19:06 PDT 2023
================
@@ -373,16 +374,21 @@ struct CUDADeviceTy : public GenericDeviceTy {
return Plugin::check(Res, "Error in cuCtxSetCurrent: %s");
}
+ /// NVIDIA returns the product of the SM count and the number of warps that
+ /// fit if the maximum number of threads were scheduled on each SM.
+ uint64_t getHardwareParallelism() const override {
+ return HardwareParallelism;
----------------
shiltian wrote:
Where is this value set?
https://github.com/llvm/llvm-project/pull/65501
More information about the Openmp-commits
mailing list