NVIDIA / apex

A PyTorch Extension: Tools for easy mixed precision and distributed training in Pytorch
BSD 3-Clause "New" or "Revised" License
8.39k stars 1.4k forks source link

An installation problem Cuda11.1 pytorch:1.8.0+cu111 #1136

Open CodingQinghao opened 3 years ago

CodingQinghao commented 3 years ago

python 3.7.11 nvcc: 11.1, V11.1.74 Build cuda_11.1.TC455_06.29069683_0 pytorch:1.8.0+cu111 cudnn:8005 RTX3090

(python37) ldf@ldf-virtual-machine:~/.jupyter/qinghao/PanGu/panguAlpha_pytorch/apex$ pip install -v --disable-pip-version-check --no-cache-dir --global-option="--cpp_ext" --global-option="--cuda_ext" ./ /home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/pip/_internal/commands/install.py:232: UserWarning: Disabling all use of wheels due to the use of --build-option / --global-option / --install-option. cmdoptions.check_install_build_global(options) Using pip 21.1.3 from /home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/pip (python 3.7) Non-user install because site-packages writeable Created temporary directory: /tmp/pip-ephem-wheel-cache-acyf4cju Created temporary directory: /tmp/pip-req-tracker-g3jio7ce Initialized build tracking at /tmp/pip-req-tracker-g3jio7ce Created build tracker: /tmp/pip-req-tracker-g3jio7ce Entered build tracker: /tmp/pip-req-tracker-g3jio7ce Created temporary directory: /tmp/pip-install-o7l35dfi Processing /home/ldf/.jupyter/qinghao/PanGu/panguAlpha_pytorch/apex Created temporary directory: /tmp/pip-req-build-yrmgdjcg DEPRECATION: A future pip version will change local packages to be built in-place without first copying to a temporary directory. We recommend you use --use-feature=in-tree-build to test your packages with this new behavior before it becomes the default. pip 21.3 will remove support for this functionality. You can find discussion regarding this at https://github.com/pypa/pip/issues/7555. Added file:///home/ldf/.jupyter/qinghao/PanGu/panguAlpha_pytorch/apex to build tracker '/tmp/pip-req-tracker-g3jio7ce' Running setup.py (path:/tmp/pip-req-build-yrmgdjcg/setup.py) egg_info for package from file:///home/ldf/.jupyter/qinghao/PanGu/panguAlpha_pytorch/apex Created temporary directory: /tmp/pip-pip-egg-info-k90g18cg Running command python setup.py egg_info

torch.__version__  = 1.8.0+cu111

running egg_info
creating /tmp/pip-pip-egg-info-k90g18cg/apex.egg-info
writing /tmp/pip-pip-egg-info-k90g18cg/apex.egg-info/PKG-INFO
writing dependency_links to /tmp/pip-pip-egg-info-k90g18cg/apex.egg-info/dependency_links.txt
writing top-level names to /tmp/pip-pip-egg-info-k90g18cg/apex.egg-info/top_level.txt
writing manifest file '/tmp/pip-pip-egg-info-k90g18cg/apex.egg-info/SOURCES.txt'
reading manifest file '/tmp/pip-pip-egg-info-k90g18cg/apex.egg-info/SOURCES.txt'
writing manifest file '/tmp/pip-pip-egg-info-k90g18cg/apex.egg-info/SOURCES.txt'
/tmp/pip-req-build-yrmgdjcg/setup.py:67: UserWarning: Option --pyprof not specified. Not installing PyProf dependencies!
  warnings.warn("Option --pyprof not specified. Not installing PyProf dependencies!")

Source in /tmp/pip-req-build-yrmgdjcg has version 0.1, which satisfies requirement apex==0.1 from file:///home/ldf/.jupyter/qinghao/PanGu/panguAlpha_pytorch/apex Removed apex==0.1 from file:///home/ldf/.jupyter/qinghao/PanGu/panguAlpha_pytorch/apex from build tracker '/tmp/pip-req-tracker-g3jio7ce' Created temporary directory: /tmp/pip-unpack-beggjimo Skipping wheel build for apex, due to binaries being disabled for it. Installing collected packages: apex Created temporary directory: /tmp/pip-record-wrkwo_pg Running command /home/ldf/anaconda3/envs/python37/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-yrmgdjcg/setup.py'"'"'; file='"'"'/tmp/pip-req-build-yrmgdjcg/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' --cpp_ext --cuda_ext install --record /tmp/pip-record-wrkwo_pg/install-record.txt --single-version-externally-managed --compile --install-headers /home/ldf/anaconda3/envs/python37/include/python3.7m/apex

torch.__version__  = 1.8.0+cu111

/tmp/pip-req-build-yrmgdjcg/setup.py:67: UserWarning: Option --pyprof not specified. Not installing PyProf dependencies!
  warnings.warn("Option --pyprof not specified. Not installing PyProf dependencies!")
