openswmm-gpu-omp 6.0.0a2__py3-none-win_amd64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"""openswmm-gpu-omp -- OpenMP (Kokkos) acceleration plugin for OpenSWMM 2D.
|
|
2
|
+
|
|
3
|
+
This companion distribution ships a single native plugin
|
|
4
|
+
(``libopenswmm_gpu_omp``) beside this file and carries no public Python API:
|
|
5
|
+
*installing it is sufficient*.
|
|
6
|
+
|
|
7
|
+
At import, the base :mod:`openswmm` package detects this package and prepends
|
|
8
|
+
this directory to the engine's plugin search path
|
|
9
|
+
(``OPENSWMM_GPU_PLUGIN_PATH``). The C++ core then dlopen()s the plugin and, with
|
|
10
|
+
``OPENSWMM_2D_BACKEND`` left at ``auto`` (the default), runs the 2D surface
|
|
11
|
+
solver on the Kokkos-OpenMP backend automatically. Uninstalling this package
|
|
12
|
+
returns 2D runs to the serial CPU solver.
|
|
13
|
+
|
|
14
|
+
:author: Caleb Buahin
|
|
15
|
+
:license: MIT
|
|
16
|
+
"""
|
|
17
|
+
|
|
18
|
+
import importlib.metadata
|
|
19
|
+
import os
|
|
20
|
+
|
|
21
|
+
#: Absolute directory holding the bundled plugin shared library. Exposed so the
|
|
22
|
+
#: base package (and callers) can locate it without re-deriving the path.
|
|
23
|
+
plugin_dir: str = os.path.dirname(os.path.abspath(__file__))
|
|
24
|
+
|
|
25
|
+
try:
|
|
26
|
+
__version__: str = importlib.metadata.version("openswmm-gpu-omp")
|
|
27
|
+
except importlib.metadata.PackageNotFoundError:
|
|
28
|
+
__version__ = "0.0.0.dev0"
|
|
29
|
+
|
|
30
|
+
__all__ = ["__version__", "plugin_dir"]
|
|
Binary file
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: openswmm-gpu-omp
|
|
3
|
+
Version: 6.0.0a2
|
|
4
|
+
Summary: OpenMP (Kokkos) GPU-plugin companion for the OpenSWMM 2D surface solver.
|
|
5
|
+
Keywords: SWMM,stormwater,hydraulics,GPU,OpenMP,Kokkos
|
|
6
|
+
Author-Email: Caleb Buahin <caleb.buahin@gmail.com>
|
|
7
|
+
Maintainer-Email: Caleb Buahin <caleb.buahin@gmail.com>
|
|
8
|
+
License: MIT License
|
|
9
|
+
|
|
10
|
+
Copyright 2026 Caleb Buahin
|
|
11
|
+
|
|
12
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
13
|
+
|
|
14
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
17
|
+
|
|
18
|
+
This project contains original material has been released as part of various USEPA SWMM software over the years. These reside in the
|
|
19
|
+
public domain and cannot be claimed. This project also contains new material prepared by the United States
|
|
20
|
+
Government for which domestic copyright protection is not available under 17
|
|
21
|
+
USC § 105.
|
|
22
|
+
|
|
23
|
+
Classifier: Development Status :: 3 - Alpha
|
|
24
|
+
Classifier: Intended Audience :: Science/Research
|
|
25
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
26
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
27
|
+
Classifier: Operating System :: MacOS
|
|
28
|
+
Classifier: Programming Language :: C++
|
|
29
|
+
Classifier: Topic :: Scientific/Engineering :: Hydrology
|
|
30
|
+
Project-URL: Homepage, https://github.com/hydrocouple/openswmm.engine
|
|
31
|
+
Project-URL: Repository, https://github.com/hydrocouple/openswmm.engine
|
|
32
|
+
Requires-Python: >=3.10
|
|
33
|
+
Requires-Dist: openswmm==6.0.0a2
|
|
34
|
+
Description-Content-Type: text/markdown
|
|
35
|
+
|
|
36
|
+
# openswmm-gpu-omp
|
|
37
|
+
|
|
38
|
+
OpenMP (Kokkos) acceleration companion for the [OpenSWMM](https://pypi.org/project/openswmm/)
|
|
39
|
+
2D surface solver.
|
|
40
|
+
|
|
41
|
+
The base `openswmm` wheel is CPU-only and fully portable (Kokkos-free). This
|
|
42
|
+
companion ships a single native plugin (`libopenswmm_gpu_omp`) that the OpenSWMM
|
|
43
|
+
engine discovers and loads at runtime to run the 2D surface solver on the
|
|
44
|
+
Kokkos-OpenMP backend.
|
|
45
|
+
|
|
46
|
+
## Install
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
pip install openswmm # CPU-only base engine
|
|
50
|
+
pip install openswmm-gpu-omp # add OpenMP acceleration
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
That is all. There is no public Python API: at import, the base `openswmm`
|
|
54
|
+
package detects this companion and adds it to the engine's plugin search path
|
|
55
|
+
(`OPENSWMM_GPU_PLUGIN_PATH`). With `OPENSWMM_2D_BACKEND` left at its `auto`
|
|
56
|
+
default, 2D surface runs then use OpenMP automatically. Setting
|
|
57
|
+
`OPENSWMM_2D_BACKEND=cpu` forces the serial solver; uninstalling this package
|
|
58
|
+
reverts to it permanently.
|
|
59
|
+
|
|
60
|
+
## Notes
|
|
61
|
+
|
|
62
|
+
- OpenMP only — no GPU driver required. Numerics match the serial CPU solver to
|
|
63
|
+
~1e-13 (not bit-identical); pin `OPENSWMM_2D_BACKEND=cpu` where bit-exact
|
|
64
|
+
reproducibility is required.
|
|
65
|
+
- The plugin is version-locked to the base engine (`openswmm == <same version>`)
|
|
66
|
+
and additionally ABI-checked at load time.
|
|
67
|
+
|
|
68
|
+
See `docs/2D_GPU_DEFAULTS.md` in the engine repository for the full
|
|
69
|
+
backend-selection matrix.
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
openswmm_gpu_omp/__init__.py,sha256=zax1f4hP0HEWdIML5PhxTSqyAMMKE_AUU2_85VY8Bdk,1167
|
|
2
|
+
openswmm_gpu_omp/openswmm_gpu_omp.dll,sha256=1nJjblpdGu1ZI-_WqY2pVYsHmB8MEjf7JojvOZ12XoM,378880
|
|
3
|
+
openswmm_gpu_omp-6.0.0a2.dist-info/METADATA,sha256=GeAIGJuSJvTUmwmjiIwVML983avOhGWAu1rcM3_Wybw,3763
|
|
4
|
+
openswmm_gpu_omp-6.0.0a2.dist-info/WHEEL,sha256=XqFjf9K6tATel0N4Vr8sOP30IiQhLnMFIxjGrKFY5uM,102
|
|
5
|
+
openswmm_gpu_omp-6.0.0a2.dist-info/RECORD,,
|