[all-commits] [llvm/llvm-project] 3817ba: [OpenMP] Add environment variables to change stack...

Joseph Huber via All-commits all-commits at lists.llvm.org
Thu Jul 22 18:40:22 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3817ba13aea3fdf189ee4048e4a5bf1eba2a3044
      https://github.com/llvm/llvm-project/commit/3817ba13aea3fdf189ee4048e4a5bf1eba2a3044
  Author: Joseph Huber <jhuber6 at vols.utk.edu>
  Date:   2021-07-22 (Thu, 22 Jul 2021)

  Changed paths:
    M openmp/docs/design/Runtimes.rst
    M openmp/libomptarget/plugins/cuda/src/rtl.cpp

  Log Message:
  -----------
  [OpenMP] Add environment variables to change stack / heap size in the CUDA plugin

This patch adds support for two environment variables to configure the device.
``LIBOMPTARGET_STACK_SIZE`` sets the amount of memory in bytes that each thread
has for its stack. ``LIBOMPTARGET_HEAP_SIZE`` sets the amount of heap memory
that can be allocated using malloc / free on the device.

Reviewed By: jdoerfert

Differential Revision: https://reviews.llvm.org/D106627




More information about the All-commits mailing list