running install
running build
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/optimizers
copying apex/optimizers/__init__.py -> build/lib.linux-x86_64-3.7/apex/optimizers
copying apex/optimizers/fused_adagrad.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_sgd.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_novograd.py -> build/lib.linux-x86_64-3.7/apex/optimizers
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/RNN
copying apex/RNN/__init__.py -> build/lib.linux-x86_64-3.7/apex/RNN
copying apex/RNN/models.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/RNNBackend.py -> build/lib.linux-x86_64-3.7/apex/RNN
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/amp
copying apex/amp/_amp_state.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/wrap.py -> 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/_process_optimizer.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/handle.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/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/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/_initialize.py -> build/lib.linux-x86_64-3.7/apex/amp
copying apex/amp/frontend.py -> build/lib.linux-x86_64-3.7/apex/amp
creating 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/LARC.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/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_kernel.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/distributed.py -> build/lib.linux-x86_64-3.7/apex/parallel
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/reparameterization
copying apex/reparameterization/weight_norm.py -> 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
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/mlp
copying apex/mlp/__init__.py -> build/lib.linux-x86_64-3.7/apex/mlp
copying apex/mlp/mlp.py -> build/lib.linux-x86_64-3.7/apex/mlp
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/torch_overrides.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
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/distributed_fused_adam.py -> build/lib.linux-x86_64-3.7/apex/contrib/optimizers
copying apex/contrib/optimizers/distributed_fused_lamb.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_lamb.py -> build/lib.linux-x86_64-3.7/apex/contrib/optimizers
copying apex/contrib/optimizers/distributed_fused_adam_v3.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
copying apex/contrib/optimizers/fused_adam.py -> build/lib.linux-x86_64-3.7/apex/contrib/optimizers
copying apex/contrib/optimizers/distributed_fused_adam_v2.py -> build/lib.linux-x86_64-3.7/apex/contrib/optimizers
creating build/lib.linux-x86_64-3.7/apex/contrib/bottleneck
copying apex/contrib/bottleneck/__init__.py -> build/lib.linux-x86_64-3.7/apex/contrib/bottleneck
copying apex/contrib/bottleneck/bottleneck.py -> build/lib.linux-x86_64-3.7/apex/contrib/bottleneck
copying apex/contrib/bottleneck/test.py -> build/lib.linux-x86_64-3.7/apex/contrib/bottleneck
creating build/lib.linux-x86_64-3.7/apex/contrib/transducer
copying apex/contrib/transducer/__init__.py -> build/lib.linux-x86_64-3.7/apex/contrib/transducer
copying apex/contrib/transducer/transducer.py -> build/lib.linux-x86_64-3.7/apex/contrib/transducer
creating build/lib.linux-x86_64-3.7/apex/contrib/sparsity
copying apex/contrib/sparsity/__init__.py -> build/lib.linux-x86_64-3.7/apex/contrib/sparsity
copying apex/contrib/sparsity/sparse_masklib.py -> build/lib.linux-x86_64-3.7/apex/contrib/sparsity
copying apex/contrib/sparsity/asp.py -> build/lib.linux-x86_64-3.7/apex/contrib/sparsity
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/fmha
copying apex/contrib/fmha/__init__.py -> build/lib.linux-x86_64-3.7/apex/contrib/fmha
copying apex/contrib/fmha/fmha.py -> build/lib.linux-x86_64-3.7/apex/contrib/fmha
creating build/lib.linux-x86_64-3.7/apex/contrib/layer_norm
copying apex/contrib/layer_norm/__init__.py -> build/lib.linux-x86_64-3.7/apex/contrib/layer_norm
copying apex/contrib/layer_norm/layer_norm.py -> build/lib.linux-x86_64-3.7/apex/contrib/layer_norm
creating 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/__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/fast_encdec_multihead_attn_norm_add_func.py -> build/lib.linux-x86_64-3.7/apex/contrib/multihead_attn
copying apex/contrib/multihead_attn/mask_softmax_dropout_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/self_multihead_attn_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/encdec_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
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/nvvp.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/parse.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/__main__.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/reduction.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/pooling.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/__init__.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/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/data.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/linear.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/conv.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/optim.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/convert.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/__main__.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/index_slice_join_mutate.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
copying apex/pyprof/prof/pointwise.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/recurrentCell.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
running build_ext
building 'apex_C' extension
creating /tmp/pip-req-build-yrmgdjcg/build/temp.linux-x86_64-3.7
creating /tmp/pip-req-build-yrmgdjcg/build/temp.linux-x86_64-3.7/csrc
Emitting ninja build file /tmp/pip-req-build-yrmgdjcg/build/temp.linux-x86_64-3.7/build.ninja...
Compiling objects...
Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
[1/1] c++ -MMD -MF /tmp/pip-req-build-yrmgdjcg/build/temp.linux-x86_64-3.7/csrc/flatten_unflatten.o.d -pthread -B /home/ldf/anaconda3/envs/python37/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/TH -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/THC -I/home/ldf/anaconda3/envs/python37/include/python3.7m -c -c /tmp/pip-req-build-yrmgdjcg/csrc/flatten_unflatten.cpp -o /tmp/pip-req-build-yrmgdjcg/build/temp.linux-x86_64-3.7/csrc/flatten_unflatten.o -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=apex_C -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
In file included from /home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/ATen/Parallel.h:140:0,
                 from /home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/utils.h:3,
                 from /home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:5,
                 from /home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:3,
                 from /home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:13,
                 from /home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/torch/extension.h:4,
                 from /tmp/pip-req-build-yrmgdjcg/csrc/flatten_unflatten.cpp:1:
