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(), };