mirror of
https://github.com/manifoldbt/manifoldbt.git
synced 2026-08-25 06:58:05 +00:00
release: v0.8.5
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "manifoldbt"
|
name = "manifoldbt"
|
||||||
version = "0.8.3"
|
version = "0.8.5"
|
||||||
description = "Rust-powered backtesting engine for quantitative research"
|
description = "Rust-powered backtesting engine for quantitative research"
|
||||||
requires-python = ">=3.9"
|
requires-python = ">=3.9"
|
||||||
license = { file = "LICENSE" }
|
license = { file = "LICENSE" }
|
||||||
|
|||||||
@@ -744,6 +744,7 @@ def run_sweep_lite(
|
|||||||
store: DataStore,
|
store: DataStore,
|
||||||
*,
|
*,
|
||||||
max_parallelism: int = 0,
|
max_parallelism: int = 0,
|
||||||
|
device: str = "cpu",
|
||||||
) -> List["BatchResultLite"]:
|
) -> List["BatchResultLite"]:
|
||||||
"""Run a parameter sweep returning only metrics (no Arrow output).
|
"""Run a parameter sweep returning only metrics (no Arrow output).
|
||||||
|
|
||||||
@@ -756,6 +757,14 @@ def run_sweep_lite(
|
|||||||
config: Backtest configuration.
|
config: Backtest configuration.
|
||||||
store: Data store.
|
store: Data store.
|
||||||
max_parallelism: Maximum threads. 0 = all available cores.
|
max_parallelism: Maximum threads. 0 = all available cores.
|
||||||
|
device: ``"cpu"`` (default) or ``"cuda"``/``"gpu"``. The GPU path
|
||||||
|
accelerates single-asset, AtClose + FixedBps sweeps and produces
|
||||||
|
results numerically identical to the CPU path. **Pro-only**: a
|
||||||
|
Community license raises ``PermissionError`` for ``device="cuda"``
|
||||||
|
(Community keeps the full-speed CPU sweep with no restriction).
|
||||||
|
Requires a build with ``--features cuda`` and a CUDA device; for any
|
||||||
|
unsupported strategy/config (or when no GPU is present at runtime) it
|
||||||
|
silently falls back to the CPU sweep, so results are never affected.
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
One :class:`BatchResultLite` per combo (Cartesian product order).
|
One :class:`BatchResultLite` per combo (Cartesian product order).
|
||||||
@@ -774,6 +783,7 @@ def run_sweep_lite(
|
|||||||
cfg.to_json(),
|
cfg.to_json(),
|
||||||
store,
|
store,
|
||||||
max_parallelism,
|
max_parallelism,
|
||||||
|
device,
|
||||||
)
|
)
|
||||||
except (ValueError, RuntimeError) as exc:
|
except (ValueError, RuntimeError) as exc:
|
||||||
raise _classify_error(exc) from exc
|
raise _classify_error(exc) from exc
|
||||||
|
|||||||
Reference in New Issue
Block a user