![]() |
OpenSWMM Engine
6.0.0-alpha.4
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.4)
|
Shared support for GPU execution plugins. More...
#include "../solver/GpuPluginAbi.h"#include "ExplicitKokkosSurfaceSolver.hpp"#include <cstdio>#include <exception>Go to the source code of this file.
Namespaces | |
| namespace | openswmm |
| namespace | openswmm::twoD |
| namespace | openswmm::twoD::gpu |
| namespace | openswmm::twoD::gpu::plugin |
Functions | |
| template<class Initialize> | |
| void * | openswmm::twoD::gpu::plugin::make (Initialize initialize) noexcept |
| Construct a plugin-owned Kokkos surface marcher with thread-local diagnostics. | |
| OPENSWMM_GPU_ABI const char * | openswmm_gpu_build_contract () |
| v5 compatibility check, called BEFORE probe or factory. | |
| OPENSWMM_GPU_ABI const char * | openswmm_gpu_last_error () |
| Last construction error on this controlling thread; plugin-owned text. | |
| OPENSWMM_GPU_ABI void | openswmm_destroy_gpu_explicit_solver (void *solver) |
| Destroy on the execution owner through the allocating plugin. | |
Variables | |
| thread_local char | openswmm::twoD::gpu::plugin::error [512] {} |
Shared support for GPU execution plugins.
| OPENSWMM_GPU_ABI void openswmm_destroy_gpu_explicit_solver | ( | void * | solver | ) |
Destroy on the execution owner through the allocating plugin.
Destroy a solver using the same plugin that allocated it.
| [in] | solver | Owned factory result from this loaded plugin; NULL is safe. Foreign/already-destroyed pointers are unsupported. |
| OPENSWMM_GPU_ABI const char * openswmm_gpu_build_contract | ( | void | ) |
v5 compatibility check, called BEFORE probe or factory.
Borrow the plugin's generated C++ compatibility fingerprint.
| OPENSWMM_GPU_ABI const char * openswmm_gpu_last_error | ( | void | ) |
Last construction error on this controlling thread; plugin-owned text.
Borrow the controlling thread's most recent factory diagnostic.