Open Traceve opened 1 year ago
FAILED: flatten_unflatten.o c++ -MMD -MF flatten_unflatten.o.d -DTORCH_EXTENSION_NAME=utils -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE="_gcc" -DPYBIND11_STDLIB="_libstdcpp" -DPYBIND11_BUILD_ABI="_cxxabi1011" -isystem /data/software/anaconda3/envs/chatglm_mul/lib/python3.8/site-packages/torch/include -isystem /data/software/anaconda3/envs/chatglm_mul/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -isystem /data/software/anaconda3/envs/chatglm_mul/lib/python3.8/site-packages/torch/include/TH -isystem /data/software/anaconda3/envs/chatglm_mul/lib/python3.8/site-packages/torch/include/THC -isystem /data/software/anaconda3/envs/chatglm_mul/include/python3.8 -D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -std=c++17 -c /data/software/anaconda3/envs/chatglm_mul/lib/python3.8/site-packages/deepspeed/ops/csrc/utils/flatten_unflatten.cpp -o flatten_unflatten.o c++: error: unrecognized command line option ‘-std=c++17’ ninja: build stopped: subcommand failed.
请问这是gcc版本过低吗?
看报错是,你升级下看看 或者搞一个现成nvidia的docke能不能解决问题
FAILED: flatten_unflatten.o c++ -MMD -MF flatten_unflatten.o.d -DTORCH_EXTENSION_NAME=utils -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /data/software/anaconda3/envs/chatglm_mul/lib/python3.8/site-packages/torch/include -isystem /data/software/anaconda3/envs/chatglm_mul/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -isystem /data/software/anaconda3/envs/chatglm_mul/lib/python3.8/site-packages/torch/include/TH -isystem /data/software/anaconda3/envs/chatglm_mul/lib/python3.8/site-packages/torch/include/THC -isystem /data/software/anaconda3/envs/chatglm_mul/include/python3.8 -D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -std=c++17 -c /data/software/anaconda3/envs/chatglm_mul/lib/python3.8/site-packages/deepspeed/ops/csrc/utils/flatten_unflatten.cpp -o flatten_unflatten.o c++: error: unrecognized command line option ‘-std=c++17’ ninja: build stopped: subcommand failed.
请问这是gcc版本过低吗?