Template Numerical Library: TNL::Backend::LaunchConfiguration Struct Reference

Template Numerical Library version\ main:c7077e4fd

Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
TNL::Backend::LaunchConfiguration Struct Reference

Holds the parameters necessary to launch a CUDA or HIP kernel (i.e. schedule it for execution on some stream of some device). More...

`#include <TNL/Backend/KernelLaunch.h>`

Inheritance diagram for TNL::Backend::LaunchConfiguration:
[legend]
Collaboration diagram for TNL::Backend::LaunchConfiguration:
[legend]

## Public Member Functions
constexpr | LaunchConfiguration (const LaunchConfiguration &)=default
constexpr | LaunchConfiguration (dim3 gridSize, dim3 blockSize, std::size_t dynamicSharedMemorySize=0U, Backend::stream_t stream=0, bool blockHostUntilFinished=true)
constexpr | LaunchConfiguration (LaunchConfiguration &&)=default

## Public Attributes
bool | blockHostUntilFinished = true
| indicates whether host execution is blocked until the kernel execution is finished
dim3 | blockSize
| kernel block dimensions (in threads)
std::size_t | dynamicSharedMemorySize = 0U
| size of dynamic shared memory (in bytes per block)
dim3 | gridSize
| kernel grid dimensions (in blocks)
Backend::stream_t | stream = 0
| stream handle

## Detailed Description

Holds the parameters necessary to launch a CUDA or HIP kernel (i.e. schedule it for execution on some stream of some device).

The documentation for this struct was generated from the following file:

- src/TNL/Backend/KernelLaunch.h