Closed lucafavatella closed 4 years ago
dear Luca,
There are two options:
(A) Download and install step by step as a user would. This is what this PR does. (B) Download and install relying on Travis CI apt addon.
I'd prefer to try to get option (B) working.
I tried option B without success still getting nvcc fatal : Unknown option 'std'.
Perhaps due to my recent Makefile change introducing NVCC ?= nvcc -std=c++11
This means that if you first define NVCC=nvcc it will avoid the -std option. Could you try to get that to work?
regards, -John
I'd prefer to try to get option (B) working.
This means that if you first define NVCC=nvcc it will avoid the -std option.
Could you try to get that to work?
$ if test cuckoo-cuda = "${JOB:?}"; then make -C src/cuckoo NVCC=nvcc ${MINER:?}; fi
make: Entering directory `/home/travis/build/aeternity/cuckoo/src/cuckoo'
nvcc -o cuda29 -DEDGEBITS=29 -arch sm_35 mean.cu ../crypto/blake2b-ref.c
In file included from /usr/include/c++/4.8/chrono:35:0,
from cuckoo.h:8,
from mean.cu:10:
/usr/include/c++/4.8/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
#error This file requires compiler and library support for the \
^
make: *** [cuda29] Error 1
make: Leaving directory `/home/travis/build/aeternity/cuckoo/src/cuckoo'
How can it complain about both
nvcc fatal : Unknown option 'std'
and
must be enabled with the -std=c++11 option
? I'm very confused...
@lucafavatella You could cache the CUDA folders for later builds, see https://docs.travis-ci.com/user/caching/
So if the folder doesn't exist, run through the full installation once. Then if it exists, skip the installation.
I do not plan to update this PR so closing. Things missing:
@tromp I am not sure I get what you suggest. This is the CI configuration, so we know that CUDA toolkit is absent (no CUDA hardware or driver is needed in order to build the miner). So, if we want to have CI test building the CUDA miner, we need to configure CI to automatically download and install CUDA. There are two options:
I tried option B without success still getting
nvcc fatal : Unknown option 'std'
. If I read the CI logs correctly, with apt addon CI installsnvidia-cuda-toolkit_5.5.22-3ubuntu1_amd64.deb
that seems old. Maybe there is better way (other apt repo?) though I am unable to spend further time on this now. Draft patch below.