Skip to content

How to solve these warnings and errors about cusparse_descr_, capacity_, sparse_, dirA, fLS::FLAGS_step when making the caffe-pruned without any modification? #2

@csyking

Description

@csyking

warning 1:

./include/caffe/common.hpp: In constructor 'caffe::Caffe::Caffe()':
./include/caffe/common.hpp:173: warning: 'caffe::Caffe::cusparse_handle_' will be initialized after
./include/caffe/common.hpp:172: warning:   'cusparseMatDescr* caffe::Caffe::cusparse_descr_'
src/caffe/common.cpp:107: warning:   when initialized here

warning 2:

./include/caffe/blob.hpp: In constructor 'caffe::Blob<Dtype>::Blob(const std::vector<int, std::allocator<int> >&) [with Dtype = float]':
src/caffe/blob.cpp:979:   instantiated from here
./include/caffe/blob.hpp:347: warning: 'caffe::Blob<float>::capacity_' will be initialized after
./include/caffe/blob.hpp:345: warning:   'bool caffe::Blob<float>::sparse_'
src/caffe/blob.cpp:86: warning:   when initialized here
./include/caffe/blob.hpp: In constructor 'caffe::Blob<Dtype>::Blob(const std::vector<int, std::allocator<int> >&) [with Dtype = double]':
src/caffe/blob.cpp:979:   instantiated from here
./include/caffe/blob.hpp:347: warning: 'caffe::Blob<double>::capacity_' will be initialized after
./include/caffe/blob.hpp:345: warning:   'bool caffe::Blob<double>::sparse_'
src/caffe/blob.cpp:86: warning:   when initialized here
./include/caffe/blob.hpp: In constructor 'caffe::Blob<Dtype>::Blob(const std::vector<int, std::allocator<int> >&) [with Dtype = int]':
src/caffe/blob.cpp:980:   instantiated from here
./include/caffe/blob.hpp:347: warning: 'caffe::Blob<int>::capacity_' will be initialized after
./include/caffe/blob.hpp:345: warning:   'bool caffe::Blob<int>::sparse_'
src/caffe/blob.cpp:86: warning:   when initialized here
./include/caffe/blob.hpp: In constructor 'caffe::Blob<Dtype>::Blob(const std::vector<int, std::allocator<int> >&) [with Dtype = unsigned int]':
src/caffe/blob.cpp:981:   instantiated from here
./include/caffe/blob.hpp:347: warning: 'caffe::Blob<unsigned int>::capacity_' will be initialized after
./include/caffe/blob.hpp:345: warning:   'bool caffe::Blob<unsigned int>::sparse_'
src/caffe/blob.cpp:86: warning:   when initialized here

warning 3:

src/caffe/util/math_functions.cu(63): warning: variable "dirA" was declared but never referenced

src/caffe/util/math_functions.cu(63): warning: variable "dirA" was declared but never referenced

src/caffe/util/math_functions.cu(63): warning: variable "dirA" was declared but never referenced

src/caffe/util/math_functions.cu(63): warning: variable "dirA" was declared but never referenced

src/caffe/util/math_functions.cu(63): warning: variable "dirA" was declared but never referenced

src/caffe/util/math_functions.cu(63): warning: variable "dirA" was declared but never referenced

src/caffe/util/math_functions.cu(63): warning: variable "dirA" was declared but never referenced

src/caffe/util/math_functions.cu(63): warning: variable "dirA" was declared but never referenced

error

.build_release/lib/libcaffe.so: undefined reference to `fLS::FLAGS_step'
collect2: ld returned 1 exit status
make: *** [.build_release/tools/net_speed_benchmark.bin] Error 1
make: *** Waiting for unfinished jobs....
.build_release/lib/libcaffe.so: undefined reference to `fLS::FLAGS_step'
collect2: ld returned 1 exit status
.build_release/lib/libcaffe.so: undefined reference to `fLS::FLAGS_step'
collect2: ld returned 1 exit status
make: *** [.build_release/tools/train_net.bin] Error 1
make: *** [.build_release/tools/test_net.bin] Error 1
.build_release/lib/libcaffe.so: undefined reference to `fLS::FLAGS_step'
collect2: ld returned 1 exit status
make: *** [.build_release/tools/finetune_net.bin] Error 1
.build_release/lib/libcaffe.so: undefined reference to `fLS::FLAGS_step'
collect2: ld returned 1 exit status
make: *** [.build_release/tools/device_query.bin] Error 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions