aim-uofa / AdelaiDet

AdelaiDet is an open source toolbox for multiple instance-level detection and recognition tasks.
https://git.io/AdelaiDet
Other
3.37k stars 646 forks source link

RuntimeError: Error compiling objects for extension #89

Closed shafu0x closed 4 years ago

shafu0x commented 4 years ago

Hey, I'm trying to install the toolbox via python setup.py build develop but I get the following error in the last line of the script cmdclass={"build_ext": torch.utils.cpp_extension.BuildExtension}

RuntimeError: Error compiling objects for extension

Detectron2 is installed and can be imported correctly. I run CUDA 10.2

Yuliang-Liu commented 4 years ago

Hi, which version of pytorch did you use?

shafu0x commented 4 years ago

Hi, I'm running the following version: torch==1.5

stan-haochen commented 4 years ago

Hi @SharifElfouly that seems to be an interesting problem. I need more detailed information of your environment, e.g. OS and compiler version.

Yuliang-Liu commented 4 years ago

no active for a long time. I will close it

Akshay-Ijantkar commented 4 years ago
/home/ai/.local/lib/python3.6/site-packages/torch/include/ATen/cuda/CUDAContext.h:7:10: fatal error: cublas_v2.h: No such file or directory
 #include <cublas_v2.h>
in _run_ninja_build
    raise RuntimeError(message)
RuntimeError: Error compiling objects for extension

Got the above error using the below command, can you please guide? I am using PyTorch version 1.6 and CUDA 10.1

git clone https://github.com/aim-uofa/AdelaiDet.git
cd AdelaiDet
python setup.py build develop

@Yuliang-Liu @stan-haochen @SharifElfouly @lbin

lmw0320 commented 3 years ago
/home/ai/.local/lib/python3.6/site-packages/torch/include/ATen/cuda/CUDAContext.h:7:10: fatal error: cublas_v2.h: No such file or directory
 #include <cublas_v2.h>
in _run_ninja_build
    raise RuntimeError(message)
RuntimeError: Error compiling objects for extension

Got the above error using the below command, can you please guide? I am using PyTorch version 1.6 and CUDA 10.1

git clone https://github.com/aim-uofa/AdelaiDet.git
cd AdelaiDet
python setup.py build develop

@Yuliang-Liu @stan-haochen @SharifElfouly @lbin

Same error found... I have the same envs with torch 1.6.0+cu101 and my OS is Ubuntu18.04, gcc 7.5.0...Any method to solve?

jieruyao49 commented 3 years ago
/home/ai/.local/lib/python3.6/site-packages/torch/include/ATen/cuda/CUDAContext.h:7:10: fatal error: cublas_v2.h: No such file or directory
 #include <cublas_v2.h>
in _run_ninja_build
    raise RuntimeError(message)
RuntimeError: Error compiling objects for extension

Got the above error using the below command, can you please guide? I am using PyTorch version 1.6 and CUDA 10.1

git clone https://github.com/aim-uofa/AdelaiDet.git
cd AdelaiDet
python setup.py build develop

@Yuliang-Liu @stan-haochen @SharifElfouly @lbin

Same error found... I have the same envs with torch 1.6.0+cu101 and my OS is Ubuntu18.04, gcc 7.5.0...Any method to solve?

Have you solved the problem

jieruyao49 commented 3 years ago
/home/ai/.local/lib/python3.6/site-packages/torch/include/ATen/cuda/CUDAContext.h:7:10: fatal error: cublas_v2.h: No such file or directory
 #include <cublas_v2.h>
in _run_ninja_build
    raise RuntimeError(message)
RuntimeError: Error compiling objects for extension

Got the above error using the below command, can you please guide? I am using PyTorch version 1.6 and CUDA 10.1

git clone https://github.com/aim-uofa/AdelaiDet.git
cd AdelaiDet
python setup.py build develop

@Yuliang-Liu @stan-haochen @SharifElfouly @lbin

Have you solved the problem