Created
April 27, 2020 22:10
-
-
Save davipatti/eb58490d7345f1620bc7d2e94208c846 to your computer and use it in GitHub Desktop.
lc0 build fail - not loading cublas_v2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
david@puck~/D/lc0> ./build.sh | |
~/Downloads/lc0 ~/Downloads/lc0 | |
[0/1] Regenerating build files. | |
The Meson build system | |
Version: 0.51.2 | |
Source dir: /home/david/Downloads/lc0 | |
Build dir: /home/david/Downloads/lc0/build/release | |
Build type: native build | |
Project name: lc0 | |
Project version: undefined | |
C++ compiler for the host machine: g++ (gcc 9.2.1 "g++ (Ubuntu 9.2.1-9ubuntu2) 9.2.1 20191008") | |
Build machine cpu family: x86_64 | |
Build machine cpu: x86_64 | |
Compiler for C++ supports arguments -march=native: YES (cached) | |
Program scripts/compile_proto.py found: YES (/home/david/Downloads/lc0/scripts/compile_proto.py) | |
Program git found: YES (/usr/bin/git) | |
meson.build:91: WARNING: Cannot extract valid git short revision from dirty working directory. | |
Message: Using build identifier "git.dirty". | |
Dependency threads found: YES (cached) | |
Library dl found: YES | |
Library libtensorflow_cc found: NO | |
Found pkg-config: /usr/bin/pkg-config (0.29.1) | |
Found CMake: /usr/bin/cmake (3.13.4) | |
Run-time dependency accelerate found: NO (tried pkgconfig and cmake) | |
Library mkl_rt found: NO | |
Library mklml found: NO | |
Library dnnl found: NO | |
Library openblas.dll found: NO | |
Library openblas found: YES | |
Has header "openblas_config.h" : YES (cached) | |
Program ispc found: NO | |
Library OpenCL found: YES | |
Dependency OpenCL found: YES (cached) | |
Library cublas found: YES | |
Library cudnn found: YES | |
Library cudart found: YES | |
Program nvcc found: YES (/usr/local/cuda/bin/nvcc) | |
Dependency zlib found: YES (cached) | |
Dependency gtest found: YES (cached) | |
Build targets in project: 8 | |
Found ninja-1.9.0 at /usr/bin/ninja | |
[46/131] Generating 'lc0@exe/common_kernels.o'. | |
FAILED: lc0@exe/common_kernels.o | |
/usr/local/cuda/bin/nvcc -c ../../src/neural/cuda/common_kernels.cu -o lc0@exe/common_kernels.o -I /home/david/Downloads/lc0/src --std=c++14 -Xcompiler -fPIC -I /opt/cuda/include/ -I /usr/local/cuda/include/ -I /usr/lib/cuda/include/ | |
gcc: error trying to exec 'cc1plus': execvp: No such file or directory | |
[49/131] Compiling C++ object 'lc0@exe/src_neural_cuda_layers.cc.o'. | |
FAILED: lc0@exe/src_neural_cuda_layers.cc.o | |
g++ -Ilc0@exe -I. -I../.. -I../../src -I/usr/local/cuda/include/ -I/usr/lib/cuda/include/ -I../../src/neural/cuda/ -fdiagnostics-color=always -DNDEBUG -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -Wextra -Wpedantic -std=c++17 -O3 -march=native '-DBUILD_IDENTIFIER="git.dirty"' -DUSE_OPENBLAS -DNO_PEXT -pthread -isystem ../../third_party -MD -MQ 'lc0@exe/src_neural_cuda_layers.cc.o' -MF 'lc0@exe/src_neural_cuda_layers.cc.o.d' -o 'lc0@exe/src_neural_cuda_layers.cc.o' -c ../../src/neural/cuda/layers.cc | |
In file included from ../../src/neural/cuda/layers.cc:27: | |
../../src/neural/cuda/layers.h:54:42: error: ‘cublasHandle_t’ has not been declared | |
54 | cudnnHandle_t cudnn, cublasHandle_t cublas) = 0; | |
| ^~~~~~~~~~~~~~ | |
../../src/neural/cuda/layers.h:87:34: error: ‘cublasHandle_t’ has not been declared | |
87 | cudnnHandle_t cudnn, cublasHandle_t cublas) override; | |
| ^~~~~~~~~~~~~~ | |
../../src/neural/cuda/layers.h:122:34: error: ‘cublasHandle_t’ has not been declared | |
122 | cudnnHandle_t cudnn, cublasHandle_t cublas) override; | |
| ^~~~~~~~~~~~~~ | |
../../src/neural/cuda/layers.h:140:34: error: ‘cublasHandle_t’ has not been declared | |
140 | cudnnHandle_t cudnn, cublasHandle_t cublas) override; | |
| ^~~~~~~~~~~~~~ | |
../../src/neural/cuda/layers.h:162:34: error: ‘cublasHandle_t’ has not been declared | |
162 | cudnnHandle_t cudnn, cublasHandle_t cublas) override; | |
| ^~~~~~~~~~~~~~ | |
../../src/neural/cuda/layers.h:189:34: error: ‘cublasHandle_t’ has not been declared | |
189 | cudnnHandle_t cudnn, cublasHandle_t cublas) override; | |
| ^~~~~~~~~~~~~~ | |
../../src/neural/cuda/layers.cc:61:6: error: no declaration matches ‘void lczero::cudnn_backend::SoftMaxLayer<DataType>::Eval(int, DataType*, const DataType*, const DataType*, void*, size_t, cudnnHandle_t, cublasHandle_t)’ | |
61 | void SoftMaxLayer<DataType>::Eval(int N, DataType* output, | |
| ^~~~~~~~~~~~~~~~~~~~~~ | |
In file included from ../../src/neural/cuda/layers.cc:27: | |
../../src/neural/cuda/layers.h:120:8: note: candidate is: ‘void lczero::cudnn_backend::SoftMaxLayer<DataType>::Eval(int, DataType*, const DataType*, const DataType*, void*, size_t, cudnnHandle_t, int)’ | |
120 | void Eval(int N, DataType* output, const DataType* input, | |
| ^~~~ | |
../../src/neural/cuda/layers.h:111:7: note: ‘class lczero::cudnn_backend::SoftMaxLayer<DataType>’ defined here | |
111 | class SoftMaxLayer : public BaseLayer<DataType> { | |
| ^~~~~~~~~~~~ | |
../../src/neural/cuda/layers.cc:212:6: error: no declaration matches ‘void lczero::cudnn_backend::ConvLayer<DataType>::Eval(int, DataType*, const DataType*, const DataType*, void*, size_t, cudnnHandle_t, cublasHandle_t)’ | |
212 | void ConvLayer<DataType>::Eval(int N, DataType* output, const DataType* input, | |
| ^~~~~~~~~~~~~~~~~~~ | |
In file included from ../../src/neural/cuda/layers.cc:27: | |
../../src/neural/cuda/layers.h:85:8: note: candidate is: ‘void lczero::cudnn_backend::ConvLayer<DataType>::Eval(int, DataType*, const DataType*, const DataType*, void*, size_t, cudnnHandle_t, int)’ | |
85 | void Eval(int N, DataType* output, const DataType* input, | |
| ^~~~ | |
../../src/neural/cuda/layers.h:67:7: note: ‘class lczero::cudnn_backend::ConvLayer<DataType>’ defined here | |
67 | class ConvLayer : public BaseLayer<DataType> { | |
| ^~~~~~~~~ | |
../../src/neural/cuda/layers.cc:415:6: error: template-id ‘Eval<>’ for ‘void lczero::cudnn_backend::SELayer<float>::Eval(int, float*, const float*, const float*, void*, size_t, cudnnHandle_t, cublasHandle_t)’ does not match any template declaration | |
415 | void SELayer<float>::Eval(int N, float* output, const float* input, | |
| ^~~~~~~~~~~~~~ | |
../../src/neural/cuda/layers.cc:418:48: note: saw 1 ‘template<>’, need 2 for specializing a member function template | |
418 | cublasHandle_t cublas) { | |
| ^ | |
../../src/neural/cuda/layers.cc:447:6: error: template-id ‘Eval<>’ for ‘void lczero::cudnn_backend::SELayer<__half>::Eval(int, half*, const half*, const half*, void*, size_t, cudnnHandle_t, cublasHandle_t)’ does not match any template declaration | |
447 | void SELayer<half>::Eval(int N, half* output, const half* input, | |
| ^~~~~~~~~~~~~ | |
../../src/neural/cuda/layers.cc:449:72: note: saw 1 ‘template<>’, need 2 for specializing a member function template | |
449 | cudnnHandle_t /*cudnn*/, cublasHandle_t cublas) { | |
| ^ | |
../../src/neural/cuda/layers.cc:554:6: error: template-id ‘Eval<>’ for ‘void lczero::cudnn_backend::FCLayer<__half>::Eval(int, half*, const half*, const half*, void*, size_t, cudnnHandle_t, cublasHandle_t)’ does not match any template declaration | |
554 | void FCLayer<half>::Eval(int N, half* output_tensor, const half* input_tensor, | |
| ^~~~~~~~~~~~~ | |
../../src/neural/cuda/layers.cc:557:47: note: saw 1 ‘template<>’, need 2 for specializing a member function template | |
557 | cublasHandle_t cublas) { | |
| ^ | |
../../src/neural/cuda/layers.cc:579:6: error: template-id ‘Eval<>’ for ‘void lczero::cudnn_backend::FCLayer<float>::Eval(int, float*, const float*, const float*, void*, size_t, cudnnHandle_t, cublasHandle_t)’ does not match any template declaration | |
579 | void FCLayer<float>::Eval(int N, float* output_tensor, | |
| ^~~~~~~~~~~~~~ | |
../../src/neural/cuda/layers.cc:582:73: note: saw 1 ‘template<>’, need 2 for specializing a member function template | |
582 | cudnnHandle_t /*cudnn*/, cublasHandle_t cublas) { | |
| ^ | |
../../src/neural/cuda/layers.cc:689:6: error: no declaration matches ‘void lczero::cudnn_backend::PolicyMapLayer<DataType>::Eval(int, DataType*, const DataType*, const DataType*, void*, size_t, cudnnHandle_t, cublasHandle_t)’ | |
689 | void PolicyMapLayer<DataType>::Eval(int N, DataType* output_tensor, | |
| ^~~~~~~~~~~~~~~~~~~~~~~~ | |
In file included from ../../src/neural/cuda/layers.cc:27: | |
../../src/neural/cuda/layers.h:160:8: note: candidate is: ‘void lczero::cudnn_backend::PolicyMapLayer<DataType>::Eval(int, DataType*, const DataType*, const DataType*, void*, size_t, cudnnHandle_t, int)’ | |
160 | void Eval(int N, DataType* output, const DataType* input, | |
| ^~~~ | |
../../src/neural/cuda/layers.h:152:7: note: ‘class lczero::cudnn_backend::PolicyMapLayer<DataType>’ defined here | |
152 | class PolicyMapLayer: public BaseLayer<DataType> { | |
| ^~~~~~~~~~~~~~ | |
[59/131] Compiling C++ object 'lc0@exe/src_neural_opencl_OpenCLTuner.cc.o'. | |
ninja: build stopped: subcommand failed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment