Skip to content

Commit d3cd948

Browse files
committed
Fix bug inserted while merging. Bumped version
1 parent eedc458 commit d3cd948

File tree

3 files changed

+3
-12
lines changed

3 files changed

+3
-12
lines changed

Cargo.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "kaspa-miner"
3-
version = "0.2.1-GPU-0.2"
3+
version = "0.2.1-GPU-0.4b"
44
edition = "2021"
55
license = "MIT/Apache-2.0"
66
authors = ["Elichai <[email protected]>"]

plugins/opencl/src/worker.rs

+1-10
Original file line numberDiff line numberDiff line change
@@ -390,16 +390,7 @@ fn from_source(context: &Context, device: &Device, options: &str) -> Result<Prog
390390
compile_options += &match device.pcie_id_amd() {
391391
Ok(_) => {
392392
let device_name = device.name().unwrap_or_else(|_| "Unknown".into()).to_lowercase();
393-
format!("-D OPENCL_PLATFORM_AMD -D __{}__", device_name)
394-
},
395-
Err(_) => String::new(),
396-
};
397-
398-
// Hack to recreate the AMD flags
399-
compile_options += &match device.pcie_id_amd() {
400-
Ok(_) => {
401-
let device_name = device.name().unwrap_or_else(|_| "Unknown".into());
402-
format!("-D OPENCL_PLATFORM_AMD -D __{}__", device_name)
393+
format!("-D OPENCL_PLATFORM_AMD -D __{}__ ", device_name)
403394
},
404395
Err(_) => String::new(),
405396
};

0 commit comments

Comments
 (0)