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
8 changes: 1 addition & 7 deletions Cargo.lock

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

7 changes: 2 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,15 @@ repository = "https://github.com/NthTensor/Forte"

[workspace]
resolver = "2"
members = ["ci", "rayon-compat"]
members = ["ci"]

[dependencies]
arraydeque = "0.5.1"
async-task = "4.7.1"
atomic-wait = "1.1.0"
crossbeam-queue = "0.3.12"
crossbeam-utils = "0.8.21"
fastrand = "2.3.0"
shuttle = { version = "0.8.0", optional = true }
tracing = { version = "0.1.41", features = ["release_max_level_off"] }
tracing-subscriber = "0.3.19"
Expand Down Expand Up @@ -68,10 +69,6 @@ missing_docs = "warn"
unsafe_op_in_unsafe_fn = "warn"
unused_qualifications = "warn"

[[test]]
name = "integration"
path = "tests/tests.rs"

[[bench]]
name = "fork_join"
harness = false
Expand Down
3 changes: 1 addition & 2 deletions benches/bevy_tasks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ mod overhead {
for i in 0..80 {
black_box(i);
}
// std::thread::sleep(Duration::from_nanos(100));
black_box(value);
}

Expand Down Expand Up @@ -97,7 +96,7 @@ mod overhead {

bencher.bench_local(|| {
THREAD_POOL.with_worker(|worker| {
forte_chunks::<100, _, _>(worker, &mut vec, &|c| {
forte_chunks::<8, _, _>(worker, &mut vec, &|c| {
c.iter_mut().for_each(work);
});
})
Expand Down
11 changes: 2 additions & 9 deletions benches/fork_join.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
//! A benchmark for fork-join workloads adapted from `chili`.

use chili::Scope;
use criterion::black_box;
use divan::Bencher;
use forte::Worker;
use tracing::info;
Expand Down Expand Up @@ -78,14 +77,8 @@ static COMPUTE: forte::ThreadPool = forte::ThreadPool::new();
fn forte(bencher: Bencher, nodes: (usize, usize)) {
fn sum(node: &Node, worker: &Worker) -> u64 {
let (left, right) = worker.join(
|w| {
let sum = node.left.as_deref().map(|n| sum(n, w)).unwrap_or_default();
sum
},
|w| {
let sum = node.right.as_deref().map(|n| sum(n, w)).unwrap_or_default();
sum
},
|w| node.left.as_deref().map(|n| sum(n, w)).unwrap_or_default(),
|w| node.right.as_deref().map(|n| sum(n, w)).unwrap_or_default(),
);

node.val + left + right
Expand Down
7 changes: 7 additions & 0 deletions ci/src/ci.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,19 @@ impl CI {
None => {
// Note that we are running the subcommands directly rather than using any aliases
let mut cmds = vec![];
// Lint commands
cmds.append(&mut commands::FormatCommand::default().prepare(sh, flags));
cmds.append(&mut commands::ClippyCommand::default().prepare(sh, flags));
cmds.append(&mut commands::LintsCommand::default().prepare(sh, flags));
// Compile commands
cmds.append(&mut commands::CompileCheckCommand::default().prepare(sh, flags));
// Documentation commands
cmds.append(&mut commands::DocCheckCommand::default().prepare(sh, flags));
cmds.append(&mut commands::DocTestCommand::default().prepare(sh, flags));
// Shuttle commands
cmds.append(&mut commands::ShuttleCheckCommand::default().prepare(sh, flags));
cmds.append(&mut commands::ShuttleClippyCommand::default().prepare(sh, flags));
cmds.append(&mut commands::ShuttleTestCommand::default().prepare(sh, flags));
cmds
}
}
Expand Down
4 changes: 2 additions & 2 deletions ci/src/commands/shuttle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ use crate::commands::ShuttleCheckCommand;
use crate::commands::ShuttleClippyCommand;
use crate::commands::ShuttleTestCommand;

/// Alias for running the `loom-check`, `loom-clippy` and `loom-test` subcommands.
/// Alias for running the `shuttle-check`, `shuttle-clippy` and `shuttle-test` subcommands.
#[derive(FromArgs, Default)]
#[argh(subcommand, name = "loom")]
#[argh(subcommand, name = "shuttle")]
pub struct ShuttleCommand {}

impl Prepare for ShuttleCommand {
Expand Down
2 changes: 1 addition & 1 deletion ci/src/commands/shuttle_clippy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use crate::PreparedCommand;

/// Checks for clippy warnings and errors in the loom test suite.
#[derive(FromArgs, Default)]
#[argh(subcommand, name = "loom-clippy")]
#[argh(subcommand, name = "shuttle-clippy")]
pub struct ShuttleClippyCommand {}

impl Prepare for ShuttleClippyCommand {
Expand Down
2 changes: 1 addition & 1 deletion ci/src/commands/shuttle_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use crate::PreparedCommand;

/// Runs the loom concurrency test suite.
#[derive(FromArgs, Default)]
#[argh(subcommand, name = "loom-test")]
#[argh(subcommand, name = "shuttle-test")]
pub struct ShuttleTestCommand {}

impl Prepare for ShuttleTestCommand {
Expand Down
13 changes: 0 additions & 13 deletions rayon-compat/Cargo.toml

This file was deleted.

14 changes: 0 additions & 14 deletions rayon-compat/README.md

This file was deleted.

186 changes: 0 additions & 186 deletions rayon-compat/src/lib.rs

This file was deleted.

Loading
Loading