I get a problem 'error: command 'gcc' failed with exit status 1', when I go with:
### install apex
cd $INSTALL_DIR
git clone https://github.com/NVIDIA/apex.git
cd apex
python setup.py install --cuda_ext --cpp_ext
the last lines cannot go throught
..........
/home/alanc/anaconda3/envs/maskrcnn_benchmark/lib/python3.7/site-packages/torch/include/ATen/Dispatch.h:10:12: note: in definition of macro ‘AT_PRIVATE_CASE_TYPE’
return __VA_ARGS__();
^~~
csrc/mlp.cpp:123:3: note: in expansion of macro ‘AT_DISPATCH_FLOATING_TYPES_AND_HALF’
AT_DISPATCH_FLOATING_TYPES_AND_HALF(inputs[0].type(), "mlp_backward", [&] {
^
csrc/mlp.cpp:149:37: error: expected primary-expression before ‘>’ token
work_space.data_ptr
^
csrc/mlp.cpp:123:3: note: in expansion of macro ‘AT_DISPATCH_FLOATING_TYPES_AND_HALF’
AT_DISPATCH_FLOATING_TYPES_AND_HALF(inputs[0].type(), "mlp_backward", [&] {
^
csrc/mlp.cpp:149:39: error: expected primary-expression before ‘)’ token
work_space.data_ptr
^
/home/alanc/anaconda3/envs/maskrcnn_benchmark/lib/python3.7/site-packages/torch/include/ATen/Dispatch.h:10:12: note: in definition of macro ‘AT_PRIVATE_CASE_TYPE’
return __VA_ARGS__();
^~~
csrc/mlp.cpp:123:3: note: in expansion of macro ‘AT_DISPATCH_FLOATING_TYPES_AND_HALF’
AT_DISPATCH_FLOATING_TYPES_AND_HALF(inputs[0].type(), "mlp_backward", [&] {
^
error: command 'gcc' failed with exit status 1
'
Python 3.7.6
pytorch 1.4.0 py3.7_cuda10.0.130_cudnn7.6.3_0 pytorch
pytorch-nightly 1.0.0.dev20190328 py3.7_cuda10.0.130_cudnn7.4.2_0 pytorch
torchvision 0.5.0 py37_cu100 pytorch
gcc version 7.3.0 (GCC)
You can fix it with:
'git checkout f3a960f80244cf9e80558ab30f7f7e8cbf03c0a0'
for more information
Most helpful comment
You can fix it with:
'git checkout f3a960f80244cf9e80558ab30f7f7e8cbf03c0a0'
for more information