-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
162 lines (139 loc) · 5.89 KB
/
justfile
File metadata and controls
162 lines (139 loc) · 5.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
check:
cargo check
cargo build
cargo test
# ===== BENCHMARKING =====
# Run all benchmarks
bench: # NOT FOR USE, RUNS THE GPU_COMPARISON
cargo bench --bench tensor_ops --
cargo bench --bench neural_networks --
cargo bench --bench gpu_comparison --
cargo bench --bench conv_algorithms --
# Run convolution algorithm comparison benchmarks
bench-conv:
cargo bench --bench conv_algorithms --
# Run specific benchmark
bench-name name:
cargo bench --bench {{name}} --
# Benchmark CPU only (no features)
bench-cpu:
cargo bench --bench tensor_ops --no-default-features --
cargo bench --bench neural_networks --no-default-features --
cargo bench --bench gpu_comparison --no-default-features --
cargo bench --bench conv_algorithms --no-default-features --
# Benchmark with Accelerate (macOS BLAS)
bench-accel:
cargo bench --features accelerate --no-default-features --bench tensor_ops --
cargo bench --features accelerate --no-default-features --bench neural_networks --
cargo bench --features accelerate --no-default-features --bench gpu_comparison --
cargo bench --features accelerate --no-default-features --bench conv_algorithms --
# Benchmark GPU comparison
bench-gpu:
cargo bench --features gpu --bench gpu_comparison --
# Save benchmark results for comparison
bench-save:
cargo bench --bench tensor_ops -- --save-baseline main
cargo bench --bench neural_networks -- --save-baseline main
cargo bench --bench gpu_comparison -- --save-baseline main
cargo bench --bench conv_algorithms -- --save-baseline main
# Compare against saved baseline (DO NOT USE, RUNNING)
bench-compare:
cargo bench --bench tensor_ops -- --baseline main
cargo bench --bench neural_networks -- --baseline main
cargo bench --bench gpu_comparison -- --baseline main
cargo bench --bench conv_algorithms -- --baseline main
bench-report:
open './target/criterion/report/index.html'
# ===== LLM ASSISTED DEV =====
ask-gpu model:
@echo "Cleaning!"
-rm err.txt tests.txt
-rm responses/context.md
@echo "Asking!"
-cargo build &> err.txt
-cargo test &> tests.txt
files-to-prompt Cargo.toml src/ tests/ err.txt tests.txt responses/claude-on-gpu-integration.md responses/status-report.md README.md > responses/context.md
cat responses/context.md | llm --model "openrouter/{{model}}" --system "`cat sys-prompts/gpu-sys-prompt.md`" -o reasoning_effort high > responses/gpu-recommendations.md
nvim responses/gpu-recommendations.md
ask-codex:
@echo "Cleaning!"
-rm err.txt tests.txt
-rm responses/context.md
@echo "Asking!"
-cargo build &> err.txt
-cargo test &> tests.txt
files-to-prompt Cargo.toml src/ tests/ err.txt tests.txt responses/status-report.md README.md > responses/context.md
cat responses/context.md | llm --model "openrouter/openai/gpt-5.1-codex" --system "`cat sys-prompts/sys-prompt.md`" -o reasoning_effort high > responses/recommendations.md
@echo "Finished!"
ask-codex-mini:
@echo "Cleaning!"
-rm err.txt tests.txt
-rm responses/context.md
@echo "Asking!"
-cargo build &> err.txt
-cargo test &> tests.txt
files-to-prompt Cargo.toml src/ tests/ err.txt tests.txt responses/status-report.md README.md > responses/context.md
cat responses/context.md | llm --model "openrouter/openai/gpt-5.1-codex-mini" --system "`cat sys-prompts/sys-prompt.md`" -o reasoning_effort high > responses/recommendations.md
@echo "Finished!"
ask-readme model:
@echo "Cleaning!"
-rm err.txt tests.txt
-rm responses/context.md
@echo "Asking!"
-cargo build &> err.txt
-cargo test &> tests.txt
files-to-prompt Cargo.toml src/ tests/ err.txt tests.txt responses/status-report.md README.md > responses/context.md
cat responses/context.md | llm --model "openrouter/{{model}}" --system "`cat sys-prompts/readme-sys-prompt.md`" > responses/updates-to-readme.md
@echo "Finished!"
ask-custom model prompt filename:
@echo "Cleaning!"
-rm err.txt tests.txt
-rm responses/context.md
@echo "Asking!"
-cargo build &> err.txt
-cargo test &> tests.txt
files-to-prompt Cargo.toml src/ tests/ err.txt tests.txt responses/status-report.md README.md > responses/context.md
cat responses/context.md | llm --model "openrouter/{{model}}" --system "{{prompt}}" > responses/{{filename}}.md
@echo "Finished!"
ask-err-file model file:
@echo "Cleaning!"
-rm err.txt tests.txt
-rm responses/context.md
-rm err-recommendations.md
@echo "Asking!"
-cargo build &> err.txt
-cargo test &> tests.txt
files-to-prompt Cargo.toml src/{{file}} tests/ err.txt tests.txt responses/status-report.md README.md > responses/context.md
cat responses/context.md | llm --model "openrouter/{{model}}" --system "`cat sys-prompts/err-sys-prompt.md`" > responses/err-recommendations.md
@echo "Finished!"
ask-err model:
@echo "Cleaning!"
-rm err.txt tests.txt
-rm responses/context.md
-rm responses/err-recommendations.md
@echo "Asking!"
-cargo build &> err.txt
-cargo test &> tests.txt
files-to-prompt Cargo.toml src/ tests/ err.txt tests.txt responses/status-report.md README.md > responses/context.md
cat responses/context.md | llm --model "openrouter/{{model}}" --system "`cat sys-prompts/err-sys-prompt.md`" > responses/err-recommendations.md
@echo "Finished!"
ask-status model:
@echo "Cleaning!"
-rm err.txt tests.txt
-rm responses/context.md
@echo "Asking!"
-cargo build &> err.txt
-cargo test &> tests.txt
files-to-prompt Cargo.toml src/ tests/ err.txt tests.txt responses/status-report.md README.md > responses/context.md
cat responses/context.md | llm --model "openrouter/{{model}}" --system "`cat sys-prompts/status-sys-prompt.md`" > responses/status-report.md
@echo "Finished!"
ask model:
@echo "Cleaning!"
-rm err.txt tests.txt
-rm responses/context.md
@echo "Asking!"
-cargo build &> err.txt
-cargo test &> tests.txt
files-to-prompt Cargo.toml src/ tests/ err.txt tests.txt responses/status-report.md README.md > responses/context.md
cat responses/context.md | llm --model "openrouter/{{model}}" --system "`cat sys-prompts/sys-prompt.md`" > responses/recommendations.md
@echo "Finished!"