| Taskflow: A General-purpose Task-parallel Programming System

Loading...
Searching...
No Matches
Public Member Functions | List of all members
tf::cudaGraphCreator Class Reference

class to create functors that construct CUDA graphs More...

`#include <taskflow/cuda/cuda_graph.hpp>`

## Public Member Functions
cudaGraph_t | operator() () const
| creates a new CUDA graph
cudaGraph_t | operator() (cudaGraph_t graph) const
| return the given CUDA graph

## Detailed Description

class to create functors that construct CUDA graphs

This class define functors to new CUDA graphs using `cudaGraphCreate`.

## Member Function Documentation

## ◆ operator()()

cudaGraph_t tf::cudaGraphCreator::operator() | ( |  | ) | const
| inline

creates a new CUDA graph

Calls `cudaGraphCreate` to generate a CUDA native graph and returns it. If the graph creation fails, an error is reported.

Returns
  A newly created `cudaGraph_t` instance.

Exceptions

  If | CUDA graph creation fails, an error is logged.

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

- taskflow/cuda/cuda_graph.hpp