mirror of
https://github.com/DifferentiableUniverseInitiative/JaxPM.git
synced 2025-06-16 02:41:13 +00:00
Compare commits
No commits in common. "7623e60581f274a6ae71bbc3701bb51c0398d921" and "f391a7921182fe963cef77ab524e6d7a3afe44eb" have entirely different histories.
7623e60581
...
f391a79211
4 changed files with 2 additions and 5 deletions
2
.github/workflows/tests.yml
vendored
2
.github/workflows/tests.yml
vendored
|
@ -35,8 +35,6 @@ jobs:
|
||||||
pip install pytest
|
pip install pytest
|
||||||
pip install diffrax
|
pip install diffrax
|
||||||
pip install .
|
pip install .
|
||||||
echo "numpy version installed:"
|
|
||||||
python -c "import numpy; print(numpy.__version__)"
|
|
||||||
|
|
||||||
- name: Run Single Device Tests
|
- name: Run Single Device Tests
|
||||||
run: |
|
run: |
|
||||||
|
|
|
@ -166,7 +166,7 @@ def uniform_particles(mesh_shape, sharding=None):
|
||||||
axis=-1)
|
axis=-1)
|
||||||
|
|
||||||
|
|
||||||
def normal_field(seed, shape, sharding=None, dtype=float):
|
def normal_field(seed , shape, sharding=None, dtype='float32'):
|
||||||
"""Generate a Gaussian random field with the given power spectrum."""
|
"""Generate a Gaussian random field with the given power spectrum."""
|
||||||
gpu_mesh = sharding.mesh if sharding is not None else None
|
gpu_mesh = sharding.mesh if sharding is not None else None
|
||||||
if gpu_mesh is not None and not (gpu_mesh.empty):
|
if gpu_mesh is not None and not (gpu_mesh.empty):
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
pfft-python @ git+https://github.com/MP-Gadget/pfft-python
|
pfft-python @ git+https://github.com/MP-Gadget/pfft-python
|
||||||
pmesh @ git+https://github.com/MP-Gadget/pmesh
|
pmesh @ git+https://github.com/MP-Gadget/pmesh
|
||||||
fastpm @ git+https://github.com/ASKabalan/fastpm-python
|
fastpm @ git+https://github.com/ASKabalan/fastpm-python
|
||||||
numpy==2.2.6
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue