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! #91

Open
heheal opened this issue Apr 8, 2021 · 7 comments
Open

Comments

@heheal
Copy link

heheal commented Apr 8, 2021

I need a hand
My tensorflow version is 1.15 and cuda 10.0 ,but I got the error:
Setting up TensorFlow plugin "fused_bias_act.cu": Compiling... Failed!

@nurpax
Copy link
Contributor

nurpax commented Apr 8, 2021

I highly recommend switching to https://github.com/NVlabs/stylegan2-ada-pytorch instead of using the old TensorFlow version.

You may hit the same problem even with the new code, but the github issues in that project contain several solutions.

@fishing-pan
Copy link

fishing-pan commented May 17, 2021

Hi, I have solved this probelm
I changed a line code in ./dnnlib/tflib/custom_op.py
at line 72, my modification is as following

# cmd = 'nvcc ' + opts.strip()
cmd = 'nvcc --std=c++11 -DNDEBUG ' + opts.strip()  

@johndpope
Copy link

thank you.

@abysslover
Copy link

abysslover commented Apr 26, 2022

If the above mentioned solution does not work, the problem could be caused by the GCC compilation option while generating the so library. The GCC version of greater than 4 supports the c++11 standard itself, so the option -D_GLIBCXX_USE_CXX11_ABI = 0 is not required.

Change the line 127 code in ./dnnlib/tflib/custom_op.py.

from: - -compiler-options '-fPIC -D_GLIBCXX_USE_CXX11_ABI=0
to: --compiler-options '-fPIC -D_GLIBCXX_USE_CXX11_ABI=1

@fishing-pan
Copy link

fishing-pan commented Apr 26, 2022 via email

@JosephKKim
Copy link

Thanks @abysslover you saved my day!

@fishing-pan
Copy link

fishing-pan commented May 15, 2022 via email

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

6 participants