MUDA
Loading...
Searching...
No Matches
parallel_for.h File Reference

A frequently used parallel for loop, DynamicBlockDim and GridStrideLoop strategy are provided, and can be switched seamlessly to each other. More...

#include <muda/launch/launch_base.h>
#include <muda/launch/kernel_tag.h>
#include <stdexcept>
#include <exception>
#include "details/parallel_for.inl"

Go to the source code of this file.

Classes

class  muda::details::ParallelForCallable< F >
 
class  muda::ParallelForDetails
 
class  muda::ParallelFor
 a frequently used parallel for loop, DynamicBlockDim and GridStrideLoop strategy are provided, and can be switched seamlessly to each other. More...
 

Enumerations

enum class  ParallelForType : uint32_t { DynamicBlocks , GridStrideLoop }
 

Functions

template<typename F , typename UserTag >
MUDA_GLOBAL void muda::details::parallel_for_kernel (ParallelForCallable< F > f)
 
template<typename F , typename UserTag >
MUDA_GLOBAL void muda::details::grid_stride_loop_kernel (ParallelForCallable< F > f)
 

Detailed Description

A frequently used parallel for loop, DynamicBlockDim and GridStrideLoop strategy are provided, and can be switched seamlessly to each other.

Author
MuGdxy
Date
January 2024