NVIDIA / apex

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

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

Open luohongyin opened 4 years ago

luohongyin commented 4 years ago

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/compilercompat -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-x8664-3.6/csrc/multi tensor_scale_kernel.o -DCUDA_NO_HALF_OPERATORS -DCUDA_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.

wangsssky commented 4 years ago

same error...

Ljy-an commented 2 years ago

i meet the same error,have you solved it?

wangsssky commented 2 years ago

Nope. I'm sorry to say that I gave up apex...

Ljy-an @.***> 于2021年12月14日周二 11:51写道:

i meet the same error,have you solved it?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/NVIDIA/apex/issues/663#issuecomment-993131248, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB24S7IOA5JQI3MDXIAELHLUQ25MXANCNFSM4J6EQBLQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.