tfel
Loading...
Searching...
No Matches
DeviceStackSize.hxx File Reference

This file declares a function setting the stack size of the threads of NVIDIA GPUs for the parallel programming models which do not give access to this setting. More...

#include <mutex>
#include <cstddef>

Namespaces

namespace  mfront
 This namespace contains material used to build the MFront code generator.
namespace  mfront::generic_parallel

Functions

std::mutex & mfront::generic_parallel::getStackSizeMutex () noexcept
bool mfront::generic_parallel::setMinimalCUDAStackSize (const std::size_t stack_size, const bool preserve=false) noexcept
 increase the stack size of the threads of the current CUDA device, if the CUDA runtime is loaded by the process. Otherwise, nothing is done. A loaded CUDA runtime does not mean that the computations are performed on an NVIDIA GPU: the primitives of the stlpar and sycl backends only call this function when the computations are offloaded to a GPU (nvc++ -stdpar=gpu, sycl queue running on a GPU).

Variables

constexpr const char * mfront::generic_parallel::stack_size_error_message
 error message associated with setMinimalCUDAStackSize

Detailed Description

This file declares a function setting the stack size of the threads of NVIDIA GPUs for the parallel programming models which do not give access to this setting.

Date
05/10/2026