Skip to content

Commit

Permalink
Fix bug inserted while merging. Bumped version
Browse files Browse the repository at this point in the history
  • Loading branch information
tmrlvi committed Feb 14, 2022
1 parent eedc458 commit d3cd948
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
2 changes: 1 addition & 1 deletion 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
@@ -1,6 +1,6 @@
[package]
name = "kaspa-miner"
version = "0.2.1-GPU-0.2"
version = "0.2.1-GPU-0.4b"
edition = "2021"
license = "MIT/Apache-2.0"
authors = ["Elichai <[email protected]>"]
Expand Down
11 changes: 1 addition & 10 deletions plugins/opencl/src/worker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -390,16 +390,7 @@ fn from_source(context: &Context, device: &Device, options: &str) -> Result<Prog
compile_options += &match device.pcie_id_amd() {
Ok(_) => {
let device_name = device.name().unwrap_or_else(|_| "Unknown".into()).to_lowercase();
format!("-D OPENCL_PLATFORM_AMD -D __{}__", device_name)
},
Err(_) => String::new(),
};

// Hack to recreate the AMD flags
compile_options += &match device.pcie_id_amd() {
Ok(_) => {
let device_name = device.name().unwrap_or_else(|_| "Unknown".into());
format!("-D OPENCL_PLATFORM_AMD -D __{}__", device_name)
format!("-D OPENCL_PLATFORM_AMD -D __{}__ ", device_name)
},
Err(_) => String::new(),
};
Expand Down

0 comments on commit d3cd948

Please sign in to comment.