{"id":18674154,"url":"https://github.com/nervosnetwork/ckb-miner","last_synced_at":"2025-07-18T08:36:49.193Z","repository":{"id":49726284,"uuid":"201179820","full_name":"nervosnetwork/ckb-miner","owner":"nervosnetwork","description":"ckb miner for avx2 cpu, avx512 cpu and GPU","archived":false,"fork":false,"pushed_at":"2021-06-10T10:07:55.000Z","size":260,"stargazers_count":32,"open_issues_count":9,"forks_count":13,"subscribers_count":12,"default_branch":"develop","last_synced_at":"2025-04-12T01:55:41.670Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nervosnetwork.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null}},"created_at":"2019-08-08T04:45:24.000Z","updated_at":"2024-12-01T02:45:55.000Z","dependencies_parsed_at":"2022-09-12T22:00:47.548Z","dependency_job_id":null,"html_url":"https://github.com/nervosnetwork/ckb-miner","commit_stats":null,"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"purl":"pkg:github/nervosnetwork/ckb-miner","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nervosnetwork%2Fckb-miner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nervosnetwork%2Fckb-miner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nervosnetwork%2Fckb-miner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nervosnetwork%2Fckb-miner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nervosnetwork","download_url":"https://codeload.github.com/nervosnetwork/ckb-miner/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nervosnetwork%2Fckb-miner/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265728956,"owners_count":23818733,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T09:17:44.615Z","updated_at":"2025-07-18T08:36:49.164Z","avatar_url":"https://github.com/nervosnetwork.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ckb-miner\n\n| PoW algorithm | Since | \n| ----          | ----    |\n|   Eaglesong   | v0.19.0 |\n\nA miner for CPUs, avx2 CPUs, avx512 CPUs and GPUs.\n\nUsing avx512, the hash rate can be up to 10M per thread on 2.5Ghz CPUs.\n\n## How to build\nBy default, GPU miner is not built, you can build GPU miner with this parameters:\n\n```\n# for cuda\ncargo build --release --features cuda\n\n#for opencl\ncargo build --release --features opencl\n```\n\n### CUDA runtime\n\nBy default, the cuda lib path is C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v10.1\\lib\\x64 for Windows and /usr/local/cuda/lib64 for other platforms, you can change this by set `CUDA_LIB_DIR`.\n\nFor Linux and OSX:\n\n```\nexport CUDA_LIB_DIR=\u003cPATH\u003e # \u003cPATH\u003e is the path where you install CUDA, eg export CUDA_LIB_DIR=/usr/local/cuda/lib64\n\n```\n\nFor windows:\n\n```\nset CUDA_LIB_DIR=\u003cPATH\u003e # \u003cPATH\u003e is the path where you install CUDA, eg set CUDA_LIB_DIR=C:\\\\Program Files\\\\NVIDIA GPU Computing Toolkit\\\\CUDA\\\\v10.1\\\\lib\\\\x64\n```\n\nCuda is essential to build and run miners based on Cuda.\n\n#### Performance\n\n| GPU       | 1060 | 1070 ti | P106 | 2060 |\n| ---       | ---  | ---     | ---- | ---  |\n| Hash Rate | 400M  | 630M     | 420M  |  650M   |\n\n### OpenCL runtime\nWith OpenCL, the miner can run on any GPUs.\n\nBy default, the OpenCL include path is C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v10.1\\include for Windows and /usr/include for other platforms, you can change this by set `OPENCL_INCLUDE_DIR`; the OpenCL lib path is C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v10.1\\lib\\x64 for Windows and default lib path for other platforms, you can change this by set `OPENCL_LIB_DIR`\n\n#### Performance\n\n| GPU       | 1060 | 1070 ti | P106 | 2060 | VEGA64 | RX5700 | RX580 | RX570 |\n| ---       | ---  | ---     | ---- | ---  | ---  | ---    | ---  | --- |\n| Hash Rate | 380M | 620M    | 410M | 610M | 820M | 560M   | 340M |  280M   |\n\n## How to use\n1. Modify `ckb-miner.toml` in this repo and copy it to your working directory. You can specify the CPUs and GPUs you want to use.\n\n2. Copy `ckb-miner` (you can build it yourself or download it) to your working directory.\n\n3. run the miner\n\n```\n./ckb-miner\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnervosnetwork%2Fckb-miner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnervosnetwork%2Fckb-miner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnervosnetwork%2Fckb-miner/lists"}