|
7 | 7 | ###############################################################################
|
8 | 8 | .PHONY: launch # | Run with INFO logs in release mode
|
9 | 9 | launch:
|
10 |
| - RUST_LOG=none,dkn_compute=info,dkn_workflows=info,dkn_p2p=info cargo run --release |
| 10 | + cargo run --release --bin dkn-compute |
11 | 11 |
|
12 | 12 | .PHONY: run # | Run with INFO logs
|
13 | 13 | run:
|
14 |
| - cargo run |
| 14 | + cargo run --bin dkn-compute |
| 15 | + |
| 16 | +.PHONY: monitor # | Run monitor node with INFO logs |
| 17 | +monitor: |
| 18 | + cargo run --bin dkn-monitor |
15 | 19 |
|
16 | 20 | .PHONY: debug # | Run with DEBUG logs with INFO log-level workflows
|
17 | 21 | debug:
|
18 |
| - RUST_LOG=warn,dkn_compute=debug,dkn_workflows=debug,dkn_p2p=debug,ollama_workflows=info cargo run |
| 22 | + RUST_LOG=warn,dkn_compute=debug,dkn_workflows=debug,dkn_p2p=debug,ollama_workflows=info \ |
| 23 | + cargo run --bin dkn-compute |
19 | 24 |
|
20 | 25 | .PHONY: trace # | Run with TRACE logs
|
21 | 26 | trace:
|
22 |
| - RUST_LOG=warn,dkn_compute=trace,libp2p=debug cargo run |
| 27 | + RUST_LOG=warn,dkn_compute=trace,libp2p=debug \ |
| 28 | + cargo run --bin dkn-compute |
23 | 29 |
|
24 | 30 | .PHONY: build # | Build
|
25 | 31 | build:
|
26 | 32 | cargo build --workspace
|
27 | 33 |
|
28 | 34 | .PHONY: profile-cpu # | Profile CPU usage with flamegraph
|
29 | 35 | profile-cpu:
|
30 |
| - DKN_EXIT_TIMEOUT=120 cargo flamegraph --root --profile=profiling |
| 36 | + DKN_EXIT_TIMEOUT=120 cargo flamegraph --root --profile=profiling --bin dkn-compute |
31 | 37 |
|
32 | 38 | .PHONY: profile-mem # | Profile memory usage with instruments
|
33 | 39 | profile-mem:
|
34 |
| - DKN_EXIT_TIMEOUT=120 cargo instruments --profile=profiling -t Allocations |
| 40 | + DKN_EXIT_TIMEOUT=120 cargo instruments --profile=profiling -t Allocations --bin dkn-compute |
35 | 41 |
|
36 | 42 | .PHONY: ollama-versions
|
37 | 43 | ollama-versions:
|
|
0 commit comments