Skip to content

Refactor system/dist/CUDA tests #2382

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
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
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ mod cache;
mod client;
mod cmdline;
mod commands;
mod compiler;
pub mod compiler;
pub mod config;
pub mod dist;
mod jobserver;
Expand Down
6 changes: 3 additions & 3 deletions src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1540,14 +1540,14 @@ where
}
}

#[derive(Serialize, Deserialize, Debug, Clone, Default)]
#[derive(Serialize, Deserialize, Debug, Clone, Default, PartialEq)]
pub struct PerLanguageCount {
counts: HashMap<String, u64>,
adv_counts: HashMap<String, u64>,
}

impl PerLanguageCount {
fn increment(&mut self, kind: &CompilerKind, lang: &Language) {
pub fn increment(&mut self, kind: &CompilerKind, lang: &Language) {
let lang_comp_key = kind.lang_comp_kind(lang);
let adv_count = self.adv_counts.entry(lang_comp_key).or_insert(0);
*adv_count += 1;
Expand Down Expand Up @@ -1575,7 +1575,7 @@ impl PerLanguageCount {
}

/// Statistics about the server.
#[derive(Serialize, Deserialize, Clone, Debug)]
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq)]
pub struct ServerStats {
/// The count of client compile requests.
pub compile_requests: u64,
Expand Down
Loading
Loading