Skip to main content

A Python package for solving ordinary differential equations on the GPU using OpenCL

Project description

clODE - an OpenCL based tool for solving ordinary differential equations (ODEs)

Python PyPI OpenSSF Scorecard Windows Mac Linux

clODE is a tool for solving ordinary differential equations (ODEs) using OpenCL. It is tailored to numerically solving many instances of a given ODE system in parallel, each with different parameter sets and/or initial conditions.

The ODE solver runs entirely on the OpenCL device, supporting independent solver state per simulation (e.g., adaptive timesteps). clODE can return the full trajectories, though this is somewhat memory intensive. Alternatively, clODE supports computing features of the ODE trajectory (e.g., oscillation period) on the fly without storing the trajectory itself, enabling much larger parameter sweeps to be run with significant speedup over serial computation.

clODE is written in C++ and OpenCL, and can be used directly in C++ programs or via the provided Python interface. The library is compiled using bazel and bazelisk, and it runs on Linux, Windows and MacOS.

Installation

See installation for instructions on how to install CLODE.

Getting Started

See Getting Started for an example of clODE usage.

Source

The source code is available on GitHub.

Project details


Download files

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

Source Distribution

clode-0.5.1.tar.gz (249.1 kB view hashes)

Uploaded Source

Built Distributions

clode-0.5.1-cp312-cp312-win_amd64.whl (446.7 kB view hashes)

Uploaded CPython 3.12 Windows x86-64

clode-0.5.1-cp312-cp312-macosx_10_9_universal2.whl (524.4 kB view hashes)

Uploaded CPython 3.12 macOS 10.9+ universal2 (ARM64, x86-64)

clode-0.5.1-cp311-cp311-win_amd64.whl (446.1 kB view hashes)

Uploaded CPython 3.11 Windows x86-64

clode-0.5.1-cp310-cp310-win_amd64.whl (446.2 kB view hashes)

Uploaded CPython 3.10 Windows x86-64

clode-0.5.1-cp39-cp39-win_amd64.whl (446.1 kB view hashes)

Uploaded CPython 3.9 Windows x86-64

clode-0.5.1-cp38-cp38-win_amd64.whl (446.0 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

Supported by

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