Code Monkey home page Code Monkey logo

Comments (7)

pmh47 avatar pmh47 commented on August 18, 2024 1

@threedlife Sorry, I misread where the error was occurring. In fact, I'm not sure why this problem is happening (I can't reproduce it); it may be a bug using that exact version of nvcc with that exact version of gcc. You could try upgrading nvcc, if possible.

Alternatively, try moving the definition of struct Vec3 { ... }; (rasterise_grad_egl.cu, lines 63-101) to just above the function assemble_grads that it's currently inside (so put the struct at line 55). That shouldn't affect the functionality, but makes the code 'easier' for the compiler.

from dirt.

staffhorn avatar staffhorn commented on August 18, 2024

Update: The error was in
tensorflow/include/absl/strings/string_view.h(496): error: constexpr function return is non-constant

The error is described here, and there are workarounds.

Closing

from dirt.

gsygsy96 avatar gsygsy96 commented on August 18, 2024

Soory... I'm new foir Cmake. Could you tell me your solution?

from dirt.

threedlife avatar threedlife commented on August 18, 2024

following up this thread, i came across similar issues while building Dirt from source.

Any idea how to resolve this? Appreciate it!

/home/toz/ouyang/dirt/venv/local/lib/python2.7/site-packages/tensorflow/include/google/protobuf/arena_impl.h(52): warning: integer conversion resulted in a change of sign

/home/toz/ouyang/dirt/venv/local/lib/python2.7/site-packages/tensorflow/include/google/protobuf/arena_impl.h(147): warning: integer conversion resulted in a change of sign

/home/toz/ouyang/dirt/venv/local/lib/python2.7/site-packages/tensorflow/include/google/protobuf/arena_impl.h(52): warning: integer conversion resulted in a change of sign

/home/toz/ouyang/dirt/venv/local/lib/python2.7/site-packages/tensorflow/include/google/protobuf/arena_impl.h(147): warning: integer conversion resulted in a change of sign

/home/toz/ouyang/dirt/venv/local/lib/python2.7/site-packages/tensorflow/include/google/protobuf/generated_message_reflection.h(689): warning: variable "unused" was set but never used

/home/toz/ouyang/dirt/csrc/rasterise_grad_egl.cu(62) (col. 26): error: Internal Compiler Error (codegen): "function-scope static variables cannot be initialized!"

CMakeFiles/rasterise.dir/build.make:101: recipe for target 'CMakeFiles/rasterise.dir/rasterise_grad_egl.cu.o' failed
make[2]: *** [CMakeFiles/rasterise.dir/rasterise_grad_egl.cu.o] Error 2
CMakeFiles/Makefile2:72: 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

from dirt.

pmh47 avatar pmh47 commented on August 18, 2024

@threedlife This seems to be a separate issue, maybe specific to your cuda compiler version. What version of gcc, nvcc, and tensorflow are you using?
As a hack to fix it, try changing constexpr to just const at dirt/csrc/rasterise_grad_egl.cu line 62

from dirt.

threedlife avatar threedlife commented on August 18, 2024

@threedlife This seems to be a separate issue, maybe specific to your cuda compiler version. What version of gcc, nvcc, and tensorflow are you using?
As a hack to fix it, try changing constexpr to just const at dirt/csrc/rasterise_grad_egl.cu line 62

Thanks @pmh47

I using CUDA 8.0, nvcc v8.0.61, gcc 5.4.0, python 2.7.12, cmake 3.14.3, and tensorflow 1.4.

I didn't found constexpr in line 62 of rasterise_grad_egl.cu. Might it be somewhere else to change?

from dirt.

threedlife avatar threedlife commented on August 18, 2024

@threedlife Sorry, I misread where the error was occurring. In fact, I'm not sure why this problem is happening (I can't reproduce it); it may be a bug using that exact version of nvcc with that exact version of gcc. You could try upgrading nvcc, if possible.

Alternatively, try moving the definition of struct Vec3 { ... }; (rasterise_grad_egl.cu, lines 63-101) to just above the function assemble_grads that it's currently inside (so put the struct at line 55). That shouldn't affect the functionality, but makes the code 'easier' for the compiler.

@pmh47 moving struct Vec3 above assemble_grads worked! Thanks.

from dirt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.