Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting up TensorFlow plugin "fused_bias_act.cu": Compiling... Failed! #22

Open
greatblueheron opened this issue Apr 7, 2021 · 1 comment

Comments

@greatblueheron
Copy link

I get this with some of the downloaded weights but not all of them (eg lsun cats is fine, obama gives me the above error). I am using anaconda, with nvcc installed via conda install cudatoolkit-dev. Anyone else seeing this and found a workaround?

@greatblueheron
Copy link
Author

OK, so I did the following to make this work:

  1. I swapped to stylegan2 from stylegan2-ada
  2. I installed g++ and gcc version 7 and promoted them to be the ones cuda looks for
  3. I changed line 127 in custom_ops.py to

compile_opts += ' --compiler-options '-fPIC -D_GLIBCXX_USE_CXX11_ABI=1''

I suspect that the underlying issue with the original error was the gcc/g++ compiler version (tensorflow 1.15 can't stomach 8 or up), although I only got that explicit error message with the stylegan2 repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant