Open shifangtian opened 5 years ago
what is your gcc and cuda version?
what is your gcc and cuda version? my gcc may be the owned version of anaconda I have no cuda,whether there must be cuda?
@shifangtian CUDA and cuDNN are required in order to train the models faster. Which GPU do you have?
@sainatarajan for compiling pytorch, CUDA is a must. May be you are getting the error because of that. Try ´nvcc --version´ in your terminal
@MohiFaruq Thanks for that but I am able to run the repo without any problems. @shifangtian is having issues. Maybe the CUDA path is not added in .bashrc
.
haha sorry I tagged the wrong person. If cuda path is not added, try
export PATH=/usr/local/cuda-6.5/bin:$PATH
@sainatarajan for compiling pytorch, CUDA is a must. May be you are getting the error because of that. Try ´nvcc --version´ in your terminal now I have already a cuda,but the problem also exist,and my cuda path already add
what is your gcc and cuda version?
my cuda version is 9.0
D:\my\pytorch\awesome-semantic-segmentation-pytorch-master\awesome-semantic-segmentation-pytorch-master\core\nn>python setup.py build develop 信息: 用提供的模式无法找到文件。 running build running build_ext D:\deeplearning\anaconda\lib\site-packages\torch\utils\cpp_extension.py:184: UserWarning: Error checking compiler version for g++: Command 'g++' returned non-zero exit status 1. warnings.warn('Error checking compiler version for {}: {}'.format(compiler, error)) building '._C' extension D:\deeplearning\anaconda\Library\mingw-w64\bin\gcc.exe -mdll -O -Wall -DMS_WIN64 -ID:\my\pytorch\awesome-semantic-segmentation-pytorch-master\awesome-semantic-segmentation-pytorch-master\core\nn\csrc -ID:\deeplearning\anaconda\lib\site-packages\torch\lib\include -ID:\deeplearning\anaconda\lib\site-packages\torch\lib\include\torch\csrc\api\include -ID:\deeplearning\anaconda\lib\site-packages\torch\lib\include\TH -ID:\deeplearning\anaconda\lib\site-packages\torch\lib\include\THC -ID:\deeplearning\anaconda\include -ID:\deeplearning\anaconda\include -c D:\my\pytorch\awesome-semantic-segmentation-pytorch-master\awesome-semantic-segmentation-pytorch-master\core\nn\csrc\vision.cpp -o d:\my\pytorch\awesome-semantic-segmentation-pytorch-master\awesome-semantic-segmentation-pytorch-master\core\nn\csrc\vision.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11 In file included from D:\deeplearning\anaconda\lib\site-packages\torch\lib\include/c10/core/ScalarType.h:5:0, from D:\deeplearning\anaconda\lib\site-packages\torch\lib\include/c10/core/Scalar.h:10, from D:\deeplearning\anaconda\lib\site-packages\torch\lib\include/ATen/core/Type.h:8, from D:\deeplearning\anaconda\lib\site-packages\torch\lib\include/ATen/Type.h:2, from D:\deeplearning\anaconda\lib\site-packages\torch\lib\include/ATen/Context.h:4, from D:\deeplearning\anaconda\lib\site-packages\torch\lib\include/ATen/ATen.h:5, from D:\deeplearning\anaconda\lib\site-packages\torch\lib\include\torch\csrc\api\include/torch/types.h:3, from D:\deeplearning\anaconda\lib\site-packages\torch\lib\include\torch\csrc\api\include/torch/data/dataloader_options.h:4, from D:\deeplearning\anaconda\lib\site-packages\torch\lib\include\torch\csrc\api\include/torch/data/dataloader.h:3, from D:\deeplearning\anaconda\lib\site-packages\torch\lib\include\torch\csrc\api\include/torch/data.h:3, from D:\deeplearning\anaconda\lib\site-packages\torch\lib\include\torch\csrc\api\include/torch/all.h:4, from D:\deeplearning\anaconda\lib\site-packages\torch\lib\include/torch/extension.h:4, from D:\my\pytorch\awesome-semantic-segmentation-pytorch-master\awesome-semantic-segmentation-pytorch-master\core\nn\csrc\cpu/vision.h:2, from D:\my\pytorch\awesome-semantic-segmentation-pytorch-master\awesome-semantic-segmentation-pytorch-master\core\nn\csrc\ca.h:3, from D:\my\pytorch\awesome-semantic-segmentation-pytorch-master\awesome-semantic-segmentation-pytorch-master\core\nn\csrc\vision.cpp:1: D:\deeplearning\anaconda\lib\site-packages\torch\lib\include/c10/util/typeid.h:453:40: warning: 'static const caffe2::detail::TypeMetaData caffe2::TypeMeta::_typeMetaDataInstance() [with T = caffe2::detail::_Uninitialized]' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes] C10_EXPORT const detail::TypeMetaData TypeMeta::_typeMetaDataInstance() noexcept;
^
In file included from D:\deeplearning\anaconda\lib\site-packages\torch\lib\include/ATen/core/Tensor.h:735:0,
from D:\deeplearning\anaconda\lib\site-packages\torch\lib\include/ATen/core/Type.h:591,
from D:\deeplearning\anaconda\lib\site-packages\torch\lib\include/ATen/Type.h:2,
from D:\deeplearning\anaconda\lib\site-packages\torch\lib\include/ATen/Context.h:4,
from D:\deeplearning\anaconda\lib\site-packages\torch\lib\include/ATen/ATen.h:5,
from D:\deeplearning\anaconda\lib\site-packages\torch\lib\include\torch\csrc\api\include/torch/types.h:3,
from D:\deeplearning\anaconda\lib\site-packages\torch\lib\include\torch\csrc\api\include/torch/data/dataloader_options.h:4,
from D:\deeplearning\anaconda\lib\site-packages\torch\lib\include\torch\csrc\api\include/torch/data/dataloader.h:3,
from D:\deeplearning\anaconda\lib\site-packages\torch\lib\include\torch\csrc\api\include/torch/data.h:3,
from D:\deeplearning\anaconda\lib\site-packages\torch\lib\include\torch\csrc\api\include/torch/all.h:4,
from D:\deeplearning\anaconda\lib\site-packages\torch\lib\include/torch/extension.h:4,
from D:\my\pytorch\awesome-semantic-segmentation-pytorch-master\awesome-semantic-segmentation-pytorch-master\core\nn\csrc\cpu/vision.h:2,
from D:\my\pytorch\awesome-semantic-segmentation-pytorch-master\awesome-semantic-segmentation-pytorch-master\core\nn\csrc\ca.h:3,
from D:\my\pytorch\awesome-semantic-segmentation-pytorch-master\awesome-semantic-segmentation-pytorch-master\core\nn\csrc\vision.cpp:1:
D:\deeplearning\anaconda\lib\site-packages\torch\lib\include/ATen/core/TensorMethods.h:777:15: warning: 'at::Tensor at::Tensor::to(c10::Device, c10::ScalarType, bool, bool) const' redeclared without dllimport attribute after being referenced with dll linkage
inline Tensor Tensor::to(Device device, ScalarType dtype, bool non_blocking, bool copy) const {
^
D:\deeplearning\anaconda\lib\site-packages\torch\lib\include/ATen/core/TensorMethods.h:780:15: warning: 'at::Tensor at::Tensor::to(c10::ScalarType, bool, bool) const' redeclared without dllimport attribute after being referenced with dll linkage
inline Tensor Tensor::to(ScalarType dtype, bool non_blocking, bool copy) const {
^
D:\deeplearning\anaconda\lib\site-packages\torch\lib\include/ATen/core/TensorMethods.h:1246:13: warning: 'bool at::Tensor::is_variable() const' redeclared without dllimport attribute after being referenced with dll linkage
inline bool Tensor::is_variable() const noexcept {
^
D:\deeplearning\anaconda\lib\site-packages\torch\lib\include/ATen/core/TensorMethods.h:1250:25: warning: 'caffe2::TypeMeta at::Tensor::dtype() const' redeclared without dllimport attribute after being referenced with dll linkage
inline caffe2::TypeMeta Tensor::dtype() const noexcept {
^
D:\deeplearning\anaconda\lib\site-packages\torch\lib\include/ATen/core/TensorMethods.h:1254:15: warning: 'c10::Layout at::Tensor::layout() const' redeclared without dllimport attribute after being referenced with dll linkage
inline Layout Tensor::layout() const noexcept {
^
D:\deeplearning\anaconda\lib\site-packages\torch\lib\include/ATen/core/TensorMethods.h:1258:15: warning: 'c10::Device at::Tensor::device() const' redeclared without dllimport attribute after being referenced with dll linkage
inline Device Tensor::device() const {
^
In file included from D:\deeplearning\anaconda\lib\site-packages\torch\lib\include/torch/csrc/autograd/generated/variable_factories.h:7:0,
from D:\deeplearning\anaconda\lib\site-packages\torch\lib\include\torch\csrc\api\include/torch/types.h:7,
from D:\deeplearning\anaconda\lib\site-packages\torch\lib\include\torch\csrc\api\include/torch/data/dataloader_options.h:4,
from D:\deeplearning\anaconda\lib\site-packages\torch\lib\include\torch\csrc\api\include/torch/data/dataloader.h:3,
from D:\deeplearning\anaconda\lib\site-packages\torch\lib\include\torch\csrc\api\include/torch/data.h:3,
from D:\deeplearning\anaconda\lib\site-packages\torch\lib\include\torch\csrc\api\include/torch/all.h:4,
from D:\deeplearning\anaconda\lib\site-packages\torch\lib\include/torch/extension.h:4,
from D:\my\pytorch\awesome-semantic-segmentation-pytorch-master\awesome-semantic-segmentation-pytorch-master\core\nn\csrc\cpu/vision.h:2,
from D:\my\pytorch\awesome-semantic-segmentation-pytorch-master\awesome-semantic-segmentation-pytorch-master\core\nn\csrc\ca.h:3,
from D:\my\pytorch\awesome-semantic-segmentation-pytorch-master\awesome-semantic-segmentation-pytorch-master\core\nn\csrc\vision.cpp:1:
D:\deeplearning\anaconda\lib\site-packages\torch\lib\include/torch/csrc/autograd/variable.h:566:41: warning: 'const std::shared_ptr& torch::autograd::Variable::grad_fn() const' redeclared without dllimport attribute after being referenced with dll linkage
inline const std::shared_ptr& Variable::grad_fn() const {
^
D:\deeplearning\anaconda\lib\site-packages\torch\lib\include/torch/csrc/autograd/variable.h:583:34: warning: 'std::shared_ptr torch::autograd::Variable::grad_accumulator() const' redeclared without dllimport attribute after being referenced with dll linkage
inline std::shared_ptr Variable::grad_accumulator() const {
^
D:\deeplearning\anaconda\lib\site-packages\torch\lib\include/torch/csrc/autograd/variable.h:611:17: warning: 'uint32_t torch::autograd::Variable::output_nr() const' redeclared without dllimport attribute after being referenced with dll linkage
inline uint32_t Variable::output_nr() const noexcept {
^
D:\deeplearning\anaconda\lib\site-packages\torch\lib\include/torch/csrc/autograd/variable.h:622:13: warning: 'void torch::autograd::Variable::set_version_counter(const torch::autograd::VariableVersion&)' redeclared without dllimport attribute after being referenced with dll linkage
inline void Variable::set_version_counter(
^
D:\deeplearning\anaconda\lib\site-packages\torch\lib\include/torch/csrc/autograd/variable.h:635:31: warning: 'const torch::autograd::VariableVersion& torch::autograd::Variable::version_counter() const' redeclared without dllimport attribute after being referenced with dll linkage
inline const VariableVersion& Variable::version_counter() const noexcept {
^
D:\deeplearning\anaconda\lib\site-packages\torch\lib\include/torch/csrc/autograd/variable.h:688:8: warning: 'torch::autograd::Variable::Variable(c10::intrusive_ptr)' redeclared without dllimport attribute after being referenced with dll linkage
inline Variable::Variable(c10::intrusive_ptr self)
^
D:\deeplearning\anaconda\lib\site-packages\torch\lib\include/torch/csrc/autograd/variable.h:691:24: warning: 'torch::autograd::Variable::Impl torch::autograd::Variable::get() const' redeclared without dllimport attribute after being referenced with dll linkage
inline Variable::Impl Variable::get() const {
^
In file included from D:\deeplearning\anaconda\lib\site-packages\torch\lib\include/torch/csrc/jit/ivalue.h:1:0,
from D:\deeplearning\anaconda\lib\site-packages\torch\lib\include/torch/csrc/jit/constants.h:2,
from D:\deeplearning\anaconda\lib\site-packages\torch\lib\include/torch/csrc/jit/tracer.h:6,
from D:\deeplearning\anaconda\lib\site-packages\torch\lib\include/torch/csrc/autograd/generated/variable_factories.h:8,
from D:\deeplearning\anaconda\lib\site-packages\torch\lib\include\torch\csrc\api\include/torch/types.h:7,
from D:\deeplearning\anaconda\lib\site-packages\torch\lib\include\torch\csrc\api\include/torch/data/dataloader_options.h:4,
from D:\deeplearning\anaconda\lib\site-packages\torch\lib\include\torch\csrc\api\include/torch/data/dataloader.h:3,
from D:\deeplearning\anaconda\lib\site-packages\torch\lib\include\torch\csrc\api\include/torch/data.h:3,
from D:\deeplearning\anaconda\lib\site-packages\torch\lib\include\torch\csrc\api\include/torch/all.h:4,
from D:\deeplearning\anaconda\lib\site-packages\torch\lib\include/torch/extension.h:4,
from D:\my\pytorch\awesome-semantic-segmentation-pytorch-master\awesome-semantic-segmentation-pytorch-master\core\nn\csrc\cpu/vision.h:2,
from D:\my\pytorch\awesome-semantic-segmentation-pytorch-master\awesome-semantic-segmentation-pytorch-master\core\nn\csrc\ca.h:3,
from D:\my\pytorch\awesome-semantic-segmentation-pytorch-master\awesome-semantic-segmentation-pytorch-master\core\nn\csrc\vision.cpp:1:
D:\deeplearning\anaconda\lib\site-packages\torch\lib\include/ATen/core/ivalue.h:624:8: warning: 'c10::IValue::IValue(std::vector)' redeclared without dllimport attribute after being referenced with dll linkage
inline IValue::IValue(std::vector v)
^
D:\deeplearning\anaconda\lib\site-packages\torch\lib\include/ATen/core/ivalue.h:667:36: warning: 'const std::vector& c10::IValue::toIntListRef() const' redeclared without dllimport attribute after being referenced with dll linkage
inline const std::vector& IValue::toIntListRef() const {
^
D:\deeplearning\anaconda\lib\site-packages\torch\lib\include/ATen/core/ivalue.h:671:35: warning: 'const std::vector& c10::IValue::toDoubleListRef() const' redeclared without dllimport attribute after being referenced with dll linkage
inline const std::vector& IValue::toDoubleListRef() const {
^
D:\deeplearning\anaconda\lib\site-packages\torch\lib\include/ATen/core/ivalue.h:675:39: warning: 'const std::vector& c10::IValue::toTensorListRef() const' redeclared without dllimport attribute after being referenced with dll linkage
inline const std::vector& IValue::toTensorListRef() const {
^
D:\deeplearning\anaconda\lib\site-packages\torch\lib\include/ATen/core/ivalue.h:679:33: warning: 'const std::vector& c10::IValue::toBoolListRef() const' redeclared without dllimport attribute after being referenced with dll linkage
inline const std::vector& IValue::toBoolListRef() const {
^
D:\deeplearning\anaconda\lib\site-packages\torch\lib\include/ATen/core/ivalue.h:683:35: warning: 'const std::vector<c10::IValue, std::allocator >& c10::IValue::toGenericListRef() const' redeclared without dllimport attribute after being referenced with dll linkage
inline const std::vector& IValue::toGenericListRef() const {
^
D:\deeplearning\anaconda\lib\site-packages\torch\lib\include/ATen/core/ivalue.h:687:27: warning: 'const string& c10::IValue::toStringRef() const' redeclared without dllimport attribute after being referenced with dll linkage
inline const std::string& IValue::toStringRef() const {
^
In file included from D:\deeplearning\anaconda\lib\site-packages\torch\lib\include/torch/csrc/jit/script/compiler.h:9:0,
from D:\deeplearning\anaconda\lib\site-packages\torch\lib\include\torch\csrc\api\include/torch/jit.h:3,
from D:\deeplearning\anaconda\lib\site-packages\torch\lib\include\torch\csrc\api\include/torch/all.h:5,
from D:\deeplearning\anaconda\lib\site-packages\torch\lib\include/torch/extension.h:4,
from D:\my\pytorch\awesome-semantic-segmentation-pytorch-master\awesome-semantic-segmentation-pytorch-master\core\nn\csrc\cpu/vision.h:2,
from D:\my\pytorch\awesome-semantic-segmentation-pytorch-master\awesome-semantic-segmentation-pytorch-master\core\nn\csrc\ca.h:3,
from D:\my\pytorch\awesome-semantic-segmentation-pytorch-master\awesome-semantic-segmentation-pytorch-master\core\nn\csrc\vision.cpp:1:
D:\deeplearning\anaconda\lib\site-packages\torch\lib\include/torch/csrc/jit/script/module.h:81:36: error: function 'std::shared_ptr torch::jit::script::Method::graph() const' definition is marked dllimport
TORCH_API std::shared_ptr graph() const {
^
D:\deeplearning\anaconda\lib\site-packages\torch\lib\include/torch/csrc/jit/script/module.h:85:33: error: function 'const string& torch::jit::script::Method::name() const' definition is marked dllimport
TORCH_API const std::string & name() const {
^
D:\deeplearning\anaconda\lib\site-packages\torch\lib\include/torch/csrc/jit/script/module.h:101:21: error: function 'torch::jit::Value torch::jit::script::Method::get_or_add_parameter(at::Tensor)' definition is marked dllimport
TORCH_API Value get_or_add_parameter(at::Tensor slot) {
^
In file included from D:\deeplearning\anaconda\lib\site-packages\torch\lib\include/torch/csrc/jit/script/compiler.h:9:0,
from D:\deeplearning\anaconda\lib\site-packages\torch\lib\include\torch\csrc\api\include/torch/jit.h:3,
from D:\deeplearning\anaconda\lib\site-packages\torch\lib\include\torch\csrc\api\include/torch/all.h:5,
from D:\deeplearning\anaconda\lib\site-packages\torch\lib\include/torch/extension.h:4,
from D:\my\pytorch\awesome-semantic-segmentation-pytorch-master\awesome-semantic-segmentation-pytorch-master\core\nn\csrc\cpu/vision.h:2,
from D:\my\pytorch\awesome-semantic-segmentation-pytorch-master\awesome-semantic-segmentation-pytorch-master\core\nn\csrc\ca.h:3,
from D:\my\pytorch\awesome-semantic-segmentation-pytorch-master\awesome-semantic-segmentation-pytorch-master\core\nn\csrc\vision.cpp:1:
D:\deeplearning\anaconda\lib\site-packages\torch\lib\include/torch/csrc/jit/script/module.h:169:35: error: function 'const c10::FunctionSchema& torch::jit::script::Method::getSchema() const' definition is marked dllimport
TORCH_API const FunctionSchema& getSchema() const {
^
error: command 'D:\deeplearning\anaconda\Library\mingw-w64\bin\gcc.exe' failed with exit status 1