Skip to content

Commit

Permalink
Merge branch 'main' into logging-instead-of-printing
Browse files Browse the repository at this point in the history
  • Loading branch information
poszu committed May 17, 2023
2 parents ef5b24c + 3d2e446 commit 03bd940
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
6 changes: 3 additions & 3 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ members = [".", "ffi", "scrypt-ocl", "initializer", "profiler"]

[package]
name = "post-rs"
version = "0.1.8"
version = "0.1.11"
edition = "2021"

[lib]
Expand Down
2 changes: 1 addition & 1 deletion ffi/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "post-cbindings"
version = "0.1.8"
version = "0.1.11"
edition = "2021"


Expand Down
5 changes: 2 additions & 3 deletions initializer/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ fn initialize(args: InitializeArgs) -> eyre::Result<()> {
InitializationMethod::Gpu => Box::new(OpenClInitializer::new(
args.provider.map(ProviderId),
args.n,
Some(DeviceType::GPU),
Some(DeviceType::GPU | DeviceType::CPU),
)?),
};

Expand Down Expand Up @@ -211,8 +211,7 @@ fn initialize(args: InitializeArgs) -> eyre::Result<()> {
}

fn list_providers() -> eyre::Result<()> {
let providers = scrypt_ocl::get_providers(Some(DeviceType::GPU))?;
println!("Found {} providers", providers.len());
let providers = scrypt_ocl::get_providers(Some(DeviceType::GPU | DeviceType::CPU))?;
for (id, provider) in providers.iter().enumerate() {
println!("{id}: {provider}");
}
Expand Down
2 changes: 1 addition & 1 deletion scrypt-ocl/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "scrypt-ocl"
version = "0.1.8"
version = "0.1.11"
edition = "2021"

[dependencies]
Expand Down

0 comments on commit 03bd940

Please sign in to comment.