Astaroth  3.1
Scalable Multi-GPU Stencil Computations
Loading...
Searching...
No Matches
ac_helpers.h File Reference
#include "acc_runtime.h"
#include "acreal.h"
#include "astaroth_device_headers.h"
#include "astaroth_helpers.h"
#include "func_define.h"
#include "host_datatypes.h"
#include "ac_reduce_helpers.h"
Include dependency graph for ac_helpers.h:

Go to the source code of this file.

Functions

void ac_mpi_barrier (const AcMeshInfo info)
void ac_mpi_bcast (int *res, const AcMeshInfo info)
int ac_mpi_rank (const AcMeshInfo info)
bool ac_mpi_root (const AcMeshInfo info)
void ac_restore_floating_point_exceptions ()
void ac_unset_floating_point_exceptions ()
size_t acDeviceResize (void **dst, const size_t old_bytes, const size_t new_bytes)
size_t acGetAmountOfDeviceMemoryFree ()
int acGetCurrentDevice ()
AcMeshOrder acGetMeshOrderForProfile (const AcProfileType type)
int acGetNumOfWarps (const dim3 bpg, const dim3 tpb)
AcShape acGetReductionShape (const AcProfileType type, const AcMeshDims dims)
size_t acGetSizeFromDim (const int dim, const Volume dims)
AcShape acGetTransposeBufferShape (const AcMeshOrder order, const Volume dims)
Volume acGetVolumeFromShape (const AcShape shape)
size_t acShapeCount (const AcShape shape)
size_t acShapeSize (const AcShape shape)
bool acSupportsCooperativeLaunches ()
Volume get_bpg (Volume dims, const Volume tpb)

Function Documentation

◆ ac_mpi_barrier()

void ac_mpi_barrier ( const AcMeshInfo info)

◆ ac_mpi_bcast()

void ac_mpi_bcast ( int * res,
const AcMeshInfo info )

◆ ac_mpi_rank()

int ac_mpi_rank ( const AcMeshInfo info)

◆ ac_mpi_root()

bool ac_mpi_root ( const AcMeshInfo info)

◆ ac_restore_floating_point_exceptions()

void ac_restore_floating_point_exceptions ( )

◆ ac_unset_floating_point_exceptions()

void ac_unset_floating_point_exceptions ( )

◆ acDeviceResize()

size_t acDeviceResize ( void ** dst,
const size_t old_bytes,
const size_t new_bytes )

◆ acGetAmountOfDeviceMemoryFree()

size_t acGetAmountOfDeviceMemoryFree ( )

◆ acGetCurrentDevice()

int acGetCurrentDevice ( )

◆ acGetMeshOrderForProfile()

AcMeshOrder acGetMeshOrderForProfile ( const AcProfileType type)

◆ acGetNumOfWarps()

int acGetNumOfWarps ( const dim3 bpg,
const dim3 tpb )

◆ acGetReductionShape()

AcShape acGetReductionShape ( const AcProfileType type,
const AcMeshDims dims )

◆ acGetSizeFromDim()

size_t acGetSizeFromDim ( const int dim,
const Volume dims )

◆ acGetTransposeBufferShape()

AcShape acGetTransposeBufferShape ( const AcMeshOrder order,
const Volume dims )

◆ acGetVolumeFromShape()

Volume acGetVolumeFromShape ( const AcShape shape)

◆ acShapeCount()

size_t acShapeCount ( const AcShape shape)

◆ acShapeSize()

size_t acShapeSize ( const AcShape shape)

◆ acSupportsCooperativeLaunches()

bool acSupportsCooperativeLaunches ( )

◆ get_bpg()

Volume get_bpg ( Volume dims,
const Volume tpb )