/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/ATen/ParallelOpenMP.h:83:0: warning: ignoring #pragma omp parallel [-Wunknown-pragmas]
 #pragma omp parallel for if ((end - begin) >= grain_size)

In file included from /tmp/pip-req-build-yrmgdjcg/csrc/flatten_unflatten.cpp:2:0:
/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/torch/csrc/utils/tensor_flatten.h: In member function ‘at::DeprecatedTypeProperties& torch::utils::TensorGroup::type()’:
/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/torch/csrc/utils/tensor_flatten.h:44:28: warning: ‘at::DeprecatedTypeProperties& at::Tensor::type() const’ is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations]
     return tensors[0].type();
                            ^
In file included from /home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/ATen/Tensor.h:3:0,
                 from /home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/ATen/Context.h:4,
                 from /home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/ATen/ATen.h:9,
                 from /home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
                 from /home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
                 from /home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
                 from /home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
                 from /home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
                 from /home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
                 from /home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
                 from /home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/torch/extension.h:4,
                 from /tmp/pip-req-build-yrmgdjcg/csrc/flatten_unflatten.cpp:1:
/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:303:30: note: declared here
   DeprecatedTypeProperties & type() const {
                              ^~~~
g++ -pthread -shared -B /home/ldf/anaconda3/envs/python37/compiler_compat -L/home/ldf/anaconda3/envs/python37/lib -Wl,-rpath=/home/ldf/anaconda3/envs/python37/lib -Wl,--no-as-needed -Wl,--sysroot=/ /tmp/pip-req-build-yrmgdjcg/build/temp.linux-x86_64-3.7/csrc/flatten_unflatten.o -L/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/lib -lc10 -ltorch -ltorch_cpu -ltorch_python -o build/lib.linux-x86_64-3.7/apex_C.cpython-37m-x86_64-linux-gnu.so
building 'amp_C' extension
Emitting ninja build file /tmp/pip-req-build-yrmgdjcg/build/temp.linux-x86_64-3.7/build.ninja...
Compiling objects...
Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
[1/11] /usr/local/cuda-11.1/bin/nvcc --generate-dependencies-with-compile --dependency-output /tmp/pip-req-build-yrmgdjcg/build/temp.linux-x86_64-3.7/csrc/multi_tensor_axpby_kernel.o.d -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/TH -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda-11.1/include -I/home/ldf/anaconda3/envs/python37/include/python3.7m -c -c /tmp/pip-req-build-yrmgdjcg/csrc/multi_tensor_axpby_kernel.cu -o /tmp/pip-req-build-yrmgdjcg/build/temp.linux-x86_64-3.7/csrc/multi_tensor_axpby_kernel.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -lineinfo -O3 --use_fast_math -DVERSION_GE_1_1 -DVERSION_GE_1_3 -DVERSION_GE_1_5 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=amp_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14
FAILED: /tmp/pip-req-build-yrmgdjcg/build/temp.linux-x86_64-3.7/csrc/multi_tensor_axpby_kernel.o
/usr/local/cuda-11.1/bin/nvcc --generate-dependencies-with-compile --dependency-output /tmp/pip-req-build-yrmgdjcg/build/temp.linux-x86_64-3.7/csrc/multi_tensor_axpby_kernel.o.d -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/TH -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda-11.1/include -I/home/ldf/anaconda3/envs/python37/include/python3.7m -c -c /tmp/pip-req-build-yrmgdjcg/csrc/multi_tensor_axpby_kernel.cu -o /tmp/pip-req-build-yrmgdjcg/build/temp.linux-x86_64-3.7/csrc/multi_tensor_axpby_kernel.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -lineinfo -O3 --use_fast_math -DVERSION_GE_1_1 -DVERSION_GE_1_3 -DVERSION_GE_1_5 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=amp_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14
/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/ATen/cuda/CUDAContext.h(76): error: identifier "cusolverDnHandle_t" is undefined

1 error detected in the compilation of "/tmp/pip-req-build-yrmgdjcg/csrc/multi_tensor_axpby_kernel.cu".
[2/11] /usr/local/cuda-11.1/bin/nvcc --generate-dependencies-with-compile --dependency-output /tmp/pip-req-build-yrmgdjcg/build/temp.linux-x86_64-3.7/csrc/multi_tensor_lamb_stage_2.o.d -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/TH -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda-11.1/include -I/home/ldf/anaconda3/envs/python37/include/python3.7m -c -c /tmp/pip-req-build-yrmgdjcg/csrc/multi_tensor_lamb_stage_2.cu -o /tmp/pip-req-build-yrmgdjcg/build/temp.linux-x86_64-3.7/csrc/multi_tensor_lamb_stage_2.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -lineinfo -O3 --use_fast_math -DVERSION_GE_1_1 -DVERSION_GE_1_3 -DVERSION_GE_1_5 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=amp_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14
FAILED: /tmp/pip-req-build-yrmgdjcg/build/temp.linux-x86_64-3.7/csrc/multi_tensor_lamb_stage_2.o
/usr/local/cuda-11.1/bin/nvcc --generate-dependencies-with-compile --dependency-output /tmp/pip-req-build-yrmgdjcg/build/temp.linux-x86_64-3.7/csrc/multi_tensor_lamb_stage_2.o.d -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/TH -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda-11.1/include -I/home/ldf/anaconda3/envs/python37/include/python3.7m -c -c /tmp/pip-req-build-yrmgdjcg/csrc/multi_tensor_lamb_stage_2.cu -o /tmp/pip-req-build-yrmgdjcg/build/temp.linux-x86_64-3.7/csrc/multi_tensor_lamb_stage_2.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -lineinfo -O3 --use_fast_math -DVERSION_GE_1_1 -DVERSION_GE_1_3 -DVERSION_GE_1_5 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=amp_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14
/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/ATen/cuda/CUDAContext.h(76): error: identifier "cusolverDnHandle_t" is undefined

1 error detected in the compilation of "/tmp/pip-req-build-yrmgdjcg/csrc/multi_tensor_lamb_stage_2.cu".
[3/11] /usr/local/cuda-11.1/bin/nvcc --generate-dependencies-with-compile --dependency-output /tmp/pip-req-build-yrmgdjcg/build/temp.linux-x86_64-3.7/csrc/multi_tensor_scale_kernel.o.d -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/TH -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda-11.1/include -I/home/ldf/anaconda3/envs/python37/include/python3.7m -c -c /tmp/pip-req-build-yrmgdjcg/csrc/multi_tensor_scale_kernel.cu -o /tmp/pip-req-build-yrmgdjcg/build/temp.linux-x86_64-3.7/csrc/multi_tensor_scale_kernel.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -lineinfo -O3 --use_fast_math -DVERSION_GE_1_1 -DVERSION_GE_1_3 -DVERSION_GE_1_5 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=amp_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14
FAILED: /tmp/pip-req-build-yrmgdjcg/build/temp.linux-x86_64-3.7/csrc/multi_tensor_scale_kernel.o
/usr/local/cuda-11.1/bin/nvcc --generate-dependencies-with-compile --dependency-output /tmp/pip-req-build-yrmgdjcg/build/temp.linux-x86_64-3.7/csrc/multi_tensor_scale_kernel.o.d -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/TH -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda-11.1/include -I/home/ldf/anaconda3/envs/python37/include/python3.7m -c -c /tmp/pip-req-build-yrmgdjcg/csrc/multi_tensor_scale_kernel.cu -o /tmp/pip-req-build-yrmgdjcg/build/temp.linux-x86_64-3.7/csrc/multi_tensor_scale_kernel.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -lineinfo -O3 --use_fast_math -DVERSION_GE_1_1 -DVERSION_GE_1_3 -DVERSION_GE_1_5 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=amp_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14
/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/ATen/cuda/CUDAContext.h(76): error: identifier "cusolverDnHandle_t" is undefined

1 error detected in the compilation of "/tmp/pip-req-build-yrmgdjcg/csrc/multi_tensor_scale_kernel.cu".
[4/11] /usr/local/cuda-11.1/bin/nvcc --generate-dependencies-with-compile --dependency-output /tmp/pip-req-build-yrmgdjcg/build/temp.linux-x86_64-3.7/csrc/multi_tensor_sgd_kernel.o.d -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/TH -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda-11.1/include -I/home/ldf/anaconda3/envs/python37/include/python3.7m -c -c /tmp/pip-req-build-yrmgdjcg/csrc/multi_tensor_sgd_kernel.cu -o /tmp/pip-req-build-yrmgdjcg/build/temp.linux-x86_64-3.7/csrc/multi_tensor_sgd_kernel.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -lineinfo -O3 --use_fast_math -DVERSION_GE_1_1 -DVERSION_GE_1_3 -DVERSION_GE_1_5 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=amp_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14
FAILED: /tmp/pip-req-build-yrmgdjcg/build/temp.linux-x86_64-3.7/csrc/multi_tensor_sgd_kernel.o
/usr/local/cuda-11.1/bin/nvcc --generate-dependencies-with-compile --dependency-output /tmp/pip-req-build-yrmgdjcg/build/temp.linux-x86_64-3.7/csrc/multi_tensor_sgd_kernel.o.d -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/TH -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda-11.1/include -I/home/ldf/anaconda3/envs/python37/include/python3.7m -c -c /tmp/pip-req-build-yrmgdjcg/csrc/multi_tensor_sgd_kernel.cu -o /tmp/pip-req-build-yrmgdjcg/build/temp.linux-x86_64-3.7/csrc/multi_tensor_sgd_kernel.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -lineinfo -O3 --use_fast_math -DVERSION_GE_1_1 -DVERSION_GE_1_3 -DVERSION_GE_1_5 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=amp_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14
/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/ATen/cuda/CUDAContext.h(76): error: identifier "cusolverDnHandle_t" is undefined

1 error detected in the compilation of "/tmp/pip-req-build-yrmgdjcg/csrc/multi_tensor_sgd_kernel.cu".
[5/11] /usr/local/cuda-11.1/bin/nvcc --generate-dependencies-with-compile --dependency-output /tmp/pip-req-build-yrmgdjcg/build/temp.linux-x86_64-3.7/csrc/multi_tensor_l2norm_kernel.o.d -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/TH -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda-11.1/include -I/home/ldf/anaconda3/envs/python37/include/python3.7m -c -c /tmp/pip-req-build-yrmgdjcg/csrc/multi_tensor_l2norm_kernel.cu -o /tmp/pip-req-build-yrmgdjcg/build/temp.linux-x86_64-3.7/csrc/multi_tensor_l2norm_kernel.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -lineinfo -O3 --use_fast_math -DVERSION_GE_1_1 -DVERSION_GE_1_3 -DVERSION_GE_1_5 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=amp_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14
FAILED: /tmp/pip-req-build-yrmgdjcg/build/temp.linux-x86_64-3.7/csrc/multi_tensor_l2norm_kernel.o
/usr/local/cuda-11.1/bin/nvcc --generate-dependencies-with-compile --dependency-output /tmp/pip-req-build-yrmgdjcg/build/temp.linux-x86_64-3.7/csrc/multi_tensor_l2norm_kernel.o.d -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/TH -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda-11.1/include -I/home/ldf/anaconda3/envs/python37/include/python3.7m -c -c /tmp/pip-req-build-yrmgdjcg/csrc/multi_tensor_l2norm_kernel.cu -o /tmp/pip-req-build-yrmgdjcg/build/temp.linux-x86_64-3.7/csrc/multi_tensor_l2norm_kernel.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -lineinfo -O3 --use_fast_math -DVERSION_GE_1_1 -DVERSION_GE_1_3 -DVERSION_GE_1_5 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=amp_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14
/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/ATen/cuda/CUDAContext.h(76): error: identifier "cusolverDnHandle_t" is undefined

1 error detected in the compilation of "/tmp/pip-req-build-yrmgdjcg/csrc/multi_tensor_l2norm_kernel.cu".
[6/11] /usr/local/cuda-11.1/bin/nvcc --generate-dependencies-with-compile --dependency-output /tmp/pip-req-build-yrmgdjcg/build/temp.linux-x86_64-3.7/csrc/multi_tensor_lamb.o.d -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/TH -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda-11.1/include -I/home/ldf/anaconda3/envs/python37/include/python3.7m -c -c /tmp/pip-req-build-yrmgdjcg/csrc/multi_tensor_lamb.cu -o /tmp/pip-req-build-yrmgdjcg/build/temp.linux-x86_64-3.7/csrc/multi_tensor_lamb.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -lineinfo -O3 --use_fast_math -DVERSION_GE_1_1 -DVERSION_GE_1_3 -DVERSION_GE_1_5 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=amp_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14
FAILED: /tmp/pip-req-build-yrmgdjcg/build/temp.linux-x86_64-3.7/csrc/multi_tensor_lamb.o
/usr/local/cuda-11.1/bin/nvcc --generate-dependencies-with-compile --dependency-output /tmp/pip-req-build-yrmgdjcg/build/temp.linux-x86_64-3.7/csrc/multi_tensor_lamb.o.d -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/TH -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda-11.1/include -I/home/ldf/anaconda3/envs/python37/include/python3.7m -c -c /tmp/pip-req-build-yrmgdjcg/csrc/multi_tensor_lamb.cu -o /tmp/pip-req-build-yrmgdjcg/build/temp.linux-x86_64-3.7/csrc/multi_tensor_lamb.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -lineinfo -O3 --use_fast_math -DVERSION_GE_1_1 -DVERSION_GE_1_3 -DVERSION_GE_1_5 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=amp_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14
/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/ATen/cuda/CUDAContext.h(76): error: identifier "cusolverDnHandle_t" is undefined

1 error detected in the compilation of "/tmp/pip-req-build-yrmgdjcg/csrc/multi_tensor_lamb.cu".
[7/11] /usr/local/cuda-11.1/bin/nvcc --generate-dependencies-with-compile --dependency-output /tmp/pip-req-build-yrmgdjcg/build/temp.linux-x86_64-3.7/csrc/multi_tensor_adam.o.d -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/TH -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda-11.1/include -I/home/ldf/anaconda3/envs/python37/include/python3.7m -c -c /tmp/pip-req-build-yrmgdjcg/csrc/multi_tensor_adam.cu -o /tmp/pip-req-build-yrmgdjcg/build/temp.linux-x86_64-3.7/csrc/multi_tensor_adam.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -lineinfo -O3 --use_fast_math -DVERSION_GE_1_1 -DVERSION_GE_1_3 -DVERSION_GE_1_5 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=amp_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14
FAILED: /tmp/pip-req-build-yrmgdjcg/build/temp.linux-x86_64-3.7/csrc/multi_tensor_adam.o
/usr/local/cuda-11.1/bin/nvcc --generate-dependencies-with-compile --dependency-output /tmp/pip-req-build-yrmgdjcg/build/temp.linux-x86_64-3.7/csrc/multi_tensor_adam.o.d -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/TH -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda-11.1/include -I/home/ldf/anaconda3/envs/python37/include/python3.7m -c -c /tmp/pip-req-build-yrmgdjcg/csrc/multi_tensor_adam.cu -o /tmp/pip-req-build-yrmgdjcg/build/temp.linux-x86_64-3.7/csrc/multi_tensor_adam.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -lineinfo -O3 --use_fast_math -DVERSION_GE_1_1 -DVERSION_GE_1_3 -DVERSION_GE_1_5 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=amp_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14
/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/ATen/cuda/CUDAContext.h(76): error: identifier "cusolverDnHandle_t" is undefined

1 error detected in the compilation of "/tmp/pip-req-build-yrmgdjcg/csrc/multi_tensor_adam.cu".
[8/11] /usr/local/cuda-11.1/bin/nvcc --generate-dependencies-with-compile --dependency-output /tmp/pip-req-build-yrmgdjcg/build/temp.linux-x86_64-3.7/csrc/multi_tensor_adagrad.o.d -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/TH -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda-11.1/include -I/home/ldf/anaconda3/envs/python37/include/python3.7m -c -c /tmp/pip-req-build-yrmgdjcg/csrc/multi_tensor_adagrad.cu -o /tmp/pip-req-build-yrmgdjcg/build/temp.linux-x86_64-3.7/csrc/multi_tensor_adagrad.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -lineinfo -O3 --use_fast_math -DVERSION_GE_1_1 -DVERSION_GE_1_3 -DVERSION_GE_1_5 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=amp_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14
FAILED: /tmp/pip-req-build-yrmgdjcg/build/temp.linux-x86_64-3.7/csrc/multi_tensor_adagrad.o
/usr/local/cuda-11.1/bin/nvcc --generate-dependencies-with-compile --dependency-output /tmp/pip-req-build-yrmgdjcg/build/temp.linux-x86_64-3.7/csrc/multi_tensor_adagrad.o.d -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/TH -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda-11.1/include -I/home/ldf/anaconda3/envs/python37/include/python3.7m -c -c /tmp/pip-req-build-yrmgdjcg/csrc/multi_tensor_adagrad.cu -o /tmp/pip-req-build-yrmgdjcg/build/temp.linux-x86_64-3.7/csrc/multi_tensor_adagrad.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -lineinfo -O3 --use_fast_math -DVERSION_GE_1_1 -DVERSION_GE_1_3 -DVERSION_GE_1_5 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=amp_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14
/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/ATen/cuda/CUDAContext.h(76): error: identifier "cusolverDnHandle_t" is undefined

1 error detected in the compilation of "/tmp/pip-req-build-yrmgdjcg/csrc/multi_tensor_adagrad.cu".
[9/11] /usr/local/cuda-11.1/bin/nvcc --generate-dependencies-with-compile --dependency-output /tmp/pip-req-build-yrmgdjcg/build/temp.linux-x86_64-3.7/csrc/multi_tensor_lamb_stage_1.o.d -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/TH -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda-11.1/include -I/home/ldf/anaconda3/envs/python37/include/python3.7m -c -c /tmp/pip-req-build-yrmgdjcg/csrc/multi_tensor_lamb_stage_1.cu -o /tmp/pip-req-build-yrmgdjcg/build/temp.linux-x86_64-3.7/csrc/multi_tensor_lamb_stage_1.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -lineinfo -O3 --use_fast_math -DVERSION_GE_1_1 -DVERSION_GE_1_3 -DVERSION_GE_1_5 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=amp_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14
FAILED: /tmp/pip-req-build-yrmgdjcg/build/temp.linux-x86_64-3.7/csrc/multi_tensor_lamb_stage_1.o
/usr/local/cuda-11.1/bin/nvcc --generate-dependencies-with-compile --dependency-output /tmp/pip-req-build-yrmgdjcg/build/temp.linux-x86_64-3.7/csrc/multi_tensor_lamb_stage_1.o.d -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/TH -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda-11.1/include -I/home/ldf/anaconda3/envs/python37/include/python3.7m -c -c /tmp/pip-req-build-yrmgdjcg/csrc/multi_tensor_lamb_stage_1.cu -o /tmp/pip-req-build-yrmgdjcg/build/temp.linux-x86_64-3.7/csrc/multi_tensor_lamb_stage_1.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -lineinfo -O3 --use_fast_math -DVERSION_GE_1_1 -DVERSION_GE_1_3 -DVERSION_GE_1_5 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=amp_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14
/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/ATen/cuda/CUDAContext.h(76): error: identifier "cusolverDnHandle_t" is undefined

1 error detected in the compilation of "/tmp/pip-req-build-yrmgdjcg/csrc/multi_tensor_lamb_stage_1.cu".
[10/11] /usr/local/cuda-11.1/bin/nvcc --generate-dependencies-with-compile --dependency-output /tmp/pip-req-build-yrmgdjcg/build/temp.linux-x86_64-3.7/csrc/multi_tensor_novograd.o.d -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/TH -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda-11.1/include -I/home/ldf/anaconda3/envs/python37/include/python3.7m -c -c /tmp/pip-req-build-yrmgdjcg/csrc/multi_tensor_novograd.cu -o /tmp/pip-req-build-yrmgdjcg/build/temp.linux-x86_64-3.7/csrc/multi_tensor_novograd.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -lineinfo -O3 --use_fast_math -DVERSION_GE_1_1 -DVERSION_GE_1_3 -DVERSION_GE_1_5 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=amp_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14
FAILED: /tmp/pip-req-build-yrmgdjcg/build/temp.linux-x86_64-3.7/csrc/multi_tensor_novograd.o
/usr/local/cuda-11.1/bin/nvcc --generate-dependencies-with-compile --dependency-output /tmp/pip-req-build-yrmgdjcg/build/temp.linux-x86_64-3.7/csrc/multi_tensor_novograd.o.d -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/TH -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda-11.1/include -I/home/ldf/anaconda3/envs/python37/include/python3.7m -c -c /tmp/pip-req-build-yrmgdjcg/csrc/multi_tensor_novograd.cu -o /tmp/pip-req-build-yrmgdjcg/build/temp.linux-x86_64-3.7/csrc/multi_tensor_novograd.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -lineinfo -O3 --use_fast_math -DVERSION_GE_1_1 -DVERSION_GE_1_3 -DVERSION_GE_1_5 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=amp_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14
/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/ATen/cuda/CUDAContext.h(76): error: identifier "cusolverDnHandle_t" is undefined

1 error detected in the compilation of "/tmp/pip-req-build-yrmgdjcg/csrc/multi_tensor_novograd.cu".
[11/11] c++ -MMD -MF /tmp/pip-req-build-yrmgdjcg/build/temp.linux-x86_64-3.7/csrc/amp_C_frontend.o.d -pthread -B /home/ldf/anaconda3/envs/python37/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/TH -I/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda-11.1/include -I/home/ldf/anaconda3/envs/python37/include/python3.7m -c -c /tmp/pip-req-build-yrmgdjcg/csrc/amp_C_frontend.cpp -o /tmp/pip-req-build-yrmgdjcg/build/temp.linux-x86_64-3.7/csrc/amp_C_frontend.o -O3 -DVERSION_GE_1_1 -DVERSION_GE_1_3 -DVERSION_GE_1_5 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=amp_C -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
In file included from /home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/ATen/Parallel.h:140:0,
                 from /home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/utils.h:3,
                 from /home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:5,
                 from /home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:3,
                 from /home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:13,
                 from /home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/torch/extension.h:4,
                 from /tmp/pip-req-build-yrmgdjcg/csrc/amp_C_frontend.cpp:1:
/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/include/ATen/ParallelOpenMP.h:83:0: warning: ignoring #pragma omp parallel [-Wunknown-pragmas]
 #pragma omp parallel for if ((end - begin) >= grain_size)

ninja: build stopped: subcommand failed.
Traceback (most recent call last):
  File "/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1673, in _run_ninja_build
    env=env)
  File "/home/ldf/anaconda3/envs/python37/lib/python3.7/subprocess.py", line 512, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/tmp/pip-req-build-yrmgdjcg/setup.py", line 558, in <module>
    extras_require=extras,
  File "/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/setuptools/__init__.py", line 153, in setup
    return distutils.core.setup(**attrs)
  File "/home/ldf/anaconda3/envs/python37/lib/python3.7/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/home/ldf/anaconda3/envs/python37/lib/python3.7/distutils/dist.py", line 966, in run_commands
    self.run_command(cmd)
  File "/home/ldf/anaconda3/envs/python37/lib/python3.7/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/setuptools/command/install.py", line 61, in run
    return orig.install.run(self)
  File "/home/ldf/anaconda3/envs/python37/lib/python3.7/distutils/command/install.py", line 545, in run
    self.run_command('build')
  File "/home/ldf/anaconda3/envs/python37/lib/python3.7/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/home/ldf/anaconda3/envs/python37/lib/python3.7/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/home/ldf/anaconda3/envs/python37/lib/python3.7/distutils/command/build.py", line 135, in run
    self.run_command(cmd_name)
  File "/home/ldf/anaconda3/envs/python37/lib/python3.7/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/home/ldf/anaconda3/envs/python37/lib/python3.7/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 79, in run
    _build_ext.run(self)
  File "/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/Cython/Distutils/old_build_ext.py", line 186, in run
    _build_ext.build_ext.run(self)
  File "/home/ldf/anaconda3/envs/python37/lib/python3.7/distutils/command/build_ext.py", line 340, in run
    self.build_extensions()
  File "/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 708, in build_extensions
    build_ext.build_extensions(self)
  File "/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/Cython/Distutils/old_build_ext.py", line 195, in build_extensions
    _build_ext.build_ext.build_extensions(self)
  File "/home/ldf/anaconda3/envs/python37/lib/python3.7/distutils/command/build_ext.py", line 449, in build_extensions
    self._build_extensions_serial()
  File "/home/ldf/anaconda3/envs/python37/lib/python3.7/distutils/command/build_ext.py", line 474, in _build_extensions_serial
    self.build_extension(ext)
  File "/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 196, in build_extension
    _build_ext.build_extension(self, ext)
  File "/home/ldf/anaconda3/envs/python37/lib/python3.7/distutils/command/build_ext.py", line 534, in build_extension
    depends=ext.depends)
  File "/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 538, in unix_wrap_ninja_compile
    with_cuda=with_cuda)
  File "/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1359, in _write_ninja_file_and_compile_objects
    error_prefix='Error compiling objects for extension')
  File "/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1683, in _run_ninja_build
    raise RuntimeError(message) from e
