Giter Site home page Giter Site logo

Comments (6)

traveller59 avatar traveller59 commented on September 27, 2024

Where is your cuda install location? This is a cmake problem, it can't find your cuda installation.
I need content of CMakeError.log to get more information of this error.

from spconv.

ghimiredhikura avatar ghimiredhikura commented on September 27, 2024

This is output log.
CMakeOutput.log

My cuda installation location is

C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.1

Note: I am using anaconda.

from spconv.

traveller59 avatar traveller59 commented on September 27, 2024

this isn't the error log file...
I guess this problem is that cuda 9.x don't support newest visual studio, check the "build from source" part of this page, you may need to install toolset 14.11 and follow some commands in that page to compile spconv with cuda 9.x. This is why I recommend to use cuda 10.

from spconv.

ghimiredhikura avatar ghimiredhikura commented on September 27, 2024

Now I'm using cuda 10, but got another error. It says that it can't find cudnn

CMakeError.log

PS G:\3D-Object-Detection\second-v1.5.1\spconv> python setup.py bdist_wheel
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.6
creating build\lib.win-amd64-3.6\spconv
copying spconv\conv.py -> build\lib.win-amd64-3.6\spconv
copying spconv\functional.py -> build\lib.win-amd64-3.6\spconv
copying spconv\modules.py -> build\lib.win-amd64-3.6\spconv
copying spconv\ops.py -> build\lib.win-amd64-3.6\spconv
copying spconv\pool.py -> build\lib.win-amd64-3.6\spconv
copying spconv\test_utils.py -> build\lib.win-amd64-3.6\spconv
copying spconv\__init__.py -> build\lib.win-amd64-3.6\spconv
creating build\lib.win-amd64-3.6\spconv\utils
copying spconv\utils\__init__.py -> build\lib.win-amd64-3.6\spconv\utils
running build_ext
Release
|||||CMAKE ARGS||||| ['-DCMAKE_PREFIX_PATH=C:\\Users\\user\\Anaconda3\\lib\\site-packages\\torch', '-DPYBIND11_PYTHON_VERSION=3.6', '-DSPCONV_BuildTests=OFF', '-DCMAKE_CUDA_FLAGS="--expt-relaxed-constexpr"', '-DCMAKE_BUILD_TYPE=Release', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=G:\\3D-Object-Detection\\second-v1.5.1\\spconv\\build\\lib.win-amd64-3.6\\spconv', '-DCMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE=G:\\3D-Object-Detection\\second-v1.5.1\\spconv\\build\\lib.win-amd64-3.6\\spconv', '-A', 'x64']
-- Building for: Visual Studio 14 2015
-- Selecting Windows SDK version  to target Windows 10.0.17134.
-- The CXX compiler identification is MSVC 19.0.24215.1
-- The CUDA compiler identification is NVIDIA 10.1.105
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working CUDA compiler: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.1/bin/nvcc.exe
-- Check for working CUDA compiler: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.1/bin/nvcc.exe -- works
-- Detecting CUDA compiler ABI info
-- Detecting CUDA compiler ABI info - done
-- Looking for C++ include pthread.h
-- Looking for C++ include pthread.h - not found
-- Found Threads: TRUE
-- Found CUDA: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.1 (found suitable version "10.1", minimum required is "7.0")
-- Caffe2: CUDA detected: 10.1.105
-- Caffe2: CUDA nvcc is: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.1/bin/nvcc.exe
-- Caffe2: CUDA toolkit directory: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.1
-- Caffe2: Header version is: 10.1
-- Could NOT find CUDNN (missing: CUDNN_INCLUDE_DIR CUDNN_LIBRARY)
CMake Warning at C:/Users/user/Anaconda3/Lib/site-packages/torch/share/cmake/Caffe2/public/cuda.cmake:110 (message):
  Caffe2: Cannot find cuDNN library.  Turning the option off
Call Stack (most recent call first):
  C:/Users/user/Anaconda3/Lib/site-packages/torch/share/cmake/Caffe2/Caffe2Config.cmake:88 (include)
  C:/Users/user/Anaconda3/Lib/site-packages/torch/share/cmake/Torch/TorchConfig.cmake:39 (find_package)
  CMakeLists.txt:23 (find_package)


-- Autodetected CUDA architecture(s): 6.1
-- Added CUDA NVCC flags for: -gencode;arch=compute_61,code=sm_61
CMake Error at C:/Users/user/Anaconda3/Lib/site-packages/torch/share/cmake/Caffe2/Caffe2Config.cmake:96 (message):
  Your installed Caffe2 version uses cuDNN but I cannot find the cuDNN
  libraries.  Please set the proper cuDNN prefixes and / or install cuDNN.
Call Stack (most recent call first):
  C:/Users/user/Anaconda3/Lib/site-packages/torch/share/cmake/Torch/TorchConfig.cmake:39 (find_package)
  CMakeLists.txt:23 (find_package)


-- Configuring incomplete, errors occurred!
See also "G:/3D-Object-Detection/second-v1.5.1/spconv/build/temp.win-amd64-3.6/Release/CMakeFiles/CMakeOutput.log".
See also "G:/3D-Object-Detection/second-v1.5.1/spconv/build/temp.win-amd64-3.6/Release/CMakeFiles/CMakeError.log".
Traceback (most recent call last):
  File "setup.py", line 89, in <module>
    zip_safe=False,
  File "C:\Users\user\Anaconda3\lib\site-packages\setuptools\__init__.py", line 129, in setup
    return distutils.core.setup(**attrs)
  File "C:\Users\user\Anaconda3\lib\distutils\core.py", line 148, in setup
    dist.run_commands()
  File "C:\Users\user\Anaconda3\lib\distutils\dist.py", line 955, in run_commands
    self.run_command(cmd)
  File "C:\Users\user\Anaconda3\lib\distutils\dist.py", line 974, in run_command
    cmd_obj.run()
  File "C:\Users\user\Anaconda3\lib\site-packages\wheel\bdist_wheel.py", line 204, in run
    self.run_command('build')
  File "C:\Users\user\Anaconda3\lib\distutils\cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "C:\Users\user\Anaconda3\lib\distutils\dist.py", line 974, in run_command
    cmd_obj.run()
  File "C:\Users\user\Anaconda3\lib\distutils\command\build.py", line 135, in run
    self.run_command(cmd_name)
  File "C:\Users\user\Anaconda3\lib\distutils\cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "C:\Users\user\Anaconda3\lib\distutils\dist.py", line 974, in run_command
    cmd_obj.run()
  File "setup.py", line 40, in run
    self.build_extension(ext)
  File "setup.py", line 72, in build_extension
    subprocess.check_call(['cmake', ext.sourcedir] + cmake_args, cwd=self.build_temp, env=env)
  File "C:\Users\user\Anaconda3\lib\subprocess.py", line 291, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', 'G:\\3D-Object-Detection\\second-v1.5.1\\spconv', '-DCMAKE_PREFIX_PATH=C:\\Users\\user\\Anaconda3\\lib\\site-packages\\torch', '-DPYBIND11_PYTHON_VERSION=3.6', '-DSPCONV_BuildTests=OFF', '-DCMAKE_CUDA_FLAGS="--expt-relaxed-constexpr"', '-DCMAKE_BUILD_TYPE=Release', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=G:\\3D-Object-Detection\\second-v1.5.1\\spconv\\build\\lib.win-amd64-3.6\\spconv', '-DCMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE=G:\\3D-Object-Detection\\second-v1.5.1\\spconv\\build\\lib.win-amd64-3.6\\spconv', '-A', 'x64']' returned non-zero exit status 1.
PS G:\3D-Object-Detection\second-v1.5.1\spconv>

from spconv.

traveller59 avatar traveller59 commented on September 27, 2024

have you installed cudnn? download cudnn files, extract and copy libraries and includes to cuda installation directory.
The error in your log file looks not important.

from spconv.

ghimiredhikura avatar ghimiredhikura commented on September 27, 2024

@traveller59
My bad, cudnn was not installed!
After Installing cudnn and adding boost library files it works without any error.
Thanks for your help. ^^

from spconv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.