MLIR 23.0.0git
OpenACCParMapping.h File Reference
#include "mlir/Dialect/OpenACC/OpenACC.h"
#include "mlir/IR/MLIRContext.h"
#include "llvm/Support/ErrorHandling.h"

Go to the source code of this file.

Classes

class  mlir::acc::ACCParMappingPolicy< ParDimAttrT >
 Policy class that defines how OpenACC parallelism levels map to target-specific parallel dimension attributes. More...
class  mlir::acc::DefaultACCToGPUMappingPolicy
 Default policy that provides the standard GPU mapping: gang(dim:1) -> BlockX (gridDim.x / blockIdx.x) gang(dim:2) -> BlockY (gridDim.y / blockIdx.y) gang(dim:3) -> BlockZ (gridDim.z / blockIdx.z) worker -> ThreadY (blockDim.y / threadIdx.y) vector -> ThreadX (blockDim.x / threadIdx.x) seq -> Sequential. More...

Namespaces

namespace  mlir
 Include the generated interface declarations.
namespace  mlir::acc

Typedefs

using mlir::acc::ACCToGPUMappingPolicy
 Type alias for the GPU-specific mapping policy.

Functions

ParLevel mlir::acc::getGangParLevel (int64_t gangDimValue)
 Convert a gang dimension value (1, 2, or 3) to the corresponding ParLevel.