DragGAN icon indicating copy to clipboard operation
DragGAN copied to clipboard

Fused extension build error

Open spacewalkingninja opened this issue 2 years ago • 2 comments

RuntimeError: Error building extension 'fused': [1/3] c++ -MMD -MF fused_bias_act.o.d -DTORCH_EXTENSION_NAME=fused -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE="_gcc" -DPYBIND11_STDLIB="_libstdcpp" -DPYBIND11_BUILD_ABI="_cxxabi1011" -isystem /home/kris/.local/lib/python3.10/site-packages/torch/include -isystem /home/kris/.local/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -isystem /home/kris/.local/lib/python3.10/site-packages/torch/include/TH -isystem /home/kris/.local/lib/python3.10/site-packages/torch/include/THC -isystem /usr/include/python3.10 -D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -std=c++14 -c /mnt/c/users/admin/desktop/DragGAN/stylegan2/op/fused_bias_act.cpp -o fused_bias_act.o

under win 10 wsl ubuntu vm but I also get similar error when I try directly on win 10

spacewalkingninja avatar May 24 '23 03:05 spacewalkingninja

I same on ubuntu 22.04.2, I upgrade CUDA version to 12.1, it's work

OpenOpened avatar May 24 '23 03:05 OpenOpened

This is a stylegan2 issue, mostly it might be caused by incorrect installation of CUDA. For more reference, I recommend to take a look at https://github.com/rosinality/stylegan2-pytorch/issues

Zeqiang-Lai avatar May 24 '23 03:05 Zeqiang-Lai