Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.

Miner updates: Updated OpenCL version, enabled CUDA building, improved SIGSEGV failure rates #12

Merged
merged 1 commit into from
Nov 9, 2023

Conversation

jdowning100
Copy link
Contributor

@jdowning100 jdowning100 commented Nov 6, 2023

Credit to RavenCommunity/kawpowminer#124 for the OpenCL fixes. Slight modifications had to be made but the majority of the updates for OpenCL is from that PR.

To build for CUDA, you must install NVIDIA CUDA toolkit v12 or later. https://developer.nvidia.com/cuda-12-1-1-download-archive
An efficiency improvement might be achieved on RTX 4000-series GPUs when building with CUDA compute version 8.9. To do this, add the following line in libethash-cuda/CMakeLists.txt:
list(APPEND CUDA_NVCC_FLAGS "-gencode arch=compute_89,code=sm_89")

This PR should be thoroughly tested on both NVIDIA (CUDA) and AMD (OpenCL) before we merge it.

Copy link
Collaborator

@Djadih Djadih left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really excited about the hashrate increases for later AMD cards, thank you for bringing this in. Change requests are with regard to the second commit.

libpoolprotocols/PoolManager.h Outdated Show resolved Hide resolved
CMakeLists.txt Outdated Show resolved Hide resolved
ethcoreminer/main.cpp Outdated Show resolved Hide resolved
libethash-cuda/CMakeLists.txt Outdated Show resolved Hide resolved
@jdowning100 jdowning100 merged commit 340ea8c into main Nov 9, 2023
@jdowning100 jdowning100 deleted the miner-updates branch November 9, 2023 18:32
@Djadih Djadih deployed to quai-sandbox November 9, 2023 18:42 — with GitHub Actions Active
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants