From d3cd948056f71f455b4813f87ad1fc8d1c693635 Mon Sep 17 00:00:00 2001 From: Tomer Levy Date: Mon, 14 Feb 2022 12:15:12 +0200 Subject: [PATCH] Fix bug inserted while merging. Bumped version --- Cargo.lock | 2 +- Cargo.toml | 2 +- plugins/opencl/src/worker.rs | 11 +---------- 3 files changed, 3 insertions(+), 12 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index e516be0..4c71299 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -568,7 +568,7 @@ checksum = "b71991ff56294aa922b450139ee08b3bfc70982c6b2c7562771375cf73542dd4" [[package]] name = "kaspa-miner" -version = "0.2.1-GPU-0.2" +version = "0.2.1-GPU-0.4b" dependencies = [ "blake2b_simd", "cc", diff --git a/Cargo.toml b/Cargo.toml index d411865..f0173cc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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 "] diff --git a/plugins/opencl/src/worker.rs b/plugins/opencl/src/worker.rs index 503e019..b28b734 100644 --- a/plugins/opencl/src/worker.rs +++ b/plugins/opencl/src/worker.rs @@ -390,16 +390,7 @@ fn from_source(context: &Context, device: &Device, options: &str) -> Result { 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(), };