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
12 changes: 8 additions & 4 deletions Cargo.lock

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

4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ ts-rs = { git = "https://github.com/arilotter/ts-rs.git", rev = "92ce1752227fec9
] }
rayon = "1.10.0"

tikv-jemallocator = { version = "0.6.1", features = [
"unprefixed_malloc_on_supported_platforms",
] }

# dev only
test-log = { version = "0.2.16", features = ["trace"] }
pretty_assertions = "1.4.1"
Expand Down
1 change: 1 addition & 0 deletions architectures/centralized/client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ bytemuck.workspace = true
clap-markdown.workspace = true
hex = "0.4.3"
psyche-python-extension-impl = { workspace = true, optional = true }
tikv-jemallocator.workspace = true

[features]
parallelism = ["psyche-client/parallelism"]
Expand Down
3 changes: 3 additions & 0 deletions architectures/centralized/client/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ use tracing::info;

mod app;

#[global_allocator]
static GLOBAL: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc;

#[derive(Parser, Debug)]
struct Args {
#[command(subcommand)]
Expand Down
1 change: 1 addition & 0 deletions architectures/centralized/server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ bytemuck.workspace = true
toml.workspace = true
clap-markdown.workspace = true
psyche-python-extension-impl = { workspace = true, optional = true }
tikv-jemallocator.workspace = true

[features]
python = ["psyche-python-extension-impl"]
3 changes: 3 additions & 0 deletions architectures/centralized/server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ use std::{
};
use tracing::{error, info};

#[global_allocator]
static GLOBAL: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc;

#[derive(Parser, Debug)]
struct Args {
#[command(subcommand)]
Expand Down
1 change: 1 addition & 0 deletions architectures/decentralized/solana-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ tokio.workspace = true
tokio-util.workspace = true
tracing.workspace = true
psyche-python-extension-impl = { workspace = true, optional = true }
tikv-jemallocator.workspace = true

[features]
parallelism = ["psyche-client/parallelism"]
Expand Down
3 changes: 3 additions & 0 deletions architectures/decentralized/solana-client/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ use tracing::info;
mod app;
mod network_identity;

#[global_allocator]
static GLOBAL: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc;

#[derive(Parser, Debug)]
struct CliArgs {
#[command(subcommand)]
Expand Down
2 changes: 2 additions & 0 deletions architectures/inference-only/inference-node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,5 @@ iroh-blobs.workspace = true
iroh-gossip.workspace = true

serde_json.workspace = true

tikv-jemallocator.workspace = true
3 changes: 3 additions & 0 deletions architectures/inference-only/inference-node/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ use std::sync::Arc;
use tokio_util::sync::CancellationToken;
use tracing::{debug, error, info, warn};

#[global_allocator]
static GLOBAL: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc;

#[derive(Parser, Debug)]
#[command(name = "psyche-inference-node")]
struct Cli {
Expand Down