NVIDIA / NVIDIA/apex

Ext buil error: error: pack expansion does not make use of any argument packs

Open
#663 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
9k
Forks
1.5k
Avg merge
2d 4h
Merged PRs (30d)
3

Description

I got the following error building Apex.

` running build_ext
building 'apex_C' extension
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/csrc
gcc -pthread -B /data/sls/scratch/hyluo/anaconda3/envs/LSP/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/data/sls/scratch/hyluo/anaconda3/envs/L
SP/lib/python3.6/site-packages/torch/include -I/data/sls/scratch/hyluo/anaconda3/envs/LSP/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/data/sls/scratch/hyluo/anaconda3/envs/LSP/lib/pyth
on3.6/site-packages/torch/include/TH -I/data/sls/scratch/hyluo/anaconda3/envs/LSP/lib/python3.6/site-packages/torch/include/THC -I/data/sls/scratch/hyluo/anaconda3/envs/LSP/include/python3.6m -c csrc/flatten_
unflatten.cpp -o build/temp.linux-x86_64-3.6/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++
g++ -pthread -shared -B /data/sls/scratch/hyluo/anaconda3/envs/LSP/compiler_compat -L/data/sls/scratch/hyluo/anaconda3/envs/LSP/lib -Wl,-rpath=/data/sls/scratch/hyluo/anaconda3/envs/LSP/lib -Wl,--no-as-ne
eded -Wl,--sysroot=/ build/temp.linux-x86_64-3.6/csrc/flatten_unflatten.o -o build/lib.linux-x86_64-3.6/apex_C.cpython-36m-x86_64-linux-gnu.so
building 'amp_C' extension
gcc -pthread -B /data/sls/scratch/hyluo/anaconda3/envs/LSP/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/data/sls/scratch/hyluo/anaconda3/envs/L
SP/lib/python3.6/site-packages/torch/include -I/data/sls/scratch/hyluo/anaconda3/envs/LSP/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/data/sls/scratch/hyluo/anaconda3/envs/LSP/lib/pyth
on3.6/site-packages/torch/include/TH -I/data/sls/scratch/hyluo/anaconda3/envs/LSP/lib/python3.6/site-packages/torch/include/THC -I/data/sls/scratch/share-201907/opt/cuda/include -I/data/sls/scratch/hyluo/anac
onda3/envs/LSP/include/python3.6m -c csrc/amp_C_frontend.cpp -o build/temp.linux-x86_64-3.6/csrc/amp_C_frontend.o -O3 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=amp_C -D_GLIBCXX_USE_CXX11_ABI=0 -s
td=c++11
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
/data/sls/scratch/share-201907/opt/cuda/bin/nvcc -I/data/sls/scratch/hyluo/anaconda3/envs/LSP/lib/python3.6/site-packages/torch/include -I/data/sls/scratch/hyluo/anaconda3/envs/LSP/lib/python3.6/site-pack
ages/torch/include/torch/csrc/api/include -I/data/sls/scratch/hyluo/anaconda3/envs/LSP/lib/python3.6/site-packages/torch/include/TH -I/data/sls/scratch/hyluo/anaconda3/envs/LSP/lib/python3.6/site-packages/tor
ch/include/THC -I/data/sls/scratch/share-201907/opt/cuda/include -I/data/sls/scratch/hyluo/anaconda3/envs/LSP/include/python3.6m -c csrc/multi_tensor_scale_kernel.cu -o build/temp.linux-x86_64-3.6/csrc/multi_
tensor_scale_kernel.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options '-fPIC' -lineinfo -O3 --use_fast_math -DTORCH_API_IN
CLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=amp_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_75,code=sm_75 -std=c++11
/data/sls/scratch/share-201907/include/c++/8.3.0/utility(307): error: pack expansion does not make use of any argument packs

/data/sls/scratch/hyluo/anaconda3/envs/LSP/lib/python3.6/site-packages/torch/include/c10/core/TensorTypeSet.h(44): warning: integer conversion resulted in a change of sign

1 error detected in the compilation of "/tmp/tmpxft_000067fe_00000000-6_multi_tensor_scale_kernel.cpp1.ii".
error: command '/data/sls/scratch/share-201907/opt/cuda/bin/nvcc' failed with exit status 1

Running setup.py install for apex ... error`

I wonder what caused this and if anyone had faced the same issue.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading csrc/multi_tensor_scale_kernel.cu and the build configuration invoked by setup.py install. Reproduce the build with the reported Python, PyTorch, CUDA, GCC and nvcc environment, then compare the failing include and compiler versions. Done would require a documented cause and a successful Apex extension build, but the issue does not define a specific fix.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, python, pytorch
Domain
build-system, machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.