Comments (7)
@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.
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.
Soory... I'm new foir Cmake. Could you tell me your solution?
from dirt.
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.
@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 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 changingconstexpr
to justconst
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 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 functionassemble_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)
- How to run it on Win10 HOT 1
- librasterise.so: undefined symbol: cuCtxSetCurrent HOT 1
- NotFoundError: ../dirt/dirt/librasterise.so: undefined symbol: _ZN10tensorflow7s... HOT 1
- Differentiability wrt vertex colors HOT 3
- glsl SDF
- Setup error using colab
- yet another none of 2 egl devices matches the active cuda device HOT 3
- undefined symbol: eglCreateContext HOT 4
- AttributeError: 'NoneType' object has no attribute 'rasterise' HOT 4
- About render normal map HOT 1
- [Error] "This compiler appears to be too old to be supported by Eigen" in building rasterize HOT 2
- Dirt installation and test errors
- Cmake error HOT 1
- Installation errors: Tensorflow-protobuf incompatibility with tensor flow v2.13.0 HOT 17
- dirt/csrc/gl_common.h:46] extensions eglQueryDevicesEXT, eglQueryDeviceAttribEXT and eglGetPlatformDisplayEXT not available
- [Test Error]no egl devices found Aborted (core dumped)
- Does this work on WSL2? HOT 1
- Unable to compile HOT 1
- Unable to find Dockerfile config (CUDA_BASE_VERSION + UBUNTU_VERSION +CUDNN_VERSION) that leads to a successful dirt installation
- got error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dirt.