Astaroth  3.1
Scalable Multi-GPU Stencil Computations
Loading...
Searching...
No Matches
astaroth_device.h File Reference
#include "astaroth_base.h"
#include "func_define.h"
#include "device_load_uniform_decl.h"
#include "device_store_uniform_decl.h"
#include "device_set_input_decls.h"
#include "device_get_output_decls.h"
#include "device_get_input_decls.h"
Include dependency graph for astaroth_device.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DECL_DEVICE_STORE_ARRAY(PARAM_TYPE, VAL_TYPE, VAL_TYPE_UPPER_CASE)
#define DECL_DEVICE_STORE_UNIFORM(PARAM_TYPE, VAL_TYPE, VAL_TYPE_UPPER_CASE)
#define DEVICE_LOAD_ARRAY_DECL(ENUM, DEF_NAME)

Functions

AcResult acDeviceBenchmarkKernel (const Device device, const AcKernel kernel, const int3 start, const int3 end)
AcResult acDeviceCreate (const int id, const AcMeshInfo device_config, Device *device)
AcResult acDeviceDestroy (Device *device)
AcResult acDeviceFFTBackwardTransformPlanar (const Device device, const Field real_src, const Field imag_src, const Field real_dst, const Field imag_dst)
AcResult acDeviceFFTBackwardTransformPlanar2R (const Device device, const Field real_src, const Field imag_src, const Field real)
AcResult acDeviceFFTBackwardTransformPlanar2RXY (const Device device, const Field real_src, const Field imag_src, const Field dst, const size_t z_offset)
AcResult acDeviceFFTC2R (const Device device, const ComplexField src, const Field dst)
AcResult acDeviceFFTC2RXY (const Device device, const Field src, const ComplexField dst, const size_t z_starting_point, const size_t n_layers)
AcResult acDeviceFFTR2C (const Device device, const Field src, const ComplexField dst)
AcResult acDeviceFFTR2CXY (const Device device, const Field src, const ComplexField dst, const size_t z_starting_point, const size_t n_layers)
AcResult acDeviceFFTR2HermitianPlanarBatched (const Device device, const Field src, const Field real_dst, const Field imag_dst, const int batch_size, Stream stream)
AcResult acDeviceFFTR2Planar (const Device device, const Field src, const Field real_dst, const Field imag_dst)
AcResult acDeviceFFTR2PlanarBatched (const Device device, const Field src, const Field real_dst, const Field imag_dst, const int batch_size)
AcResult acDeviceFFTR2PlanarXY (const Device device, const Field src, const Field real_dst, const Field imag_dst, const size_t z_offset)
AcResult acDeviceFinishReduceInt (Device device, const Stream stream, int *result, const AcKernel kernel, const AcReduceOp reduce_op, const AcIntOutputParam output)
AcResult acDeviceFinishReduceIntStream (Device device, const cudaStream_t stream, int *result, const AcKernel kernel, const AcReduceOp reduce_op, const AcIntOutputParam output)
AcResult acDeviceFinishReduceReal (Device device, const Stream stream, AcReal *result, const AcKernel kernel, const AcReduceOp reduce_op, const AcRealOutputParam output)
AcResult acDeviceFinishReduceRealStream (Device device, const cudaStream_t stream, AcReal *result, const AcKernel kernel, const AcReduceOp reduce_op, const AcRealOutputParam output)
AcResult acDeviceFlushOutputBuffers (const Device device, const Stream stream)
AcResult acDeviceGeneralBoundconds (const Device device, const Stream stream, const Volume start, const Volume end, const AcMeshInfo config, const int3 bindex)
AcResult acDeviceGeneralBoundcondStep (const Device device, const Stream stream, const VertexBufferHandle vtxbuf_handle, const Volume start, const Volume end, const AcMeshInfo config, const int3 bindex)
AcMeshInfo acDeviceGetConfig (const Device device)
acKernelInputParams * acDeviceGetKernelInputParamsObject (const Device device)
AcDeviceKernelOutput acDeviceGetKernelOutput (const Device device)
AcMeshInfo acDeviceGetLocalConfig (const Device device)
AcResult acDeviceGetVertexBufferPtrs (Device device, const VertexBufferHandle vtxbuf, AcReal **in, AcReal **out)
AcResult acDeviceIntegrateSubstep (const Device device, const Stream stream, const int step_number, const Volume start, const Volume end, const AcReal dt)
AcResult acDeviceLaunchKernel (const Device device, const Stream stream, const AcKernel kernel, const Volume start, const Volume end)
AcResult acDeviceLoadBoolUniform (const Device device, const Stream stream, const AcBoolParam param, const bool value)
AcResult acDeviceLoadInt3Uniform (const Device device, const Stream stream, const AcInt3Param param, const int3 value)
AcResult acDeviceLoadIntUniform (const Device device, const Stream stream, const AcIntParam param, const int value)
AcResult acDeviceLoadMesh (const Device device, const Stream stream, const AcMesh host_mesh)
AcResult acDeviceLoadMeshInfo (const Device device, const AcMeshInfo device_config)
AcResult acDeviceLoadMeshWithOffset (const Device device, const Stream stream, const AcMesh host_mesh, const int3 src, const int3 dst, const int num_vertices)
AcResult acDeviceLoadPlateBuffer (const Device device, int3 start, int3 end, const Stream stream, AcReal *buffer, int plate)
AcResult acDeviceLoadProfile (const Device device, const AcReal *hostprofile, const size_t hostprofile_count, const Profile profile)
AcResult acDeviceLoadRealReduceRes (const Device device, const Stream stream, const AcRealOutputParam param, const AcReal value)
AcResult acDeviceLoadScalarUniform (const Device device, const Stream stream, const AcRealParam param, const AcReal value)
AcResult acDeviceLoadStencil (const Device device, const Stream stream, const Stencil stencil, const AcReal data[STENCIL_DEPTH][STENCIL_HEIGHT][STENCIL_WIDTH])
AcResult acDeviceLoadStencils (const Device device, const Stream stream, const AcReal data[NUM_STENCILS][STENCIL_DEPTH][STENCIL_HEIGHT][STENCIL_WIDTH])
AcResult acDeviceLoadStencilsFromConfig (const Device device, const Stream stream)
AcResult acDeviceLoadVectorUniform (const Device device, const Stream stream, const AcReal3Param param, const AcReal3 value)
AcResult acDeviceLoadVertexBuffer (const Device device, const Stream stream, const AcMesh host_mesh, const VertexBufferHandle vtxbuf_handle)
AcResult acDeviceLoadVertexBufferWithOffset (const Device device, const Stream stream, const AcMesh host_mesh, const VertexBufferHandle vtxbuf_handle, const int3 src, const int3 dst, const int num_vertices)
AcResult acDeviceMemGetInfo (const Device device, size_t *free_mem, size_t *total_mem)
AcResult acDevicePeriodicBoundconds (const Device device, const Stream stream, const Volume start, const Volume end)
AcResult acDevicePeriodicBoundcondStep (const Device device, const Stream stream, const VertexBufferHandle vtxbuf_handle, const Volume start, const Volume end)
AcResult acDevicePreprocessScratchPad (Device device, const int variable, const AcType type, const AcReduceOp op)
AcResult acDevicePrintInfo (const Device device)
AcResult acDevicePrintProfiles (const Device device)
AcResult acDeviceReduceAverages (const Device device, const Stream stream, const Profile prof)
AcResult acDeviceReduceScal (const Device device, const Stream stream, const AcReduction reduction, const VertexBufferHandle vtxbuf_handle, AcReal *result)
AcResult acDeviceReduceScalNoPostProcessing (const Device device, const Stream stream, const AcReduction reduction, const VertexBufferHandle vtxbuf_handle, AcReal *result)
AcResult acDeviceReduceVec (const Device device, const Stream stream_type, const AcReduction reduction, const VertexBufferHandle vtxbuf0, const VertexBufferHandle vtxbuf1, const VertexBufferHandle vtxbuf2, AcReal *result)
AcResult acDeviceReduceVecNoPostProcessing (const Device device, const Stream stream_type, const AcReduction reduction, const VertexBufferHandle vtxbuf0, const VertexBufferHandle vtxbuf1, const VertexBufferHandle vtxbuf2, AcReal *result)
AcResult acDeviceReduceVecScal (const Device device, const Stream stream_type, const AcReduction reduction, const VertexBufferHandle vtxbuf0, const VertexBufferHandle vtxbuf1, const VertexBufferHandle vtxbuf2, const VertexBufferHandle vtxbuf3, AcReal *result)
AcResult acDeviceReduceVecScalNoPostProcessing (const Device device, const Stream stream_type, const AcReduction reduction, const VertexBufferHandle vtxbuf0, const VertexBufferHandle vtxbuf1, const VertexBufferHandle vtxbuf2, const VertexBufferHandle vtxbuf3, AcReal *result)
AcResult acDeviceReduceXY (const Device device, const Stream stream, const Field field, const Profile profile, const AcReduction reduction)
AcResult acDeviceReduceXYAverages (const Device, const Stream)
AcResult acDeviceResetMesh (const Device device, const Stream stream)
AcResult acDeviceSetReduceOffset (const Device device, const AcKernel kernel, const Volume start, const Volume end)
AcResult acDeviceSetVertexBuffer (const Device device, const Stream stream, const VertexBufferHandle handle, const AcReal value)
AcResult acDeviceStoreIXYPlate (const Device device, int3 start, int3 end, int src_offset, const Stream stream, AcMesh *host_mesh)
AcResult acDeviceStoreMesh (const Device device, const Stream stream, AcMesh *host_mesh)
AcResult acDeviceStoreMeshWithOffset (const Device device, const Stream stream, const int3 src, const int3 dst, const int num_vertices, AcMesh *host_mesh)
AcResult acDeviceStorePlateBuffer (const Device device, int3 start, int3 end, const Stream stream, AcReal *buffer, int plate)
AcResult acDeviceStoreProfile (const Device device, const Profile profile, AcMesh *host_mesh)
AcResult acDeviceStoreScalarUniform (const Device device, const Stream stream, const AcRealParam param, AcReal *value)
AcResult acDeviceStoreStencil (const Device device, const Stream stream, const Stencil stencil, AcReal data[STENCIL_DEPTH][STENCIL_HEIGHT][STENCIL_WIDTH])
AcResult acDeviceStoreVectorUniform (const Device device, const Stream stream, const AcReal3Param param, AcReal3 *value)
AcResult acDeviceStoreVertexBuffer (const Device device, const Stream stream, const VertexBufferHandle vtxbuf_handle, AcMesh *host_mesh)
AcResult acDeviceStoreVertexBufferWithOffset (const Device device, const Stream stream, const VertexBufferHandle vtxbuf_handle, const int3 src, const int3 dst, const int num_vertices, AcMesh *host_mesh)
AcResult acDeviceSwapAllProfileBuffers (const Device device)
AcResult acDeviceSwapBuffer (const Device device, const VertexBufferHandle handle)
AcResult acDeviceSwapBuffers (const Device device)
AcResult acDeviceSwapProfileBuffer (const Device device, const Profile handle)
AcResult acDeviceSwapProfileBuffers (const Device device, const Profile *profiles, const size_t num_profiles)
AcResult acDeviceSynchronizeStream (const Device device, const Stream stream)
AcResult acDeviceTransferMesh (const Device src_device, const Stream stream, Device dst_device)
AcResult acDeviceTransferMeshWithOffset (const Device src_device, const Stream stream, const int3 src, const int3 dst, const int num_vertices, Device dst_device)
AcResult acDeviceTransferVertexBuffer (const Device src_device, const Stream stream, const VertexBufferHandle vtxbuf_handle, Device dst_device)
AcResult acDeviceTransferVertexBufferWithOffset (const Device src_device, const Stream stream, const VertexBufferHandle vtxbuf_handle, const int3 src, const int3 dst, const int num_vertices, Device dst_device)
AcBuffer acDeviceTransposeBase (const Device device, const Stream stream, const AcMeshOrder order, const AcReal *src)
AcBuffer acDeviceTransposeVertexBuffer (const Device device, const Stream stream, const AcMeshOrder order, const VertexBufferHandle vtxbuf)
AcResult acDeviceUpdate (Device device, const AcMeshInfo info)
AcResult acDeviceVolumeCopy (const Device device, const Stream stream, const AcReal *in, const Volume in_offset, const Volume in_volume, AcReal *out, const Volume out_offset, const Volume out_volume)
AcResult acDeviceWriteMeshToDisk (const Device device, const VertexBufferHandle vtxbuf, const char *filepath)

Variables

static const Stream const AcMeshOrder order
static const Stream const AcMeshOrder const AcReal * src
static const Stream stream

Macro Definition Documentation

◆ DECL_DEVICE_STORE_ARRAY

#define DECL_DEVICE_STORE_ARRAY ( PARAM_TYPE,
VAL_TYPE,
VAL_TYPE_UPPER_CASE )
Value:
FUNC_DEFINE(AcResult,acDeviceStore##VAL_TYPE_UPPER_CASE##Array,(const Device device, const Stream stream, const PARAM_TYPE param, VAL_TYPE* value));
Stream
Definition astaroth_base.h:47
struct device_s * Device
Definition astaroth_base.h:132
static const Stream stream
Definition astaroth_device.h:187
#define FUNC_DEFINE(return_type, func_name,...)
Definition func_define.h:69
AcResult
Definition host_datatypes.h:10
static __device__ const int const int const AcRealArrayParam param
Definition user_kernel.h:129

◆ DECL_DEVICE_STORE_UNIFORM

#define DECL_DEVICE_STORE_UNIFORM ( PARAM_TYPE,
VAL_TYPE,
VAL_TYPE_UPPER_CASE )
Value:
FUNC_DEFINE(AcResult,acDeviceStore##VAL_TYPE_UPPER_CASE##Uniform,(const Device device, const Stream stream, const PARAM_TYPE param, VAL_TYPE* value));

◆ DEVICE_LOAD_ARRAY_DECL

#define DEVICE_LOAD_ARRAY_DECL ( ENUM,
DEF_NAME )
Value:
FUNC_DEFINE(AcResult, acDeviceLoad##DEF_NAME##Array,(const Device device, const Stream stream, const AcMeshInfo host_info, const ENUM array));
Definition acc_runtime.h:156

Function Documentation

◆ acDeviceBenchmarkKernel()

AcResult acDeviceBenchmarkKernel ( const Device device,
const AcKernel kernel,
const int3 start,
const int3 end )

◆ acDeviceCreate()

AcResult acDeviceCreate ( const int id,
const AcMeshInfo device_config,
Device * device )

◆ acDeviceDestroy()

AcResult acDeviceDestroy ( Device * device)

◆ acDeviceFFTBackwardTransformPlanar()

AcResult acDeviceFFTBackwardTransformPlanar ( const Device device,
const Field real_src,
const Field imag_src,
const Field real_dst,
const Field imag_dst )

◆ acDeviceFFTBackwardTransformPlanar2R()

AcResult acDeviceFFTBackwardTransformPlanar2R ( const Device device,
const Field real_src,
const Field imag_src,
const Field real )

◆ acDeviceFFTBackwardTransformPlanar2RXY()

AcResult acDeviceFFTBackwardTransformPlanar2RXY ( const Device device,
const Field real_src,
const Field imag_src,
const Field dst,
const size_t z_offset )

◆ acDeviceFFTC2R()

AcResult acDeviceFFTC2R ( const Device device,
const ComplexField src,
const Field dst )

◆ acDeviceFFTC2RXY()

AcResult acDeviceFFTC2RXY ( const Device device,
const Field src,
const ComplexField dst,
const size_t z_starting_point,
const size_t n_layers )

◆ acDeviceFFTR2C()

AcResult acDeviceFFTR2C ( const Device device,
const Field src,
const ComplexField dst )

◆ acDeviceFFTR2CXY()

AcResult acDeviceFFTR2CXY ( const Device device,
const Field src,
const ComplexField dst,
const size_t z_starting_point,
const size_t n_layers )

◆ acDeviceFFTR2HermitianPlanarBatched()

AcResult acDeviceFFTR2HermitianPlanarBatched ( const Device device,
const Field src,
const Field real_dst,
const Field imag_dst,
const int batch_size,
Stream stream )

◆ acDeviceFFTR2Planar()

AcResult acDeviceFFTR2Planar ( const Device device,
const Field src,
const Field real_dst,
const Field imag_dst )

◆ acDeviceFFTR2PlanarBatched()

AcResult acDeviceFFTR2PlanarBatched ( const Device device,
const Field src,
const Field real_dst,
const Field imag_dst,
const int batch_size )

◆ acDeviceFFTR2PlanarXY()

AcResult acDeviceFFTR2PlanarXY ( const Device device,
const Field src,
const Field real_dst,
const Field imag_dst,
const size_t z_offset )

◆ acDeviceFinishReduceInt()

AcResult acDeviceFinishReduceInt ( Device device,
const Stream stream,
int * result,
const AcKernel kernel,
const AcReduceOp reduce_op,
const AcIntOutputParam output )

◆ acDeviceFinishReduceIntStream()

AcResult acDeviceFinishReduceIntStream ( Device device,
const cudaStream_t stream,
int * result,
const AcKernel kernel,
const AcReduceOp reduce_op,
const AcIntOutputParam output )

◆ acDeviceFinishReduceReal()

AcResult acDeviceFinishReduceReal ( Device device,
const Stream stream,
AcReal * result,
const AcKernel kernel,
const AcReduceOp reduce_op,
const AcRealOutputParam output )

◆ acDeviceFinishReduceRealStream()

AcResult acDeviceFinishReduceRealStream ( Device device,
const cudaStream_t stream,
AcReal * result,
const AcKernel kernel,
const AcReduceOp reduce_op,
const AcRealOutputParam output )

◆ acDeviceFlushOutputBuffers()

AcResult acDeviceFlushOutputBuffers ( const Device device,
const Stream stream )

◆ acDeviceGeneralBoundconds()

AcResult acDeviceGeneralBoundconds ( const Device device,
const Stream stream,
const Volume start,
const Volume end,
const AcMeshInfo config,
const int3 bindex )

◆ acDeviceGeneralBoundcondStep()

AcResult acDeviceGeneralBoundcondStep ( const Device device,
const Stream stream,
const VertexBufferHandle vtxbuf_handle,
const Volume start,
const Volume end,
const AcMeshInfo config,
const int3 bindex )

◆ acDeviceGetConfig()

AcMeshInfo acDeviceGetConfig ( const Device device)

◆ acDeviceGetKernelInputParamsObject()

acKernelInputParams * acDeviceGetKernelInputParamsObject ( const Device device)

◆ acDeviceGetKernelOutput()

AcDeviceKernelOutput acDeviceGetKernelOutput ( const Device device)

◆ acDeviceGetLocalConfig()

AcMeshInfo acDeviceGetLocalConfig ( const Device device)

◆ acDeviceGetVertexBufferPtrs()

AcResult acDeviceGetVertexBufferPtrs ( Device device,
const VertexBufferHandle vtxbuf,
AcReal ** in,
AcReal ** out )

◆ acDeviceIntegrateSubstep()

AcResult acDeviceIntegrateSubstep ( const Device device,
const Stream stream,
const int step_number,
const Volume start,
const Volume end,
const AcReal dt )

◆ acDeviceLaunchKernel()

AcResult acDeviceLaunchKernel ( const Device device,
const Stream stream,
const AcKernel kernel,
const Volume start,
const Volume end )

◆ acDeviceLoadBoolUniform()

AcResult acDeviceLoadBoolUniform ( const Device device,
const Stream stream,
const AcBoolParam param,
const bool value )

◆ acDeviceLoadInt3Uniform()

AcResult acDeviceLoadInt3Uniform ( const Device device,
const Stream stream,
const AcInt3Param param,
const int3 value )

◆ acDeviceLoadIntUniform()

AcResult acDeviceLoadIntUniform ( const Device device,
const Stream stream,
const AcIntParam param,
const int value )

◆ acDeviceLoadMesh()

AcResult acDeviceLoadMesh ( const Device device,
const Stream stream,
const AcMesh host_mesh )

◆ acDeviceLoadMeshInfo()

AcResult acDeviceLoadMeshInfo ( const Device device,
const AcMeshInfo device_config )

◆ acDeviceLoadMeshWithOffset()

AcResult acDeviceLoadMeshWithOffset ( const Device device,
const Stream stream,
const AcMesh host_mesh,
const int3 src,
const int3 dst,
const int num_vertices )

Deprecated

◆ acDeviceLoadPlateBuffer()

AcResult acDeviceLoadPlateBuffer ( const Device device,
int3 start,
int3 end,
const Stream stream,
AcReal * buffer,
int plate )

◆ acDeviceLoadProfile()

AcResult acDeviceLoadProfile ( const Device device,
const AcReal * hostprofile,
const size_t hostprofile_count,
const Profile profile )

◆ acDeviceLoadRealReduceRes()

AcResult acDeviceLoadRealReduceRes ( const Device device,
const Stream stream,
const AcRealOutputParam param,
const AcReal value )

◆ acDeviceLoadScalarUniform()

AcResult acDeviceLoadScalarUniform ( const Device device,
const Stream stream,
const AcRealParam param,
const AcReal value )

◆ acDeviceLoadStencil()

AcResult acDeviceLoadStencil ( const Device device,
const Stream stream,
const Stencil stencil,
const AcReal data[STENCIL_DEPTH][STENCIL_HEIGHT][STENCIL_WIDTH] )

◆ acDeviceLoadStencils()

AcResult acDeviceLoadStencils ( const Device device,
const Stream stream,
const AcReal data[NUM_STENCILS][STENCIL_DEPTH][STENCIL_HEIGHT][STENCIL_WIDTH] )

◆ acDeviceLoadStencilsFromConfig()

AcResult acDeviceLoadStencilsFromConfig ( const Device device,
const Stream stream )

◆ acDeviceLoadVectorUniform()

AcResult acDeviceLoadVectorUniform ( const Device device,
const Stream stream,
const AcReal3Param param,
const AcReal3 value )

◆ acDeviceLoadVertexBuffer()

AcResult acDeviceLoadVertexBuffer ( const Device device,
const Stream stream,
const AcMesh host_mesh,
const VertexBufferHandle vtxbuf_handle )

◆ acDeviceLoadVertexBufferWithOffset()

AcResult acDeviceLoadVertexBufferWithOffset ( const Device device,
const Stream stream,
const AcMesh host_mesh,
const VertexBufferHandle vtxbuf_handle,
const int3 src,
const int3 dst,
const int num_vertices )

◆ acDeviceMemGetInfo()

AcResult acDeviceMemGetInfo ( const Device device,
size_t * free_mem,
size_t * total_mem )

◆ acDevicePeriodicBoundconds()

AcResult acDevicePeriodicBoundconds ( const Device device,
const Stream stream,
const Volume start,
const Volume end )

◆ acDevicePeriodicBoundcondStep()

AcResult acDevicePeriodicBoundcondStep ( const Device device,
const Stream stream,
const VertexBufferHandle vtxbuf_handle,
const Volume start,
const Volume end )

◆ acDevicePreprocessScratchPad()

AcResult acDevicePreprocessScratchPad ( Device device,
const int variable,
const AcType type,
const AcReduceOp op )

◆ acDevicePrintInfo()

AcResult acDevicePrintInfo ( const Device device)

◆ acDevicePrintProfiles()

AcResult acDevicePrintProfiles ( const Device device)

◆ acDeviceReduceAverages()

AcResult acDeviceReduceAverages ( const Device device,
const Stream stream,
const Profile prof )

◆ acDeviceReduceScal()

AcResult acDeviceReduceScal ( const Device device,
const Stream stream,
const AcReduction reduction,
const VertexBufferHandle vtxbuf_handle,
AcReal * result )

◆ acDeviceReduceScalNoPostProcessing()

AcResult acDeviceReduceScalNoPostProcessing ( const Device device,
const Stream stream,
const AcReduction reduction,
const VertexBufferHandle vtxbuf_handle,
AcReal * result )

◆ acDeviceReduceVec()

AcResult acDeviceReduceVec ( const Device device,
const Stream stream_type,
const AcReduction reduction,
const VertexBufferHandle vtxbuf0,
const VertexBufferHandle vtxbuf1,
const VertexBufferHandle vtxbuf2,
AcReal * result )

◆ acDeviceReduceVecNoPostProcessing()

AcResult acDeviceReduceVecNoPostProcessing ( const Device device,
const Stream stream_type,
const AcReduction reduction,
const VertexBufferHandle vtxbuf0,
const VertexBufferHandle vtxbuf1,
const VertexBufferHandle vtxbuf2,
AcReal * result )

◆ acDeviceReduceVecScal()

AcResult acDeviceReduceVecScal ( const Device device,
const Stream stream_type,
const AcReduction reduction,
const VertexBufferHandle vtxbuf0,
const VertexBufferHandle vtxbuf1,
const VertexBufferHandle vtxbuf2,
const VertexBufferHandle vtxbuf3,
AcReal * result )

◆ acDeviceReduceVecScalNoPostProcessing()

AcResult acDeviceReduceVecScalNoPostProcessing ( const Device device,
const Stream stream_type,
const AcReduction reduction,
const VertexBufferHandle vtxbuf0,
const VertexBufferHandle vtxbuf1,
const VertexBufferHandle vtxbuf2,
const VertexBufferHandle vtxbuf3,
AcReal * result )

◆ acDeviceReduceXY()

AcResult acDeviceReduceXY ( const Device device,
const Stream stream,
const Field field,
const Profile profile,
const AcReduction reduction )

◆ acDeviceReduceXYAverages()

AcResult acDeviceReduceXYAverages ( const Device ,
const Stream  )

◆ acDeviceResetMesh()

AcResult acDeviceResetMesh ( const Device device,
const Stream stream )

Resets the mesh to default values defined in acc_runtime.cu:acVBAReset

◆ acDeviceSetReduceOffset()

AcResult acDeviceSetReduceOffset ( const Device device,
const AcKernel kernel,
const Volume start,
const Volume end )

◆ acDeviceSetVertexBuffer()

AcResult acDeviceSetVertexBuffer ( const Device device,
const Stream stream,
const VertexBufferHandle handle,
const AcReal value )

◆ acDeviceStoreIXYPlate()

AcResult acDeviceStoreIXYPlate ( const Device device,
int3 start,
int3 end,
int src_offset,
const Stream stream,
AcMesh * host_mesh )

◆ acDeviceStoreMesh()

AcResult acDeviceStoreMesh ( const Device device,
const Stream stream,
AcMesh * host_mesh )

◆ acDeviceStoreMeshWithOffset()

AcResult acDeviceStoreMeshWithOffset ( const Device device,
const Stream stream,
const int3 src,
const int3 dst,
const int num_vertices,
AcMesh * host_mesh )

Deprecated

◆ acDeviceStorePlateBuffer()

AcResult acDeviceStorePlateBuffer ( const Device device,
int3 start,
int3 end,
const Stream stream,
AcReal * buffer,
int plate )

◆ acDeviceStoreProfile()

AcResult acDeviceStoreProfile ( const Device device,
const Profile profile,
AcMesh * host_mesh )

◆ acDeviceStoreScalarUniform()

AcResult acDeviceStoreScalarUniform ( const Device device,
const Stream stream,
const AcRealParam param,
AcReal * value )

◆ acDeviceStoreStencil()

AcResult acDeviceStoreStencil ( const Device device,
const Stream stream,
const Stencil stencil,
AcReal data[STENCIL_DEPTH][STENCIL_HEIGHT][STENCIL_WIDTH] )

◆ acDeviceStoreVectorUniform()

AcResult acDeviceStoreVectorUniform ( const Device device,
const Stream stream,
const AcReal3Param param,
AcReal3 * value )

◆ acDeviceStoreVertexBuffer()

AcResult acDeviceStoreVertexBuffer ( const Device device,
const Stream stream,
const VertexBufferHandle vtxbuf_handle,
AcMesh * host_mesh )

◆ acDeviceStoreVertexBufferWithOffset()

AcResult acDeviceStoreVertexBufferWithOffset ( const Device device,
const Stream stream,
const VertexBufferHandle vtxbuf_handle,
const int3 src,
const int3 dst,
const int num_vertices,
AcMesh * host_mesh )

◆ acDeviceSwapAllProfileBuffers()

AcResult acDeviceSwapAllProfileBuffers ( const Device device)

◆ acDeviceSwapBuffer()

AcResult acDeviceSwapBuffer ( const Device device,
const VertexBufferHandle handle )

◆ acDeviceSwapBuffers()

AcResult acDeviceSwapBuffers ( const Device device)

◆ acDeviceSwapProfileBuffer()

AcResult acDeviceSwapProfileBuffer ( const Device device,
const Profile handle )

◆ acDeviceSwapProfileBuffers()

AcResult acDeviceSwapProfileBuffers ( const Device device,
const Profile * profiles,
const size_t num_profiles )

◆ acDeviceSynchronizeStream()

AcResult acDeviceSynchronizeStream ( const Device device,
const Stream stream )

◆ acDeviceTransferMesh()

AcResult acDeviceTransferMesh ( const Device src_device,
const Stream stream,
Device dst_device )

◆ acDeviceTransferMeshWithOffset()

AcResult acDeviceTransferMeshWithOffset ( const Device src_device,
const Stream stream,
const int3 src,
const int3 dst,
const int num_vertices,
Device dst_device )

Deprecated

◆ acDeviceTransferVertexBuffer()

AcResult acDeviceTransferVertexBuffer ( const Device src_device,
const Stream stream,
const VertexBufferHandle vtxbuf_handle,
Device dst_device )

◆ acDeviceTransferVertexBufferWithOffset()

AcResult acDeviceTransferVertexBufferWithOffset ( const Device src_device,
const Stream stream,
const VertexBufferHandle vtxbuf_handle,
const int3 src,
const int3 dst,
const int num_vertices,
Device dst_device )

◆ acDeviceTransposeBase()

AcBuffer acDeviceTransposeBase ( const Device device,
const Stream stream,
const AcMeshOrder order,
const AcReal * src )

◆ acDeviceTransposeVertexBuffer()

AcBuffer acDeviceTransposeVertexBuffer ( const Device device,
const Stream stream,
const AcMeshOrder order,
const VertexBufferHandle vtxbuf )

◆ acDeviceUpdate()

AcResult acDeviceUpdate ( Device device,
const AcMeshInfo info )

◆ acDeviceVolumeCopy()

AcResult acDeviceVolumeCopy ( const Device device,
const Stream stream,
const AcReal * in,
const Volume in_offset,
const Volume in_volume,
AcReal * out,
const Volume out_offset,
const Volume out_volume )

◆ acDeviceWriteMeshToDisk()

AcResult acDeviceWriteMeshToDisk ( const Device device,
const VertexBufferHandle vtxbuf,
const char * filepath )

Variable Documentation

◆ order

const Stream const AcMeshOrder order

◆ src

const Stream const AcMeshOrder const AcReal* src
Initial value:
{
static const Stream const AcMeshOrder const AcReal * src
Definition astaroth_device.h:188
static const Stream const AcMeshOrder order
Definition astaroth_device.h:187
AcBuffer acDeviceTransposeBase(const Device device, const Stream stream, const AcMeshOrder order, const AcReal *src)

◆ stream

const Stream stream