Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,3 @@ edition = "2024"
[dependencies]
libdrm_amdgpu_sys = "0.8.8"
toml = "0.9.5"
watch = "0.2.3"
70 changes: 61 additions & 9 deletions default-config.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# us
[timing.intervals]
sample = 2000
adjust = 20_000
finetune = 1_000_000_000
sample = 1000
adjust = 200_000
finetune = 1_000_000

# MHz/ms
[timing.ramp-rates]
normal = 1
burst = 200
normal = 50
burst = 100

# number of samples
[timing]
Expand All @@ -19,14 +19,66 @@ adjust = 100
finetune = 10

[load-target]
upper = 0.95
lower = 0.7
upper = 0.70
lower = 0.45


[temperature]
throttling = 85
throttling_recovery = 75

[[safe-points]]
frequency = 350
voltage = 700

[[safe-points]]
frequency = 350 # MHz
voltage = 700 # mV
frequency = 500
voltage = 700

[[safe-points]]
frequency = 1175
voltage = 700

[[safe-points]]
frequency = 1400
voltage = 750

[[safe-points]]
frequency = 1600
voltage = 800

[[safe-points]]
frequency = 1700
voltage = 850

[[safe-points]]
frequency = 1850
voltage = 900

[[safe-points]]
frequency = 2000
voltage = 950

[[safe-points]]
frequency = 2050
voltage = 975

[[safe-points]]
frequency = 2100
voltage = 1000

[[safe-points]]
frequency = 2125
voltage = 1015

[[safe-points]]
frequency = 2150
voltage = 1025

[[safe-points]]
frequency = 2200
voltage = 1045

[[safe-points]]
frequency = 2230
voltage = 1055
79 changes: 79 additions & 0 deletions deps/rust-ta.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
# Generated by rust2rpm 27
%bcond check 1
%global debug_package %{nil}

%global crate ta

Name: rust-ta
Version: 0.5.0
Release: %autorelease
Summary: Technical analysis library

License: MIT
URL: https://crates.io/crates/ta
Source: %{crates_source}
# Manually created patch for downstream crate metadata changes
Patch: ta-fix-metadata.diff

BuildRequires: cargo-rpm-macros >= 24

%global _description %{expand:
Technical analysis library. Implements number of indicators: EMA, SMA,
RSI, MACD, Stochastic, etc.}

%description %{_description}

%package devel
Summary: %{summary}
BuildArch: noarch

%description devel %{_description}

This package contains library source intended for building other packages which
use the "%{crate}" crate.

%files devel
# FIXME: no license files detected
%doc %{crate_instdir}/README.md
%{crate_instdir}/

%package -n %{name}+default-devel
Summary: %{summary}
BuildArch: noarch

%description -n %{name}+default-devel %{_description}

This package contains library source intended for building other packages which
use the "default" feature of the "%{crate}" crate.

%files -n %{name}+default-devel
%ghost %{crate_instdir}/Cargo.toml

%package -n %{name}+serde-devel
Summary: %{summary}
BuildArch: noarch

%description -n %{name}+serde-devel %{_description}

This package contains library source intended for building other packages which
use the "serde" feature of the "%{crate}" crate.

%files -n %{name}+serde-devel
%ghost %{crate_instdir}/Cargo.toml

%prep
%autosetup -n %{crate}-%{version} -p1
%cargo_prep

%generate_buildrequires
%cargo_generate_buildrequires

%build
%cargo_build

%install
%cargo_install


%changelog
%autochangelog
23 changes: 23 additions & 0 deletions deps/ta-fix-metadata.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
--- ta-0.5.0/Cargo.toml 1970-01-01T00:00:00+00:00
+++ ta-0.5.0/Cargo.toml 2025-08-29T12:58:51.807835+00:00
@@ -38,20 +38,3 @@
version = "1.0"
features = ["derive"]
optional = true
-[dev-dependencies.assert_approx_eq]
-version = "1.0.0"
-
-[dev-dependencies.bencher]
-version = "0.1.5"
-
-[dev-dependencies.bincode]
-version = "1.3.1"
-
-[dev-dependencies.csv]
-version = "1.1.0"
-
-[dev-dependencies.rand]
-version = "0.6.5"
-[badges.travis-ci]
-branch = "master"
-repository = "greyblake/ta-rs"
Loading