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

rasterise_grad_egl.cu.o error in the newest code #41

Closed
boostlee opened this issue Sep 3, 2019 · 4 comments
Closed

rasterise_grad_egl.cu.o error in the newest code #41

boostlee opened this issue Sep 3, 2019 · 4 comments

Comments

@boostlee
Copy link

boostlee commented Sep 3, 2019

My error is as following:
/tmp/pip-req-build-cevrhevw/csrc/rasterise_grad_egl.cu(99) (col. 26): error: Internal Compiler Error (codegen): "function-scope static variables cannot be initialized!"

CMakeFiles/rasterise.dir/build.make:134: recipe for target 'CMakeFiles/rasterise.dir/rasterise_grad_egl.cu.o' failed
make[2]: *** [CMakeFiles/rasterise.dir/rasterise_grad_egl.cu.o] Error 2
make[2]: *** Waiting for unfinished jobs....
fatbinary warning : option 'key' has been deprecated
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/rasterise.dir/all' failed
make[1]: *** [CMakeFiles/rasterise.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

In the new cloned code, the definition of struct Vec3 { ... }; is already above the function assemble_grads in a anonymous namespace, but the error appeares again.

My env:
nvcc V8.0.61
gcc 5.4.0
tf-1.8.0
cuda-9.0

@boostlee boostlee changed the title rasterise_grad_egl.cu.o error rasterise_grad_egl.cu.o error in the newest code Sep 3, 2019
@pmh47
Copy link
Owner

pmh47 commented Sep 3, 2019

This is probably still a compatibility issue between nvcc and gcc versions; however, it's surprising it fails as the change to Vec3 fixed exactly the same compiler configuration for another user. As you have cuda-9.0, can you try compiling with nvcc 9.x, which has official support for gcc 5.4 (unlike nvcc 8.x)?

@vineethbabu
Copy link

Screenshot 2019-09-25 at 5 23 15 PM

Hi @pmh47 , I am also facing this error as shown above. can you please help.

My environment:
cuda - 10.0
tensorflow-gpu - 1.13.2
gcc - 5.4.0

Thanks in advance.

@pmh47
Copy link
Owner

pmh47 commented Sep 25, 2019

@vineethbabu See #20 (comment)

@pmh47
Copy link
Owner

pmh47 commented Apr 27, 2020

Closing due to inactivity

@pmh47 pmh47 closed this as completed Apr 27, 2020
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

3 participants