RuntimeError: Error compiling objects for extension
Running setup.py install for apex ... error

ERROR: Command errored out with exit status 1: /home/ldf/anaconda3/envs/python37/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-yrmgdjcg/setup.py'"'"'; file='"'"'/tmp/pip-req-build-yrmgdjcg/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' --cpp_ext --cuda_ext install --record /tmp/pip-record-wrkwo_pg/install-record.txt --single-version-externally-managed --compile --install-headers /home/ldf/anaconda3/envs/python37/include/python3.7m/apex Check the logs for full command output. Exception information: Traceback (most recent call last): File "/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/pip/_internal/req/req_install.py", line 825, in install req_description=str(self.req), File "/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/pip/_internal/operations/install/legacy.py", line 81, in install raise LegacyInstallFailure pip._internal.operations.install.legacy.LegacyInstallFailure

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/pip/_internal/cli/base_command.py", line 180, in _main status = self.run(options, args) File "/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/pip/_internal/cli/req_command.py", line 205, in wrapper return func(self, options, args) File "/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/pip/_internal/commands/install.py", line 402, in run pycompile=options.compile, File "/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/pip/_internal/req/init.py", line 85, in install_given_reqs pycompile=pycompile, File "/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/pip/_internal/req/req_install.py", line 829, in install six.reraise(*exc.parent) File "/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/pip/_vendor/six.py", line 703, in reraise raise value File "/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/pip/_internal/operations/install/legacy.py", line 71, in install cwd=unpacked_source_directory, File "/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/pip/_internal/utils/subprocess.py", line 278, in runner spinner=spinner, File "/home/ldf/anaconda3/envs/python37/lib/python3.7/site-packages/pip/_internal/utils/subprocess.py", line 244, in call_subprocess raise InstallationSubprocessError(proc.returncode, command_desc) pip._internal.exceptions.InstallationSubprocessError: Command errored out with exit status 1: /home/ldf/anaconda3/envs/python37/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-yrmgdjcg/setup.py'"'"'; file='"'"'/tmp/pip-req-build-yrmgdjcg/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' --cpp_ext --cuda_ext install --record /tmp/pip-record-wrkwo_pg/install-record.txt --single-version-externally-managed --compile --install-headers /home/ldf/anaconda3/envs/python37/include/python3.7m/apex Check the logs for full command output. Removed build tracker: '/tmp/pip-req-tracker-g3jio7ce'

yanlongbinluck commented 3 years ago

https://github.com/NVIDIA/apex/issues/802#issuecomment-618699214 you can try this. I have the same error of "subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1." Using that method, error is gone.