-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build instructions #27
Comments
To build with Cuda-10.0 toolkit.
|
for me cuda is found but it still throws this error
|
all build related issues already has been fixed(or known)
|
Here is a docker environment that can build many open source miners on ubuntu 16 with cuda 10. https://github.com/cynixx3/docker-ethos-open-source-miner-builder There are many ways to build it but just uncommenting the ethminer lines in Dockerfile and running Or you can extrapolate the packages from the first part of the Dockerfile to suit your needs. |
@Perfect-Web is the error for
Somewhere you are adding and extra 'cuda' to library path. |
Thanks for the pointers everyone. This repository is only intended for initial research and development. With the spec in a settled state there are a handful of nearly-production-ready repositories as hackmod has pointed out. I would suggest most people make use of those. |
There are https://github.com/ethereum-mining/ethminer/blob/master/docs/BUILD.md and https://github.com/AndreaLanfranchi/ethminer/blob/master/docs/BUILD.md in those related repos, but apparently no equivalent in this one. Their instructions are almost usable for this repo, but not quite. Perhaps proper build instructions should be added right in here and maintained in here?
FWIW, here's what worked for me (on Scientific Linux 6.10 with CUDA 10.0 and AMDGPU-PRO 18.50, after
scl enable devtoolset-6 bash
to gain newer gcc and usingcmake3
- I omitted these two tricks from the commands below to make them readily reusable on more common and recent distros):This produced an OpenCL+CUDA build. (Why isn't CUDA enabled by default? It is in default build of current ethminer on this same system.)
Then there was this runtime error:
which I solved by adding builds for all of this machine's GPUs' compute capabilities to
libethash-cuda/CMakeLists.txt
:and re-running just the final
make
command. As I understand, someone on CUDA older than 10.0 would also need to remove or comment out the line withsm_75
on it or the build would fail. Ideally, all of this would be auto-detected and wouldn't require manual edits, but meanwhile it'd be helpful to include this in the proposed build instructions as well.Until such instructions are added, perhaps keep this issue open so that at least what's included in this comment is easy to find by those who need the instructions.
The text was updated successfully, but these errors were encountered: