Skip to main content

sweepx

One-line install for the sweep wave-equation engine.

sweepx is a thin umbrella package with no code of its own — installing it pulls in the sweep engine so you can import sweep.

Install

pip install sweepx

This currently pulls in a single package:

Distribution Import name What it does
sweep-solver sweep Wave-equation engine: equations, propagators, operators, FWI/LSRTM

Solver-only release. The companion packages (sweep-io, sweep-nn, sweep-opt, sweep-loss, sweep-viz, sweep-preproc, sweep-tasks, sweep-runner) are not published yet. When they ship, they'll be added to sweepx's dependencies — you keep the same pip install sweepx.

Import

After pip install sweepx, import as sweep, not sweepx:

import sweep
from sweep.propagator.torch import PropTorch     # PyTorch propagator
from sweep import equations, propagator          # native submodules

Same pattern as pip install scikit-learnimport sklearn: the import name sweep was already taken on PyPI, so the installable is named sweepx.

CUDA backend

sweep's GPU backend (impl='c') is JIT-compiled against your own PyTorch on first use — so a single wheel works with any torch version and any Python 3, with no prebuilt CUDA/torch/Python matrix. It needs a CUDA GPU and nvcc >= 12.4 (a system toolkit, module load cuda, or conda install -c nvidia cuda-toolkit):

import sweep
sweep.precompile()   # optional: build the CUDA backend now (~3-5 min, then cached)

Drop precompile() and the compile happens automatically on first use of impl='c', cached thereafter in ~/.cache/torch_extensions. The pure-Python eager / JAX backends need no nvcc.

Check what's available without triggering a compile:

import sweep
print(sweep.is_torch_binding_available())              # torch + CUDA GPU + nvcc present?
print(sweep.backend.torch.binding.diagnostics())       # usable / reason / cuda_home / built

License

MIT — see LICENSE.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sweepx-0.1.0.post1.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sweepx-0.1.0.post1-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file sweepx-0.1.0.post1.tar.gz.

File metadata

  • Download URL: sweepx-0.1.0.post1.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.5

File hashes

Hashes for sweepx-0.1.0.post1.tar.gz
Algorithm Hash digest
SHA256 5a38d118693502bee2de1ad7730fb030a461b666b096190f7e164474d0eb9a3b
MD5 d1f7a961547ca846294b11bb4e2fae8f
BLAKE2b-256 12fea80d77a55bb3fdfbc0d45927e7e6e4fc12cbc3b51af9b07abbfcfff04783

See more details on using hashes here.

File details

Details for the file sweepx-0.1.0.post1-py3-none-any.whl.

File metadata

  • Download URL: sweepx-0.1.0.post1-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.5

File hashes

Hashes for sweepx-0.1.0.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 33b2407ee577ace90f9aed090e802ceb012284f21d054890abefe49cafff3113
MD5 4e88ad8d70a4e8a5b8a93b194204f861
BLAKE2b-256 16178c2a04d50b8e4af60d1a728b45ed2edcbd07672a631959c7bfff795215ea

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page