musica 0.11.1__cp38-cp38-win32.whl → 0.11.1.0__cp38-cp38-win32.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.
Potentially problematic release.
This version of musica might be problematic. Click here for more details.
- _musica.cp38-win32.pyd +0 -0
- lib/musica.lib +0 -0
- lib/yaml-cpp.lib +0 -0
- musica/CMakeLists.txt +8 -2
- musica/_version.py +1 -1
- musica/musica.cpp +11 -8
- musica/test/test_analytical.py +1 -1
- musica/tools/prepare_build_environment_linux.sh +23 -3
- musica/tools/repair_wheel_gpu.sh +25 -0
- {musica-0.11.1.dist-info → musica-0.11.1.0.dist-info}/METADATA +4 -1
- {musica-0.11.1.dist-info → musica-0.11.1.0.dist-info}/RECORD +13 -12
- {musica-0.11.1.dist-info → musica-0.11.1.0.dist-info}/WHEEL +1 -1
- {musica-0.11.1.dist-info → musica-0.11.1.0.dist-info}/licenses/LICENSE +0 -0
_musica.cp38-win32.pyd
CHANGED
|
Binary file
|
lib/musica.lib
CHANGED
|
Binary file
|
lib/yaml-cpp.lib
CHANGED
|
Binary file
|
musica/CMakeLists.txt
CHANGED
|
@@ -19,9 +19,15 @@ if (APPLE)
|
|
|
19
19
|
BUILD_WITH_INSTALL_RPATH TRUE
|
|
20
20
|
)
|
|
21
21
|
elseif(UNIX)
|
|
22
|
-
|
|
22
|
+
set(CUDA_RPATH
|
|
23
|
+
"$ORIGIN/../../nvidia/cublas/lib"
|
|
24
|
+
"$ORIGIN/../../nvidia/cuda_runtime/lib"
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
message(STATUS "Adding RPATH for python site packages libs at ${CUDA_RPATH}")
|
|
28
|
+
|
|
23
29
|
set_target_properties(_musica PROPERTIES
|
|
24
|
-
INSTALL_RPATH "$ORIGIN"
|
|
30
|
+
INSTALL_RPATH "$ORIGIN;${CUDA_RPATH}"
|
|
25
31
|
BUILD_WITH_INSTALL_RPATH TRUE
|
|
26
32
|
)
|
|
27
33
|
endif()
|
musica/_version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
version = "0.11.1"
|
|
1
|
+
version = "0.11.1.0"
|
musica/musica.cpp
CHANGED
|
@@ -77,14 +77,17 @@ void bind_musica(py::module_ &core)
|
|
|
77
77
|
core.def("_vector_size",
|
|
78
78
|
[](const musica::MICMSolver solver_type)
|
|
79
79
|
{
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
80
|
+
switch (solver_type)
|
|
81
|
+
{
|
|
82
|
+
case musica::MICMSolver::Rosenbrock:
|
|
83
|
+
case musica::MICMSolver::BackwardEuler:
|
|
84
|
+
case musica::MICMSolver::CudaRosenbrock:
|
|
85
|
+
return musica::MUSICA_VECTOR_SIZE;
|
|
86
|
+
case musica::MICMSolver::RosenbrockStandardOrder:
|
|
87
|
+
case musica::MICMSolver::BackwardEulerStandardOrder:
|
|
88
|
+
return static_cast<std::size_t>(0);
|
|
89
|
+
default:
|
|
90
|
+
throw py::value_error("Invalid MICM solver type.");
|
|
88
91
|
}
|
|
89
92
|
},
|
|
90
93
|
"Returns the vector dimension for vector-ordered solvers, 0 otherwise.");
|
musica/test/test_analytical.py
CHANGED
|
@@ -261,7 +261,7 @@ def test_cuda_rosenbrock():
|
|
|
261
261
|
if _is_cuda_available():
|
|
262
262
|
solver = musica.MICM(
|
|
263
263
|
config_path="configs/analytical",
|
|
264
|
-
solver_type=musica.
|
|
264
|
+
solver_type=musica.SolverType.cuda_rosenbrock)
|
|
265
265
|
state = solver.create_state()
|
|
266
266
|
TestSingleGridCell(solver, state, 200.0, 5)
|
|
267
267
|
else:
|
|
@@ -3,9 +3,29 @@
|
|
|
3
3
|
set -e
|
|
4
4
|
set -x
|
|
5
5
|
|
|
6
|
-
#
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
# Update the mirror list to use vault.centos.org
|
|
7
|
+
sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo
|
|
8
|
+
sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo
|
|
9
|
+
sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo
|
|
10
|
+
|
|
11
|
+
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
|
|
12
|
+
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
|
|
13
|
+
|
|
14
|
+
yum install -y zip tree
|
|
15
|
+
|
|
16
|
+
# Use CIBW_ARCHS or CIBW_ARCH if set, else fallback to uname -m
|
|
17
|
+
if [ -n "$CIBW_ARCHS" ]; then
|
|
18
|
+
target_arch="$CIBW_ARCHS"
|
|
19
|
+
elif [ -n "$CIBW_ARCH" ]; then
|
|
20
|
+
target_arch="$CIBW_ARCH"
|
|
21
|
+
else
|
|
22
|
+
target_arch="$(uname -m)"
|
|
23
|
+
fi
|
|
24
|
+
|
|
25
|
+
echo "Detected target_arch: $target_arch"
|
|
26
|
+
|
|
27
|
+
if [ "$target_arch" = "x86_64" ]; then
|
|
28
|
+
# Install CUDA 12.2 for x86_64:
|
|
9
29
|
yum-config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/rhel8/x86_64/cuda-rhel8.repo
|
|
10
30
|
# error mirrorlist.centos.org doesn't exists anymore.
|
|
11
31
|
sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
set -e
|
|
3
|
+
|
|
4
|
+
auditwheel repair --exclude libcublas --exclude libcublasLt --exclude libcudart -w "$2" "$1"
|
|
5
|
+
|
|
6
|
+
for whl in "$2"/*.whl; do
|
|
7
|
+
tmpdir=$(mktemp -d)
|
|
8
|
+
unzip -q "$whl" -d "$tmpdir"
|
|
9
|
+
tree "$tmpdir"
|
|
10
|
+
echo "Before patchelf:"
|
|
11
|
+
readelf -d "$tmpdir"/_musica*.so
|
|
12
|
+
patchelf --remove-rpath "$tmpdir"/_musica*.so
|
|
13
|
+
patchelf --set-rpath "\$ORIGIN:\$ORIGIN/../../nvidia/cublas/lib:\$ORIGIN/../../nvidia/cuda_runtime/lib" --force-rpath "$tmpdir"/_musica*.so
|
|
14
|
+
# Remove bundled CUDA libraries
|
|
15
|
+
rm -f "$tmpdir"/musica.libs/libcudart-*.so*
|
|
16
|
+
rm -f "$tmpdir"/musica.libs/libcublas-*.so*
|
|
17
|
+
rm -f "$tmpdir"/musica.libs/libcublasLt-*.so*
|
|
18
|
+
echo "After patchelf:"
|
|
19
|
+
readelf -d "$tmpdir"/_musica*.so
|
|
20
|
+
# Repack the wheel with correct structure
|
|
21
|
+
(cd "$tmpdir" && zip -qr "${whl%.whl}.patched.whl" .)
|
|
22
|
+
rm -rf "$tmpdir"
|
|
23
|
+
# Replace the original wheel with the patched one
|
|
24
|
+
mv "${whl%.whl}.patched.whl" "$whl"
|
|
25
|
+
done
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: musica
|
|
3
|
-
Version: 0.11.1
|
|
3
|
+
Version: 0.11.1.0
|
|
4
4
|
Summary: MUSICA is a Python library for performing computational simulations in atmospheric chemistry.
|
|
5
5
|
Author-Email: Matthew Dawsom <mattdawson@ucar.edu>, Jiwon Gim <jiwongim@ucar.edu>, David Fillmore <fillmore@ucar.edu>, Kyle Shores <kshores@ucar.edu>, Montek Thind <mthind@ucar.edu>
|
|
6
6
|
Maintainer-Email: ACOM MUSICA Developers <musica-support@ucar.edu>
|
|
@@ -210,6 +210,9 @@ Project-URL: homepage, https://wiki.ucar.edu/display/MUSICA/MUSICA+Home
|
|
|
210
210
|
Provides-Extra: test
|
|
211
211
|
Requires-Dist: numpy; extra == "test"
|
|
212
212
|
Requires-Dist: pytest; extra == "test"
|
|
213
|
+
Provides-Extra: gpu
|
|
214
|
+
Requires-Dist: nvidia-cublas-cu12; extra == "gpu"
|
|
215
|
+
Requires-Dist: nvidia-cuda-runtime-cu12; extra == "gpu"
|
|
213
216
|
Description-Content-Type: text/markdown
|
|
214
217
|
|
|
215
218
|
# MUSICA
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
_musica.cp38-win32.pyd,sha256=
|
|
2
|
-
lib/musica.lib,sha256=
|
|
3
|
-
lib/yaml-cpp.lib,sha256=
|
|
1
|
+
_musica.cp38-win32.pyd,sha256=znyg7nqDBKafcaq9YHscZSDhoKxEQfLSyknoGlYLWTI,1250304
|
|
2
|
+
lib/musica.lib,sha256=_VeURRPQIOy9nhIzEvbcb-qsrVNFR6FerFj1u7tREPE,3434460
|
|
3
|
+
lib/yaml-cpp.lib,sha256=MLaHgebxUBu9PbsGtUaNiLkDkAleoN1lUk2_sVtxbS4,1799180
|
|
4
4
|
musica/__init__.py,sha256=ZtW55jXUkE_2GFco1Q1GyGrpyNoVej6gfbpEWHzfpM0,85
|
|
5
|
-
musica/_version.py,sha256=
|
|
5
|
+
musica/_version.py,sha256=t68TSEz4ZMVbCN2VtLHNxi0spGZHUzpbBHqDbLCF2Zw,22
|
|
6
6
|
musica/binding.cpp,sha256=rpc7Fn_GmR2Femli_gEvtgtiprRnForekUlMDoBo7PQ,674
|
|
7
|
-
musica/CMakeLists.txt,sha256=
|
|
7
|
+
musica/CMakeLists.txt,sha256=j5m-7lf8E1YwpiEeUml5GL27hS4sfpgn2h2LzoQDiO8,1174
|
|
8
8
|
musica/mechanism_configuration.cpp,sha256=JXGAO3j1EEKYdswjrtX8J3KcI_YlfS9WGRmlMxctaDw,27619
|
|
9
9
|
musica/mechanism_configuration.py,sha256=_0kS0fvGS-CbQ_YfJOeSM416u7WLPwq7GzDcPgGGBWA,59302
|
|
10
|
-
musica/musica.cpp,sha256=
|
|
10
|
+
musica/musica.cpp,sha256=z4nucF98Nd-V6U_OLp_5RsW4WGE8qMn3GWLvCuY_nJE,8612
|
|
11
11
|
musica/test/examples/v0/config.json,sha256=JDQdrDNRmRXGYlytX1uiSDV1lkYIAneLwlodHKFw-os,85
|
|
12
12
|
musica/test/examples/v0/config.yaml,sha256=r31QbiFE2YDudGxLGpTKnpyveTnlfXeLgJ2qSrQddDY,47
|
|
13
13
|
musica/test/examples/v0/reactions.json,sha256=SmRUE5XOAv0h3HOWg4Fb1swBiZvZ-1hsIrmMCJqEVIk,4380
|
|
@@ -16,14 +16,15 @@ musica/test/examples/v0/species.json,sha256=klFuYb2vAtWdHfHJVYuIuPe_6LHRTuB0Aw29
|
|
|
16
16
|
musica/test/examples/v0/species.yaml,sha256=ECT9DDa2GMwhSRaRLxjOiCATTKkTRTPwugRsUjHSytY,302
|
|
17
17
|
musica/test/examples/v1/full_configuration.json,sha256=1-kr2bZJvfuENfy6FMfc5ZEOtgs_NhzHYeGrEGLqLMw,9240
|
|
18
18
|
musica/test/examples/v1/full_configuration.yaml,sha256=9NSd8BUJnJ6CPjX9ZngqbFDEqUf1qG5ixbnQDO2m79k,5505
|
|
19
|
-
musica/test/test_analytical.py,sha256=
|
|
19
|
+
musica/test/test_analytical.py,sha256=lY5XuEMEg7IEfTvEIeSRhShMNdX39q00H8RjqGnZB30,14098
|
|
20
20
|
musica/test/test_chapman.py,sha256=_OHLNBWT5qcU8s3mQAisV16qOdyRq7gdaU4nFZtxTnY,3193
|
|
21
21
|
musica/test/test_parser.py,sha256=s8b55MntiDmUeW3GP_-JHucEhxi5RMSzPWQULM73rpg,24985
|
|
22
22
|
musica/test/tuvx.py,sha256=L8X7rJ09HiRlrhLK6fjircI8tGHnFCZJzVow8He5YOE,126
|
|
23
|
-
musica/tools/prepare_build_environment_linux.sh,sha256=
|
|
23
|
+
musica/tools/prepare_build_environment_linux.sh,sha256=Xrd95nPnznqTAc24TVeehXP-7uMkJE1FysKKZsPYgPs,1507
|
|
24
24
|
musica/tools/prepare_build_environment_windows.sh,sha256=sBBWhJQaS2zWDVFLIDMNBMOMPw8auXwnwz7nhuB5Q_k,847
|
|
25
|
+
musica/tools/repair_wheel_gpu.sh,sha256=bXFSgNjCE4D8NvLGfNkIDyt2Qsx6AlT1VfHEBlrRTz4,942
|
|
25
26
|
musica/types.py,sha256=GA04nbo-m7Jg_TQMvFMdMC35kzSDynUHvt7alBnM8FI,15257
|
|
26
|
-
musica-0.11.1.dist-info/METADATA,sha256=
|
|
27
|
-
musica-0.11.1.dist-info/WHEEL,sha256=
|
|
28
|
-
musica-0.11.1.dist-info/licenses/LICENSE,sha256=HrhfyXIkWY2tGFK11kg7vPCqhgh5DcxleloqdhrpyMY,11558
|
|
29
|
-
musica-0.11.1.dist-info/RECORD,,
|
|
27
|
+
musica-0.11.1.0.dist-info/METADATA,sha256=TBJI5PEajWEcPSut2_1k4J6NL2tA9EH-iPLwgCRecHo,20814
|
|
28
|
+
musica-0.11.1.0.dist-info/WHEEL,sha256=_Pmsvpc3WxLRgLrYO-RD-hymFIujk1gezLs1oSSsKpk,100
|
|
29
|
+
musica-0.11.1.0.dist-info/licenses/LICENSE,sha256=HrhfyXIkWY2tGFK11kg7vPCqhgh5DcxleloqdhrpyMY,11558
|
|
30
|
+
musica-0.11.1.0.dist-info/RECORD,,
|
|
File without changes
|