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

error: command 'gcc' failed with exit status 1 #74

Open
sab148 opened this issue Apr 16, 2020 · 0 comments
Open

error: command 'gcc' failed with exit status 1 #74

sab148 opened this issue Apr 16, 2020 · 0 comments

Comments

@sab148
Copy link

sab148 commented Apr 16, 2020

Hi everyone,
I followed the instruction of this suggestion in #723 , because i couldn't use apex from another directory. So I tried to use python setup.py install --cuda_ext --cpp_ext
and I got these errors

`
(base) [narimene@localhost apex]$ python3 setup.py install --cuda_ext --cpp_ext
torch.version = 1.2.0
setup.py:46: UserWarning: Option --pyprof not specified. Not installing PyProf dependencies!
warnings.warn("Option --pyprof not specified. Not installing PyProf dependencies!")

Compiling cuda extensions with
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
from /usr/local/cuda/bin

running install
running bdist_egg
running egg_info
writing apex.egg-info/PKG-INFO
writing dependency_links to apex.egg-info/dependency_links.txt
writing top-level names to apex.egg-info/top_level.txt
reading manifest file 'apex.egg-info/SOURCES.txt'
writing manifest file 'apex.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
creating build
creating build/lib.linux-x86_64-3.7
creating build/lib.linux-x86_64-3.7/apex
copying apex/init.py -> build/lib.linux-x86_64-3.7/apex
creating build/lib.linux-x86_64-3.7/apex/RNN
copying apex/RNN/RNNBackend.py -> build/lib.linux-x86_64-3.7/apex/RNN
copying apex/RNN/init.py -> build/lib.linux-x86_64-3.7/apex/RNN
copying apex/RNN/cells.py -> build/lib.linux-x86_64-3.7/apex/RNN
copying apex/RNN/models.py -> build/lib.linux-x86_64-3.7/apex/RNN
creating build/lib.linux-x86_64-3.7/apex/amp
copying apex/amp/init.py -> build/lib.linux-x86_64-3.7/apex/amp
copying apex/amp/version.py -> build/lib.linux-x86_64-3.7/apex/amp
copying apex/amp/amp_state.py -> build/lib.linux-x86_64-3.7/apex/amp
copying apex/amp/initialize.py -> build/lib.linux-x86_64-3.7/apex/amp
copying apex/amp/process_optimizer.py -> build/lib.linux-x86_64-3.7/apex/amp
copying apex/amp/amp.py -> build/lib.linux-x86_64-3.7/apex/amp
copying apex/amp/compat.py -> build/lib.linux-x86_64-3.7/apex/amp
copying apex/amp/frontend.py -> build/lib.linux-x86_64-3.7/apex/amp
copying apex/amp/handle.py -> build/lib.linux-x86_64-3.7/apex/amp
copying apex/amp/opt.py -> build/lib.linux-x86_64-3.7/apex/amp
copying apex/amp/rnn_compat.py -> build/lib.linux-x86_64-3.7/apex/amp
copying apex/amp/scaler.py -> build/lib.linux-x86_64-3.7/apex/amp
copying apex/amp/utils.py -> build/lib.linux-x86_64-3.7/apex/amp
copying apex/amp/wrap.py -> build/lib.linux-x86_64-3.7/apex/amp
creating build/lib.linux-x86_64-3.7/apex/contrib
copying apex/contrib/init.py -> build/lib.linux-x86_64-3.7/apex/contrib
creating build/lib.linux-x86_64-3.7/apex/fp16_utils
copying apex/fp16_utils/init.py -> build/lib.linux-x86_64-3.7/apex/fp16_utils
copying apex/fp16_utils/fp16_optimizer.py -> build/lib.linux-x86_64-3.7/apex/fp16_utils
copying apex/fp16_utils/fp16util.py -> build/lib.linux-x86_64-3.7/apex/fp16_utils
copying apex/fp16_utils/loss_scaler.py -> build/lib.linux-x86_64-3.7/apex/fp16_utils
creating build/lib.linux-x86_64-3.7/apex/multi_tensor_apply
copying apex/multi_tensor_apply/init.py -> build/lib.linux-x86_64-3.7/apex/multi_tensor_apply
copying apex/multi_tensor_apply/multi_tensor_apply.py -> build/lib.linux-x86_64-3.7/apex/multi_tensor_apply
creating build/lib.linux-x86_64-3.7/apex/normalization
copying apex/normalization/init.py -> build/lib.linux-x86_64-3.7/apex/normalization
copying apex/normalization/fused_layer_norm.py -> build/lib.linux-x86_64-3.7/apex/normalization
creating build/lib.linux-x86_64-3.7/apex/optimizers
copying apex/optimizers/init.py -> build/lib.linux-x86_64-3.7/apex/optimizers
copying apex/optimizers/fused_adam.py -> build/lib.linux-x86_64-3.7/apex/optimizers
copying apex/optimizers/fused_lamb.py -> build/lib.linux-x86_64-3.7/apex/optimizers
copying apex/optimizers/fused_novograd.py -> build/lib.linux-x86_64-3.7/apex/optimizers
copying apex/optimizers/fused_sgd.py -> build/lib.linux-x86_64-3.7/apex/optimizers
creating build/lib.linux-x86_64-3.7/apex/parallel
copying apex/parallel/LARC.py -> build/lib.linux-x86_64-3.7/apex/parallel
copying apex/parallel/init.py -> build/lib.linux-x86_64-3.7/apex/parallel
copying apex/parallel/distributed.py -> build/lib.linux-x86_64-3.7/apex/parallel
copying apex/parallel/multiproc.py -> build/lib.linux-x86_64-3.7/apex/parallel
copying apex/parallel/optimized_sync_batchnorm.py -> build/lib.linux-x86_64-3.7/apex/parallel
copying apex/parallel/optimized_sync_batchnorm_kernel.py -> build/lib.linux-x86_64-3.7/apex/parallel
copying apex/parallel/sync_batchnorm.py -> build/lib.linux-x86_64-3.7/apex/parallel
copying apex/parallel/sync_batchnorm_kernel.py -> build/lib.linux-x86_64-3.7/apex/parallel
creating build/lib.linux-x86_64-3.7/apex/pyprof
copying apex/pyprof/init.py -> build/lib.linux-x86_64-3.7/apex/pyprof
creating build/lib.linux-x86_64-3.7/apex/reparameterization
copying apex/reparameterization/init.py -> build/lib.linux-x86_64-3.7/apex/reparameterization
copying apex/reparameterization/reparameterization.py -> build/lib.linux-x86_64-3.7/apex/reparameterization
copying apex/reparameterization/weight_norm.py -> build/lib.linux-x86_64-3.7/apex/reparameterization
creating build/lib.linux-x86_64-3.7/apex/amp/lists
copying apex/amp/lists/init.py -> build/lib.linux-x86_64-3.7/apex/amp/lists
copying apex/amp/lists/functional_overrides.py -> build/lib.linux-x86_64-3.7/apex/amp/lists
copying apex/amp/lists/tensor_overrides.py -> build/lib.linux-x86_64-3.7/apex/amp/lists
copying apex/amp/lists/torch_overrides.py -> build/lib.linux-x86_64-3.7/apex/amp/lists
creating build/lib.linux-x86_64-3.7/apex/contrib/groupbn
copying apex/contrib/groupbn/init.py -> build/lib.linux-x86_64-3.7/apex/contrib/groupbn
copying apex/contrib/groupbn/batch_norm.py -> build/lib.linux-x86_64-3.7/apex/contrib/groupbn
creating build/lib.linux-x86_64-3.7/apex/contrib/multihead_attn
copying apex/contrib/multihead_attn/init.py -> build/lib.linux-x86_64-3.7/apex/contrib/multihead_attn
copying apex/contrib/multihead_attn/encdec_multihead_attn.py -> build/lib.linux-x86_64-3.7/apex/contrib/multihead_attn
copying apex/contrib/multihead_attn/encdec_multihead_attn_func.py -> build/lib.linux-x86_64-3.7/apex/contrib/multihead_attn
copying apex/contrib/multihead_attn/fast_encdec_multihead_attn_func.py -> build/lib.linux-x86_64-3.7/apex/contrib/multihead_attn
copying apex/contrib/multihead_attn/fast_encdec_multihead_attn_norm_add_func.py -> build/lib.linux-x86_64-3.7/apex/contrib/multihead_attn
copying apex/contrib/multihead_attn/fast_self_multihead_attn_func.py -> build/lib.linux-x86_64-3.7/apex/contrib/multihead_attn
copying apex/contrib/multihead_attn/fast_self_multihead_attn_norm_add_func.py -> build/lib.linux-x86_64-3.7/apex/contrib/multihead_attn
copying apex/contrib/multihead_attn/self_multihead_attn.py -> build/lib.linux-x86_64-3.7/apex/contrib/multihead_attn
copying apex/contrib/multihead_attn/self_multihead_attn_func.py -> build/lib.linux-x86_64-3.7/apex/contrib/multihead_attn
creating build/lib.linux-x86_64-3.7/apex/contrib/optimizers
copying apex/contrib/optimizers/init.py -> build/lib.linux-x86_64-3.7/apex/contrib/optimizers
copying apex/contrib/optimizers/fp16_optimizer.py -> build/lib.linux-x86_64-3.7/apex/contrib/optimizers
copying apex/contrib/optimizers/fused_adam.py -> build/lib.linux-x86_64-3.7/apex/contrib/optimizers
copying apex/contrib/optimizers/fused_sgd.py -> build/lib.linux-x86_64-3.7/apex/contrib/optimizers
creating build/lib.linux-x86_64-3.7/apex/contrib/xentropy
copying apex/contrib/xentropy/init.py -> build/lib.linux-x86_64-3.7/apex/contrib/xentropy
copying apex/contrib/xentropy/softmax_xentropy.py -> build/lib.linux-x86_64-3.7/apex/contrib/xentropy
creating build/lib.linux-x86_64-3.7/apex/pyprof/nvtx
copying apex/pyprof/nvtx/init.py -> build/lib.linux-x86_64-3.7/apex/pyprof/nvtx
copying apex/pyprof/nvtx/nvmarker.py -> build/lib.linux-x86_64-3.7/apex/pyprof/nvtx
creating build/lib.linux-x86_64-3.7/apex/pyprof/parse
copying apex/pyprof/parse/init.py -> build/lib.linux-x86_64-3.7/apex/pyprof/parse
copying apex/pyprof/parse/main.py -> build/lib.linux-x86_64-3.7/apex/pyprof/parse
copying apex/pyprof/parse/db.py -> build/lib.linux-x86_64-3.7/apex/pyprof/parse
copying apex/pyprof/parse/kernel.py -> build/lib.linux-x86_64-3.7/apex/pyprof/parse
copying apex/pyprof/parse/nvvp.py -> build/lib.linux-x86_64-3.7/apex/pyprof/parse
copying apex/pyprof/parse/parse.py -> build/lib.linux-x86_64-3.7/apex/pyprof/parse
creating build/lib.linux-x86_64-3.7/apex/pyprof/prof
copying apex/pyprof/prof/init.py -> build/lib.linux-x86_64-3.7/apex/pyprof/prof
copying apex/pyprof/prof/main.py -> build/lib.linux-x86_64-3.7/apex/pyprof/prof
copying apex/pyprof/prof/activation.py -> build/lib.linux-x86_64-3.7/apex/pyprof/prof
copying apex/pyprof/prof/base.py -> build/lib.linux-x86_64-3.7/apex/pyprof/prof
copying apex/pyprof/prof/blas.py -> build/lib.linux-x86_64-3.7/apex/pyprof/prof
copying apex/pyprof/prof/conv.py -> build/lib.linux-x86_64-3.7/apex/pyprof/prof
copying apex/pyprof/prof/convert.py -> build/lib.linux-x86_64-3.7/apex/pyprof/prof
copying apex/pyprof/prof/data.py -> build/lib.linux-x86_64-3.7/apex/pyprof/prof
copying apex/pyprof/prof/dropout.py -> build/lib.linux-x86_64-3.7/apex/pyprof/prof
copying apex/pyprof/prof/embedding.py -> build/lib.linux-x86_64-3.7/apex/pyprof/prof
copying apex/pyprof/prof/index_slice_join_mutate.py -> build/lib.linux-x86_64-3.7/apex/pyprof/prof
copying apex/pyprof/prof/linear.py -> build/lib.linux-x86_64-3.7/apex/pyprof/prof
copying apex/pyprof/prof/loss.py -> build/lib.linux-x86_64-3.7/apex/pyprof/prof
copying apex/pyprof/prof/misc.py -> build/lib.linux-x86_64-3.7/apex/pyprof/prof
copying apex/pyprof/prof/normalization.py -> build/lib.linux-x86_64-3.7/apex/pyprof/prof
copying apex/pyprof/prof/optim.py -> build/lib.linux-x86_64-3.7/apex/pyprof/prof
copying apex/pyprof/prof/output.py -> build/lib.linux-x86_64-3.7/apex/pyprof/prof
copying apex/pyprof/prof/pointwise.py -> build/lib.linux-x86_64-3.7/apex/pyprof/prof
copying apex/pyprof/prof/pooling.py -> build/lib.linux-x86_64-3.7/apex/pyprof/prof
copying apex/pyprof/prof/prof.py -> build/lib.linux-x86_64-3.7/apex/pyprof/prof
copying apex/pyprof/prof/randomSample.py -> build/lib.linux-x86_64-3.7/apex/pyprof/prof
copying apex/pyprof/prof/recurrentCell.py -> build/lib.linux-x86_64-3.7/apex/pyprof/prof
copying apex/pyprof/prof/reduction.py -> build/lib.linux-x86_64-3.7/apex/pyprof/prof
copying apex/pyprof/prof/softmax.py -> build/lib.linux-x86_64-3.7/apex/pyprof/prof
copying apex/pyprof/prof/usage.py -> build/lib.linux-x86_64-3.7/apex/pyprof/prof
copying apex/pyprof/prof/utility.py -> build/lib.linux-x86_64-3.7/apex/pyprof/prof
running build_ext
building 'apex_C' extension
creating build/temp.linux-x86_64-3.7
creating build/temp.linux-x86_64-3.7/csrc
gcc -pthread -B /home/narimene/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include -I/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/TH -I/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/THC -I/home/narimene/anaconda3/include/python3.7m -c csrc/flatten_unflatten.cpp -o build/temp.linux-x86_64-3.7/csrc/flatten_unflatten.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=apex_C -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
In file included from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/c10/core/Backend.h:5:0,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/c10/core/Layout.h:3,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/Tensor.h:4,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/Tensor.h:2,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/Context.h:4,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/ATen.h:5,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:4,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/extension.h:4,
from csrc/flatten_unflatten.cpp:1:
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/c10/core/TensorTypeIdRegistration.h:50:16: error: 'mutex' in namespace 'std' does not name a type
mutable std::mutex mutex
;
^
In file included from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/c10/core/ScalarType.h:6:0,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/c10/core/Scalar.h:9,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/Tensor.h:7,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/Tensor.h:2,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/Context.h:4,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/ATen.h:5,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:4,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/extension.h:4,
from csrc/flatten_unflatten.cpp:1:
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/c10/util/typeid.h:596:59: error: 'mutex' is not a member of 'std'
CAFFE_DECLARE_PREALLOCATED_KNOWN_TYPE(17, std::unique_ptrstd::mutex)
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/c10/util/typeid.h:552:56: note: in definition of macro 'CAFFE_DECLARE_PREALLOCATED_KNOWN_TYPE'
inline C10_EXPORT TypeIdentifier TypeIdentifier::Get() {
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/c10/util/typeid.h:596:59: error: 'mutex' is not a member of 'std'
CAFFE_DECLARE_PREALLOCATED_KNOWN_TYPE(17, std::unique_ptrstd::mutex)
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/c10/util/typeid.h:552:56: note: in definition of macro 'CAFFE_DECLARE_PREALLOCATED_KNOWN_TYPE'
inline C10_EXPORT TypeIdentifier TypeIdentifier::Get() {
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/c10/util/typeid.h:596:69: error: template argument 1 is invalid
CAFFE_DECLARE_PREALLOCATED_KNOWN_TYPE(17, std::unique_ptrstd::mutex)
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/c10/util/typeid.h:552:56: note: in definition of macro 'CAFFE_DECLARE_PREALLOCATED_KNOWN_TYPE'
inline C10_EXPORT TypeIdentifier TypeIdentifier::Get() {
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/c10/util/typeid.h:596:69: error: template argument 2 is invalid
CAFFE_DECLARE_PREALLOCATED_KNOWN_TYPE(17, std::unique_ptrstd::mutex)
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/c10/util/typeid.h:552:56: note: in definition of macro 'CAFFE_DECLARE_PREALLOCATED_KNOWN_TYPE'
inline C10_EXPORT TypeIdentifier TypeIdentifier::Get() {
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/c10/util/typeid.h:552:36: error: template-id 'Get< >' for 'caffe2::TypeIdentifier caffe2::TypeIdentifier::Get()' does not match any template declaration
inline C10_EXPORT TypeIdentifier TypeIdentifier::Get() {
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/c10/util/typeid.h:596:1: note: in expansion of macro 'CAFFE_DECLARE_PREALLOCATED_KNOWN_TYPE'
CAFFE_DECLARE_PREALLOCATED_KNOWN_TYPE(17, std::unique_ptrstd::mutex)
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/c10/util/typeid.h:596:59: error: 'mutex' is not a member of 'std'
CAFFE_DECLARE_PREALLOCATED_KNOWN_TYPE(17, std::unique_ptrstd::mutex)
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/c10/util/typeid.h:562:35: note: in definition of macro 'CAFFE_DECLARE_PREALLOCATED_KNOWN_TYPE'
TypeMeta::typeMetaDataInstance() noexcept {
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/c10/util/typeid.h:596:59: error: 'mutex' is not a member of 'std'
CAFFE_DECLARE_PREALLOCATED_KNOWN_TYPE(17, std::unique_ptrstd::mutex)
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/c10/util/typeid.h:562:35: note: in definition of macro 'CAFFE_DECLARE_PREALLOCATED_KNOWN_TYPE'
TypeMeta::typeMetaDataInstance() noexcept {
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/c10/util/typeid.h:596:69: error: template argument 1 is invalid
CAFFE_DECLARE_PREALLOCATED_KNOWN_TYPE(17, std::unique_ptrstd::mutex)
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/c10/util/typeid.h:562:35: note: in definition of macro 'CAFFE_DECLARE_PREALLOCATED_KNOWN_TYPE'
TypeMeta::typeMetaDataInstance() noexcept {
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/c10/util/typeid.h:596:69: error: template argument 2 is invalid
CAFFE_DECLARE_PREALLOCATED_KNOWN_TYPE(17, std::unique_ptrstd::mutex)
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/c10/util/typeid.h:562:35: note: in definition of macro 'CAFFE_DECLARE_PREALLOCATED_KNOWN_TYPE'
TypeMeta::typeMetaDataInstance() noexcept {
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/c10/util/typeid.h:562:3: error: template-id 'typeMetaDataInstance< >' for 'const caffe2::detail::TypeMetaData* caffe2::TypeMeta::typeMetaDataInstance()' does not match any template declaration
TypeMeta::typeMetaDataInstance() noexcept {
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/c10/util/typeid.h:596:1: note: in expansion of macro 'CAFFE_DECLARE_PREALLOCATED_KNOWN_TYPE'
CAFFE_DECLARE_PREALLOCATED_KNOWN_TYPE(17, std::unique_ptrstd::mutex)
^
In file included from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/c10/util/Flags.h:36:0,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/c10/core/TensorImpl.h:17,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/Tensor.h:11,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/Tensor.h:2,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/Context.h:4,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/ATen.h:5,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:4,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/extension.h:4,
from csrc/flatten_unflatten.cpp:1:
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/c10/util/Registry.h:157:8: error: 'mutex' in namespace 'std' does not name a type
std::mutex register_mutex
;
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/c10/util/Registry.h: In member function 'void c10::Registry<SrcType, ObjectPtrType, Args>::Register(const SrcType&, c10::Registry<SrcType, ObjectPtrType, Args>::Creator, c10::RegistryPriority)':
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/c10/util/Registry.h:64:21: error: 'mutex' is not a member of 'std'
std::lock_guardstd::mutex lock(register_mutex
);
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/c10/util/Registry.h:64:21: error: 'mutex' is not a member of 'std'
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/c10/util/Registry.h:64:31: error: template argument 1 is invalid
std::lock_guardstd::mutex lock(register_mutex
);
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/c10/util/Registry.h:64:37: error: invalid type in declaration before '(' token
std::lock_guardstd::mutex lock(register_mutex);
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/c10/util/Registry.h:64:38: error: 'register_mutex' was not declared in this scope
std::lock_guardstd::mutex lock(register_mutex);
^
In file included from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/Tensor.h:16:0,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/Tensor.h:2,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/Context.h:4,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/ATen.h:5,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:4,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/extension.h:4,
from csrc/flatten_unflatten.cpp:1:
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/LegacyTypeDispatch.h: In member function 'void at::LegacyTypeDispatch::initForBackend(c10::Backend)':
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/LegacyTypeDispatch.h:23:17: error: 'once_flag' in namespace 'std' does not name a type
static std::once_flag cpu_once;
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/LegacyTypeDispatch.h:24:17: error: 'once_flag' in namespace 'std' does not name a type
static std::once_flag cuda_once;
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/LegacyTypeDispatch.h:26:7: error: 'call_once' is not a member of 'std'
std::call_once(cpu_once, [] {
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/LegacyTypeDispatch.h:26:22: error: 'cpu_once' was not declared in this scope
std::call_once(cpu_once, [] {
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/LegacyTypeDispatch.h:30:7: error: 'call_once' is not a member of 'std'
std::call_once(cuda_once, [] {
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/LegacyTypeDispatch.h:30:22: error: 'cuda_once' was not declared in this scope
std::call_once(cuda_once, [] {
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/LegacyTypeDispatch.h:34:7: error: 'call_once' is not a member of 'std'
std::call_once(cuda_once, [] {
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/LegacyTypeDispatch.h:34:22: error: 'cuda_once' was not declared in this scope
std::call_once(cuda_once, [] {
^
In file included from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/DeprecatedTypeProperties.h:9:0,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/TensorMethods.h:9,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/Tensor.h:815,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/Tensor.h:2,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/Context.h:4,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/ATen.h:5,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:4,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/extension.h:4,
from csrc/flatten_unflatten.cpp:1:
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/Generator.h: At global scope:
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/Generator.h:75:8: error: 'mutex' in namespace 'std' does not name a type
std::mutex mutex;
^
In file included from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/TensorMethods.h:10:0,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/Tensor.h:815,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/Tensor.h:2,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/Context.h:4,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/ATen.h:5,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:4,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/extension.h:4,
from csrc/flatten_unflatten.cpp:1:
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/ATenDispatch.h:104:8: error: 'mutex' in namespace 'std' does not name a type
std::mutex mutex;
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/ATenDispatch.h: In member function 'at::ATenDispatch& at::ATenDispatch::registerOp(c10::Backend, const char*, FuncType*)':
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/ATenDispatch.h:77:21: error: 'mutex' is not a member of 'std'
std::lock_guardstd::mutex lock(mutex);
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/ATenDispatch.h:77:21: error: 'mutex' is not a member of 'std'
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/ATenDispatch.h:77:31: error: template argument 1 is invalid
std::lock_guardstd::mutex lock(mutex_);
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/ATenDispatch.h:77:37: error: invalid type in declaration before '(' token
std::lock_guardstd::mutex lock(mutex_);
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/ATenDispatch.h:77:38: error: 'mutex_' was not declared in this scope
std::lock_guardstd::mutex lock(mutex_);
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/ATenDispatch.h: In member function 'at::ATenDispatch& at::ATenDispatch::registerVariableOp(const char*, FuncType*)':
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/ATenDispatch.h:87:21: error: 'mutex' is not a member of 'std'
std::lock_guardstd::mutex lock(mutex_);
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/ATenDispatch.h:87:21: error: 'mutex' is not a member of 'std'
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/ATenDispatch.h:87:31: error: template argument 1 is invalid
std::lock_guardstd::mutex lock(mutex_);
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/ATenDispatch.h:87:37: error: invalid type in declaration before '(' token
std::lock_guardstd::mutex lock(mutex_);
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/ATenDispatch.h:87:38: error: 'mutex_' was not declared in this scope
std::lock_guardstd::mutex lock(mutex_);
^
In file included from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/ATen.h:5:0,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:4,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/extension.h:4,
from csrc/flatten_unflatten.cpp:1:
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/Context.h: At global scope:
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/Context.h:114:8: error: 'once_flag' in namespace 'std' does not name a type
std::once_flag thc_init;
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/Context.h:115:8: error: 'once_flag' in namespace 'std' does not name a type
std::once_flag thh_init;
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/Context.h: In member function 'THCState* at::Context::lazyInitCUDA()':
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/Context.h:69:5: error: 'call_once' is not a member of 'std'
std::call_once(thc_init,[&] {
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/Context.h:69:20: error: 'thc_init' was not declared in this scope
std::call_once(thc_init,[&] {
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/Context.h: In member function 'THHState* at::Context::lazyInitHIP()':
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/Context.h:75:5: error: 'call_once' is not a member of 'std'
std::call_once(thh_init,[&] {
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/Context.h:75:20: error: 'thh_init' was not declared in this scope
std::call_once(thh_init,[&] {
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/Context.h: In function 'void at::manual_seed(uint64_t)':
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/Context.h:207:21: error: 'mutex' is not a member of 'std'
std::lock_guardstd::mutex lock(gen.mutex_);
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/Context.h:207:21: error: 'mutex' is not a member of 'std'
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/Context.h:207:31: error: template argument 1 is invalid
std::lock_guardstd::mutex lock(gen.mutex_);
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/Context.h:207:37: error: invalid type in declaration before '(' token
std::lock_guardstd::mutex lock(gen.mutex_);
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/Context.h:207:42: error: 'struct at::Generator' has no member named 'mutex_'
std::lock_guardstd::mutex lock(gen.mutex_);
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/Context.h:207:33: warning: unused variable 'lock' [-Wunused-variable]
std::lock_guardstd::mutex lock(gen.mutex_);
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/Context.h:218:25: error: 'mutex' is not a member of 'std'
std::lock_guardstd::mutex lock(cuda_gen.mutex_);
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/Context.h:218:25: error: 'mutex' is not a member of 'std'
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/Context.h:218:35: error: template argument 1 is invalid
std::lock_guardstd::mutex lock(cuda_gen.mutex_);
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/Context.h:218:41: error: invalid type in declaration before '(' token
std::lock_guardstd::mutex lock(cuda_gen.mutex_);
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/Context.h:218:51: error: 'struct at::Generator' has no member named 'mutex_'
std::lock_guardstd::mutex lock(cuda_gen.mutex_);
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/Context.h:218:37: warning: unused variable 'lock' [-Wunused-variable]
std::lock_guardstd::mutex lock(cuda_gen.mutex_);
^
In file included from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/autograd/generated/variable_factories.h:8:0,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:7,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:4,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/extension.h:4,
from csrc/flatten_unflatten.cpp:1:
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/autograd/variable.h: At global scope:
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/autograd/variable.h:356:8: error: 'mutex' in namespace 'std' does not name a type
std::mutex mutex_;
^
In file included from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/ivalue.h:569:0,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/stack.h:3,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/jit/tracer.h:3,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/autograd/generated/variable_factories.h:9,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:7,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:4,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/extension.h:4,
from csrc/flatten_unflatten.cpp:1:
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/ivalue_inl.h:260:8: error: 'mutex' in namespace 'std' does not name a type
std::mutex mutex_;
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/ivalue_inl.h:262:8: error: 'condition_variable' in namespace 'std' does not name a type
std::condition_variable finished_cv_;
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/ivalue_inl.h: In member function 'void c10::ivalue::Future::wait()':
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/ivalue_inl.h:180:22: error: 'mutex' is not a member of 'std'
std::unique_lockstd::mutex lock(mutex_);
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/ivalue_inl.h:180:22: error: 'mutex' is not a member of 'std'
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/ivalue_inl.h:180:32: error: template argument 1 is invalid
std::unique_lockstd::mutex lock(mutex_);
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/ivalue_inl.h:180:38: error: invalid type in declaration before '(' token
std::unique_lockstd::mutex lock(mutex_);
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/ivalue_inl.h:180:39: error: 'mutex_' was not declared in this scope
std::unique_lockstd::mutex lock(mutex_);
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/ivalue_inl.h:182:7: error: 'finished_cv_' was not declared in this scope
finished_cv_.wait(lock);
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/ivalue_inl.h: In member function 'void c10::ivalue::Future::markCompleted(c10::IValue)':
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/ivalue_inl.h:190:22: error: 'mutex' is not a member of 'std'
std::unique_lockstd::mutex lock(mutex_);
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/ivalue_inl.h:190:22: error: 'mutex' is not a member of 'std'
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/ivalue_inl.h:190:32: error: template argument 1 is invalid
std::unique_lockstd::mutex lock(mutex_);
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/ivalue_inl.h:190:38: error: invalid type in declaration before '(' token
std::unique_lockstd::mutex lock(mutex_);
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/ivalue_inl.h:190:39: error: 'mutex_' was not declared in this scope
std::unique_lockstd::mutex lock(mutex_);
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/ivalue_inl.h:196:5: error: 'finished_cv_' was not declared in this scope
finished_cv_.notify_all();
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/ivalue_inl.h:190:34: warning: unused variable 'lock' [-Wunused-variable]
std::unique_lockstd::mutex lock(mutex_);
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/ivalue_inl.h: In member function 'void c10::ivalue::Future::markCompleted(c10::ivalue::Future::FutureError&&)':
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/ivalue_inl.h:204:22: error: 'mutex' is not a member of 'std'
std::unique_lockstd::mutex lock(mutex_);
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/ivalue_inl.h:204:22: error: 'mutex' is not a member of 'std'
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/ivalue_inl.h:204:32: error: template argument 1 is invalid
std::unique_lockstd::mutex lock(mutex_);
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/ivalue_inl.h:204:38: error: invalid type in declaration before '(' token
std::unique_lockstd::mutex lock(mutex_);
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/ivalue_inl.h:204:39: error: 'mutex_' was not declared in this scope
std::unique_lockstd::mutex lock(mutex_);
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/ivalue_inl.h:211:5: error: 'finished_cv_' was not declared in this scope
finished_cv_.notify_all();
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/ivalue_inl.h:204:34: warning: unused variable 'lock' [-Wunused-variable]
std::unique_lockstd::mutex lock(mutex_);
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/ivalue_inl.h: In member function 'c10::IValue c10::ivalue::Future::value()':
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/ivalue_inl.h:216:22: error: 'mutex' is not a member of 'std'
std::unique_lockstd::mutex lock(mutex_);
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/ivalue_inl.h:216:22: error: 'mutex' is not a member of 'std'
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/ivalue_inl.h:216:32: error: template argument 1 is invalid
std::unique_lockstd::mutex lock(mutex_);
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/ivalue_inl.h:216:38: error: invalid type in declaration before '(' token
std::unique_lockstd::mutex lock(mutex_);
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/ivalue_inl.h:216:39: error: 'mutex_' was not declared in this scope
std::unique_lockstd::mutex lock(mutex_);
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/ivalue_inl.h:216:34: warning: unused variable 'lock' [-Wunused-variable]
std::unique_lockstd::mutex lock(mutex_);
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/ivalue_inl.h: In member function 'void c10::ivalue::Future::addCallback(std::function<void()>)':
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/ivalue_inl.h:231:22: error: 'mutex' is not a member of 'std'
std::unique_lockstd::mutex lock(mutex_);
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/ivalue_inl.h:231:22: error: 'mutex' is not a member of 'std'
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/ivalue_inl.h:231:32: error: template argument 1 is invalid
std::unique_lockstd::mutex lock(mutex_);
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/ivalue_inl.h:231:38: error: invalid type in declaration before '(' token
std::unique_lockstd::mutex lock(mutex_);
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/ivalue_inl.h:231:39: error: 'mutex_' was not declared in this scope
std::unique_lockstd::mutex lock(mutex_);
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/ATen/core/ivalue_inl.h:233:12: error: request for member 'unlock' in 'lock', which is of non-class type 'int'
lock.unlock();
^
In file included from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/detail/data_shuttle.h:3:0,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:4,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:4,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/extension.h:4,
from csrc/flatten_unflatten.cpp:1:
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/detail/queue.h: At global scope:
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/detail/queue.h:79:8: error: 'mutex' in namespace 'std' does not name a type
std::mutex mutex_;
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/detail/queue.h:80:8: error: 'condition_variable' in namespace 'std' does not name a type
std::condition_variable cv_;
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/detail/queue.h: In member function 'void torch::data::detail::Queue::push(T)':
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/detail/queue.h:33:23: error: 'mutex' is not a member of 'std'
std::lock_guardstd::mutex lock(mutex_);
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/detail/queue.h:33:23: error: 'mutex' is not a member of 'std'
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/detail/queue.h:33:33: error: template argument 1 is invalid
std::lock_guardstd::mutex lock(mutex_);
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/detail/queue.h:33:39: error: invalid type in declaration before '(' token
std::lock_guardstd::mutex lock(mutex_);
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/detail/queue.h:33:40: error: 'mutex_' was not declared in this scope
std::lock_guardstd::mutex lock(mutex_);
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/detail/queue.h:36:5: error: 'cv_' was not declared in this scope
cv_.notify_one();
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/detail/queue.h: In member function 'T torch::data::detail::Queue::pop(c10::optional<std::chrono::duration<long int, std::ratio<1l, 1000l> > >)':
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/detail/queue.h:44:22: error: 'mutex' is not a member of 'std'
std::unique_lockstd::mutex lock(mutex_);
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/detail/queue.h:44:22: error: 'mutex' is not a member of 'std'
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/detail/queue.h:44:32: error: template argument 1 is invalid
std::unique_lockstd::mutex lock(mutex_);
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/detail/queue.h:44:38: error: invalid type in declaration before '(' token
std::unique_lockstd::mutex lock(mutex_);
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/detail/queue.h:44:39: error: 'mutex_' was not declared in this scope
std::unique_lockstd::mutex lock(mutex_);
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/detail/queue.h:46:12: error: 'cv_' was not declared in this scope
if (!cv_.wait_for(
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/detail/queue.h:55:7: error: 'cv_' was not declared in this scope
cv_.wait(lock, [this] { return !this->queue_.empty(); });
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/detail/queue.h:60:10: error: request for member 'unlock' in 'lock', which is of non-class type 'int'
lock.unlock();
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/detail/queue.h: In member function 'size_t torch::data::detail::Queue::clear()':
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/detail/queue.h:69:21: error: 'mutex' is not a member of 'std'
std::lock_guardstd::mutex lock(this->mutex_);
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/detail/queue.h:69:21: error: 'mutex' is not a member of 'std'
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/detail/queue.h:69:31: error: template argument 1 is invalid
std::lock_guardstd::mutex lock(this->mutex_);
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/detail/queue.h:69:37: error: invalid type in declaration before '(' token
std::lock_guardstd::mutex lock(this->mutex_);
^
In file included from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3:0,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:4,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/extension.h:4,
from csrc/flatten_unflatten.cpp:1:
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h: At global scope:
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:234:15: error: 'thread' is not a member of 'std'
std::vectorstd::thread workers_;
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:234:15: error: 'thread' is not a member of 'std'
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:234:26: error: template argument 1 is invalid
std::vectorstd::thread workers_;
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:234:26: error: template argument 2 is invalid
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h: In member function 'void torch::data::DataLoaderBase<Dataset, Batch, BatchRequest>::join()':
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:88:25: error: there are no arguments to 'begin' that depend on a template parameter, so a declaration of 'begin' must be available [-fpermissive]
for (auto& worker : workers_) {
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:88:25: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:88:25: error: there are no arguments to 'end' that depend on a template parameter, so a declaration of 'end' must be available [-fpermissive]
In file included from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/jit/script/compilation_unit.h:3:0,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/jit/script/module.h:14,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/serialize/input-archive.h:7,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/serialize/archive.h:3,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/samplers/serialize.h:4,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/samplers.h:8,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets/chunk.h:6,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets.h:4,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data.h:4,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:4,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/extension.h:4,
from csrc/flatten_unflatten.cpp:1:
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/jit/function.h: At global scope:
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/jit/function.h:127:8: error: 'once_flag' in namespace 'std' does not name a type
std::once_flag executor_init_;
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/jit/function.h: In member function 'torch::jit::GraphExecutor& torch::jit::Function::get_executor()':
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/jit/function.h:97:5: error: 'call_once' is not a member of 'std'
std::call_once(executor_init_, [&] {
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/jit/function.h:97:20: error: 'executor_init_' was not declared in this scope
std::call_once(executor_init_, [&] {
^
In file included from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets.h:4:0,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data.h:4,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:4,
from /home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/extension.h:4,
from csrc/flatten_unflatten.cpp:1:
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets/chunk.h: At global scope:
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets/chunk.h:224:8: error: 'mutex' in namespace 'std' does not name a type
std::mutex queue_mutex_;
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets/chunk.h:226:8: error: 'condition_variable' in namespace 'std' does not name a type
std::condition_variable cv_read_;
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets/chunk.h:227:8: error: 'condition_variable' in namespace 'std' does not name a type
std::condition_variable cv_write_;
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets/chunk.h: In member function 'torch::data::datasets::detail::BatchDataBuffer<UnwrappedBatch, ExampleSampler>::BatchType torch::data::datasets::detail::BatchDataBuffer<UnwrappedBatch, ExampleSampler>::get_batch()':
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets/chunk.h:64:22: error: 'mutex' is not a member of 'std'
std::unique_lockstd::mutex lock(queue_mutex_);
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets/chunk.h:64:22: error: 'mutex' is not a member of 'std'
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets/chunk.h:64:32: error: template argument 1 is invalid
std::unique_lockstd::mutex lock(queue_mutex_);
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets/chunk.h:64:38: error: invalid type in declaration before '(' token
std::unique_lockstd::mutex lock(queue_mutex_);
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets/chunk.h:64:39: error: 'queue_mutex_' was not declared in this scope
std::unique_lockstd::mutex lock(queue_mutex_);
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets/chunk.h:65:5: error: 'cv_read_' was not declared in this scope
cv_read_.wait(lock, [this] {
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets/chunk.h:85:10: error: request for member 'unlock' in 'lock', which is of non-class type 'int'
lock.unlock();
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets/chunk.h:86:5: error: 'cv_write_' was not declared in this scope
cv_write_.notify_all();
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets/chunk.h: In member function 'void torch::data::datasets::detail::BatchDataBuffer<UnwrappedBatch, ExampleSampler>::add_chunk_data(torch::data::datasets::detail::BatchDataBuffer<UnwrappedBatch, ExampleSampler>::UnwrappedBatchType)':
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets/chunk.h:94:22: error: 'mutex' is not a member of 'std'
std::unique_lockstd::mutex lock(queue_mutex_);
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets/chunk.h:94:22: error: 'mutex' is not a member of 'std'
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets/chunk.h:94:32: error: template argument 1 is invalid
std::unique_lockstd::mutex lock(queue_mutex_);
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets/chunk.h:94:38: error: invalid type in declaration before '(' token
std::unique_lockstd::mutex lock(queue_mutex_);
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets/chunk.h:94:39: error: 'queue_mutex_' was not declared in this scope
std::unique_lockstd::mutex lock(queue_mutex_);
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets/chunk.h:95:5: error: 'cv_write_' was not declared in this scope
cv_write_.wait(lock, [this] {
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets/chunk.h:148:10: error: request for member 'unlock' in 'lock', which is of non-class type 'int'
lock.unlock();
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets/chunk.h:149:5: error: 'cv_read_' was not declared in this scope
cv_read_.notify_all();
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets/chunk.h: In member function 'void torch::data::datasets::detail::BatchDataBuffer<UnwrappedBatch, ExampleSampler>::add_chunk_data(std::exception_ptr::exception_ptr)':
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets/chunk.h:155:22: error: 'mutex' is not a member of 'std'
std::unique_lockstd::mutex lock(queue_mutex
);
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets/chunk.h:155:22: error: 'mutex' is not a member of 'std'
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets/chunk.h:155:32: error: template argument 1 is invalid
std::unique_lockstd::mutex lock(queue_mutex
);
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets/chunk.h:155:38: error: invalid type in declaration before '(' token
std::unique_lockstd::mutex lock(queue_mutex_);
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets/chunk.h:155:39: error: 'queue_mutex_' was not declared in this scope
std::unique_lockstd::mutex lock(queue_mutex_);
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets/chunk.h:156:5: error: 'cv_write_' was not declared in this scope
cv_write_.wait(lock, [this] {
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets/chunk.h:170:10: error: request for member 'unlock' in 'lock', which is of non-class type 'int'
lock.unlock();
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets/chunk.h:171:5: error: 'cv_read_' was not declared in this scope
cv_read_.notify_all();
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets/chunk.h: In member function 'void torch::data::datasets::detail::BatchDataBuffer<UnwrappedBatch, ExampleSampler>::stop()':
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets/chunk.h:187:23: error: 'mutex' is not a member of 'std'
std::lock_guardstd::mutex lock(queue_mutex_);
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets/chunk.h:187:23: error: 'mutex' is not a member of 'std'
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets/chunk.h:187:33: error: template argument 1 is invalid
std::lock_guardstd::mutex lock(queue_mutex_);
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets/chunk.h:187:39: error: invalid type in declaration before '(' token
std::lock_guardstd::mutex lock(queue_mutex_);
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets/chunk.h:187:40: error: 'queue_mutex_' was not declared in this scope
std::lock_guardstd::mutex lock(queue_mutex_);
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets/chunk.h:192:5: error: 'cv_write_' was not declared in this scope
cv_write_.notify_all();
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets/chunk.h:194:5: error: 'cv_read_' was not declared in this scope
cv_read_.notify_all();
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets/chunk.h: At global scope:
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets/chunk.h:487:15: error: 'thread' is not a member of 'std'
std::vectorstd::thread preload_threads_;
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets/chunk.h:487:15: error: 'thread' is not a member of 'std'
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets/chunk.h:487:26: error: template argument 1 is invalid
std::vectorstd::thread preload_threads_;
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets/chunk.h:487:26: error: template argument 2 is invalid
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets/chunk.h:512:16: error: 'mutex' in namespace 'std' does not name a type
mutable std::mutex chunk_index_guard_;
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets/chunk.h: In member function 'void torch::data::datasets::ChunkDataset<ChunkReader, ChunkSampler, ExampleSampler>::reset()':
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets/chunk.h:374:22: error: request for member 'clear' in '((torch::data::datasets::ChunkDataset<ChunkReader, ChunkSampler, ExampleSampler>)this)->torch::data::datasets::ChunkDataset<ChunkReader, ChunkSampler, ExampleSampler>::preload_threads_', which is of non-class type 'int'
preload_threads_.clear();
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets/chunk.h:396:24: error: request for member 'emplace_back' in '((torch::data::datasets::ChunkDataset<ChunkReader, ChunkSampler, ExampleSampler>
)this)->torch::data::datasets::ChunkDataset<ChunkReader, ChunkSampler, ExampleSampler>::preload_threads_', which is of non-class type 'int'
preload_threads_.emplace_back(this, i { this->preloader(i); });
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets/chunk.h: In member function 'void torch::data::datasets::ChunkDataset<ChunkReader, ChunkSampler, ExampleSampler>::save(torch::serialize::OutputArchive&) const':
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets/chunk.h:412:21: error: 'mutex' is not a member of 'std'
std::lock_guardstd::mutex lock(chunk_index_guard_);
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets/chunk.h:412:21: error: 'mutex' is not a member of 'std'
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets/chunk.h:412:31: error: template argument 1 is invalid
std::lock_guardstd::mutex lock(chunk_index_guard_);
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets/chunk.h:412:37: error: invalid type in declaration before '(' token
std::lock_guardstd::mutex lock(chunk_index_guard_);
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets/chunk.h:412:38: error: 'chunk_index_guard_' was not declared in this scope
std::lock_guardstd::mutex lock(chunk_index_guard_);
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets/chunk.h: In member function 'void torch::data::datasets::ChunkDataset<ChunkReader, ChunkSampler, ExampleSampler>::load(torch::serialize::InputArchive&)':
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets/chunk.h:417:21: error: 'mutex' is not a member of 'std'
std::lock_guardstd::mutex lock(chunk_index_guard_);
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets/chunk.h:417:21: error: 'mutex' is not a member of 'std'
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets/chunk.h:417:31: error: template argument 1 is invalid
std::lock_guardstd::mutex lock(chunk_index_guard_);
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets/chunk.h:417:37: error: invalid type in declaration before '(' token
std::lock_guardstd::mutex lock(chunk_index_guard_);
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets/chunk.h:417:38: error: 'chunk_index_guard_' was not declared in this scope
std::lock_guardstd::mutex lock(chunk_index_guard_);
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets/chunk.h: In member function 'void torch::data::datasets::ChunkDataset<ChunkReader, ChunkSampler, ExampleSampler>::preloader(size_t)':
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets/chunk.h:429:27: error: 'mutex' is not a member of 'std'
std::lock_guardstd::mutex lock(chunk_index_guard_);
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets/chunk.h:429:27: error: 'mutex' is not a member of 'std'
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets/chunk.h:429:37: error: template argument 1 is invalid
std::lock_guardstd::mutex lock(chunk_index_guard_);
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets/chunk.h:429:43: error: invalid type in declaration before '(' token
std::lock_guardstd::mutex lock(chunk_index_guard_);
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets/chunk.h:429:44: error: 'chunk_index_guard_' was not declared in this scope
std::lock_guardstd::mutex lock(chunk_index_guard_);
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets/chunk.h: In member function 'void torch::data::datasets::ChunkDataset<ChunkReader, ChunkSampler, ExampleSampler>::free_workers()':
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets/chunk.h:464:34: error: there are no arguments to 'begin' that depend on a template parameter, so a declaration of 'begin' must be available [-fpermissive]
for (auto& worker_thread : preload_threads_) {
^
/home/narimene/anaconda3/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets/chunk.h:464:34: error: there are no arguments to 'end' that depend on a template parameter, so a declaration of 'end' must be available [-fpermissive]
error: command 'gcc' failed with exit status 1
`

I dont know how to fix this problem. Thank you for your help in advance

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

1 participant