![]() |
Astaroth
2.2
|
#include "astaroth.h"#include <string.h>#include "astaroth_utils.h"#include "errchk.h"#include "math_utils.h"#include "timer_hires.h"#include "kernels/kernels.h"
Include dependency graph for device.cc:Macros | |
| #define | ARRAY_SIZE(arr) (sizeof(arr) / sizeof(arr[0])) |
| #define | MPI_GPUDIRECT_DISABLED (0) |
Functions | |
| AcResult | acDevicePrintInfo (const Device device) |
| AcResult | acDeviceAutoOptimize (const Device device) |
| AcResult | acDeviceSynchronizeStream (const Device device, const Stream stream) |
| AcResult | acDeviceCreate (const int id, const AcMeshInfo device_config, Device *device_handle) |
| AcResult | acDeviceDestroy (Device device) |
| AcResult | acDeviceSwapBuffers (const Device device) |
| AcResult | acDeviceLoadScalarArray (const Device device, const Stream stream, const ScalarArrayHandle handle, const size_t start, const AcReal *data, const size_t num) |
| 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 | acDeviceLoadMeshWithOffset (const Device device, const Stream stream, const AcMesh host_mesh, const int3 src, const int3 dst, const int num_vertices) |
| AcResult | acDeviceLoadVertexBuffer (const Device device, const Stream stream, const AcMesh host_mesh, const VertexBufferHandle vtxbuf_handle) |
| AcResult | acDeviceLoadMesh (const Device device, const Stream stream, const 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 | acDeviceStoreMeshWithOffset (const Device device, const Stream stream, const int3 src, const int3 dst, const int num_vertices, AcMesh *host_mesh) |
| AcResult | acDeviceStoreVertexBuffer (const Device device, const Stream stream, const VertexBufferHandle vtxbuf_handle, AcMesh *host_mesh) |
| AcResult | acDeviceStoreMesh (const Device device, const Stream stream, AcMesh *host_mesh) |
| 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) |
| 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 | acDeviceTransferMesh (const Device src_device, const Stream stream, Device dst_device) |
| AcResult | acDeviceIntegrateSubstep (const Device device, const Stream stream, const int step_number, const int3 start, const int3 end, const AcReal dt) |
| AcResult | acDevicePeriodicBoundcondStep (const Device device, const Stream stream, const VertexBufferHandle vtxbuf_handle, const int3 start, const int3 end) |
| AcResult | acDevicePeriodicBoundconds (const Device device, const Stream stream, const int3 start, const int3 end) |
| AcResult | acDeviceReduceScal (const Device device, const Stream stream, const ReductionType rtype, const VertexBufferHandle vtxbuf_handle, AcReal *result) |
| AcResult | acDeviceReduceVec (const Device device, const Stream stream, const ReductionType rtype, const VertexBufferHandle vtxbuf0, const VertexBufferHandle vtxbuf1, const VertexBufferHandle vtxbuf2, AcReal *result) |
| AcResult | acDeviceRunMPITest (void) |
| #define ARRAY_SIZE | ( | arr | ) | (sizeof(arr) / sizeof(arr[0])) |
| #define MPI_GPUDIRECT_DISABLED (0) |
| AcResult acDeviceCreate | ( | const int | id, |
| const AcMeshInfo | device_config, | ||
| Device * | device_handle | ||
| ) |
| AcResult acDeviceIntegrateSubstep | ( | const Device | device, |
| const Stream | stream, | ||
| const int | step_number, | ||
| const int3 | start, | ||
| const int3 | end, | ||
| const AcReal | dt | ||
| ) |
| AcResult acDeviceLoadMeshWithOffset | ( | const Device | device, |
| const Stream | stream, | ||
| const AcMesh | host_mesh, | ||
| const int3 | src, | ||
| const int3 | dst, | ||
| const int | num_vertices | ||
| ) |
Deprecated
| AcResult acDeviceLoadScalarArray | ( | const Device | device, |
| const Stream | stream, | ||
| const ScalarArrayHandle | handle, | ||
| const size_t | start, | ||
| const AcReal * | data, | ||
| const size_t | num | ||
| ) |
| 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 acDevicePeriodicBoundconds | ( | const Device | device, |
| const Stream | stream, | ||
| const int3 | start, | ||
| const int3 | end | ||
| ) |
| AcResult acDevicePeriodicBoundcondStep | ( | const Device | device, |
| const Stream | stream, | ||
| const VertexBufferHandle | vtxbuf_handle, | ||
| const int3 | start, | ||
| const int3 | end | ||
| ) |
! printf(" Total const mem: %ld KiB\n", props.totalConstMem / (1024)); ! printf(" Shared mem per block: %ld KiB\n", props.sharedMemPerBlock / (1024));
| AcResult acDeviceReduceScal | ( | const Device | device, |
| const Stream | stream, | ||
| const ReductionType | rtype, | ||
| const VertexBufferHandle | vtxbuf_handle, | ||
| AcReal * | result | ||
| ) |
| AcResult acDeviceReduceVec | ( | const Device | device, |
| const Stream | stream, | ||
| const ReductionType | rtype, | ||
| const VertexBufferHandle | vtxbuf0, | ||
| const VertexBufferHandle | vtxbuf1, | ||
| const VertexBufferHandle | vtxbuf2, | ||
| AcReal * | result | ||
| ) |
| AcResult acDeviceRunMPITest | ( | void | ) |
| AcResult acDeviceStoreMeshWithOffset | ( | const Device | device, |
| const Stream | stream, | ||
| const int3 | src, | ||
| const int3 | dst, | ||
| const int | num_vertices, | ||
| AcMesh * | host_mesh | ||
| ) |
Deprecated
| 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 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 | ||
| ) |