Skip to content
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

Cannot Build with cuda support #7

Open
jediofgever opened this issue Mar 26, 2020 · 3 comments
Open

Cannot Build with cuda support #7

jediofgever opened this issue Mar 26, 2020 · 3 comments

Comments

@jediofgever
Copy link

Hi Jean,
Thank you very much for your contributions to open source community.
I would like to use bcnn with CUDA support on. when I set them on in CmakeLists.txt

cmake .. ends up with errors.

I have installed cuda and nvcc --version does return following ;

nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2018 NVIDIA Corporation
Built on Sat_Aug_25_21:08:01_CDT_2018
Cuda compilation tools, release 10.0, V10.0.130

I suspect this could be because of lacking of maybe some symbolic links ?
Have you met this problem ?

@jnbraun
Copy link
Owner

jnbraun commented Mar 29, 2020

Hi Fetullah,

I have not met this problem, could you provide the error message you get when running cmake .. ?

@jediofgever
Copy link
Author

Here is terminal output after i try to built with cuda support on

atas@atas-MS-7B48:~/bcnn/build$ cmake ../
-- The C compiler identification is GNU 5.5.0
-- The CXX compiler identification is GNU 5.5.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/cc
-- [bcnn] Targeted system processor: x86_64
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- [bcnn] Build with Cuda
-- [bcnn] Found Cuda libraries: /usr/local/cuda-10.0/lib64/libcublas.soCUDA_cublas_device_LIBRARY-NOTFOUND
-- [bcnn] Build with CuDNN
-- [bcnn] Build with AVX instructions
-- Found OpenMP_C: -fopenmp (found version "4.0") 
-- Found OpenMP_CXX: -fopenmp (found version "4.0") 
-- Found OpenMP: TRUE (found version "4.0")  
-- [bcnn] Found openmp
-- [bcnn] Enabling logging
-- Found OpenCV: /usr (found suitable version "3.2.0", minimum required is "3.0.0") 
-- [bcnn] [examples/yolo] Found OpenCV
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
CUDA_cublas_device_LIBRARY (ADVANCED)
    linked by target "bcnn" in directory /home/atas/bcnn

-- Configuring incomplete, errors occurred!
See also "/home/atas/bcnn/build/CMakeFiles/CMakeOutput.log".
See also "/home/atas/bcnn/build/CMakeFiles/CMakeError.log".

@jediofgever
Copy link
Author

seems like a bug triggered by earlier version of cmake
clab/dynet#1457
I changed the minimum version to 3.12.2 and I can build bcnn

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants