[Openmp-commits] [PATCH] D106627: [OpenMP] Add environment variables to change stack / heap size in the CUDA plugin

Johannes Doerfert via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Thu Jul 22 21:22:27 PDT 2021


jdoerfert added inline comments.


================
Comment at: openmp/libomptarget/plugins/cuda/src/rtl.cpp:652
+    } else {
+      if (cuCtxGetLimit(&StackLimit, CU_LIMIT_STACK_SIZE) != CUDA_SUCCESS)
+        return OFFLOAD_FAIL;
----------------
abhinavgaba wrote:
> These enums don't seem to be defined in `cuda.h`, or somewhere else. Can you please take a look?
My cuda.h defines them.
```
/opt/cuda/targets/x86_64-linux/include/cuda.h
1130:    CU_LIMIT_STACK_SIZE                       = 0x00, /**< GPU thread stack size */
```
https://docs.nvidia.com/cuda/cuda-driver-api/group__CUDA__TYPES.html lists them as well.
Are you sure they are not there?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D106627/new/

https://reviews.llvm.org/D106627



More information about the Openmp-commits mailing list