Comments (5)
Hi @theNded,
For the very first configuration (macOS), the errors that you are seeing are simply due to out-of-date docstrings in the file docstr.h
. These docstrings are used by the python bindings only.
In principle we always commit the updated docstrings when adding new bindings, but sometimes we forget. If you encounter such an issue, there are two easy options:
- Re-generate the updated docstrings yourself:
ninja docstrings
- Or temporarily disable the Python binding that uses that docstring (you can find out which one from the compiler error message).
Note that there is currently a limitation in the docstrings generation process: if you generate them for a given set of compilation option (e.g. autodiff disabled), the autodiff-related docstrings will be missing when turning it on.
from mitsuba2.
It worked, thanks!
Also figured out the correct settings in Ubuntu: I need to reset g++ to the default low version so that nvcc won't complain, then use clang++8 for compilation.
from mitsuba2.
Hi, sorry to bother again.
Now with make docstrings
it can compile on both platforms without autodiff. But with autodiff I still cannot overcome a compilation problem. Any idea what's going on?
Thanks!
[ 36%] Building CXX object src/librender/CMakeFiles/mitsuba-render-obj.dir/scene.cpp.o
In file included from /home/wei/Workspace/code/mitsuba2/src/librender/scene.cpp:3:
In file included from /home/wei/Workspace/code/mitsuba2/include/mitsuba/render/bsdf.h:3:
In file included from /home/wei/Workspace/code/mitsuba2/include/mitsuba/render/interaction.h:4:
In file included from /home/wei/Workspace/code/mitsuba2/include/mitsuba/core/spectrum.h:8:
In file included from /home/wei/Workspace/code/mitsuba2/include/mitsuba/core/simd.h:4:
In file included from /home/wei/Workspace/code/mitsuba2/ext/enoki/include/enoki/array.h:30:
In file included from /home/wei/Workspace/code/mitsuba2/ext/enoki/include/enoki/array_generic.h:14:
In file included from /home/wei/Workspace/code/mitsuba2/ext/enoki/include/enoki/array_static.h:3:
In file included from /home/wei/Workspace/code/mitsuba2/ext/enoki/include/enoki/array_base.h:16:
/home/wei/Workspace/code/mitsuba2/ext/enoki/include/enoki/array_struct.h:86:35: error: no member named 'scatter' in 'enoki::struct_support<enoki::Matrix<mitsuba::Spectrum<enoki::DiffArray<CUDAArray<float>
> >, 4, true>, int>'
struct_support_t<Target>::scatter(target, value, index, mask);
~~~~~~~~~~~~~~~~~~~~~~~~~~^
/home/wei/Workspace/code/mitsuba2/ext/enoki/include/enoki/stl.h:77:16: note: in instantiation of function template specialization 'enoki::scatter<0, true, false,
enoki::Matrix<mitsuba::Spectrum<enoki::DiffArray<CUDAArray<float> > >, 4, true>, enoki::DiffArray<enoki::CUDAArray<unsigned int> >, enoki::Matrix<mitsuba::Spectrum<enoki::DiffArray<CUDAArray<float>
> >, 4, true>, enoki::DiffArray<enoki::CUDAArray<bool> >, 0>' requested here
enoki::scatter(dst.second, value.second, index, mask);
^
/home/wei/Workspace/code/mitsuba2/ext/enoki/include/enoki/array_struct.h:86:35: note: in instantiation of function template specialization
'enoki::struct_support<std::__1::pair<mitsuba::DirectionSample<mitsuba::Point<enoki::DiffArray<CUDAArray<float> >, 3> >, enoki::Matrix<mitsuba::Spectrum<enoki::DiffArray<CUDAArray<float> > >, 4,
true> >, int>::scatter<std::__1::pair<mitsuba::DirectionSample<mitsuba::Point<enoki::DiffArray<CUDAArray<float> >, 3> >, enoki::Matrix<mitsuba::Spectrum<enoki::DiffArray<CUDAArray<float> > >, 4,
true> >, enoki::DiffArray<enoki::CUDAArray<unsigned int> >, enoki::DiffArray<enoki::CUDAArray<bool> > >' requested here
struct_support_t<Target>::scatter(target, value, index, mask);
^
/home/wei/Workspace/code/mitsuba2/ext/enoki/include/enoki/array_call.h:162:25: note: in instantiation of function template specialization 'enoki::scatter<0, true, true,
std::__1::pair<mitsuba::DirectionSample<mitsuba::Point<enoki::DiffArray<CUDAArray<float> >, 3> >, enoki::Matrix<mitsuba::Spectrum<enoki::DiffArray<CUDAArray<float> > >, 4, true> >,
enoki::DiffArray<enoki::CUDAArray<unsigned int> >, std::__1::pair<mitsuba::DirectionSample<mitsuba::Point<enoki::DiffArray<CUDAArray<float> >, 3> >,
enoki::Matrix<mitsuba::Spectrum<enoki::DiffArray<CUDAArray<float> > >, 4, true> >, enoki::DiffArray<enoki::CUDAArray<bool> >, 0>' requested here
scatter<0, true, true>(result, temp, permutation);
^
/home/wei/Workspace/code/mitsuba2/src/librender/scene.cpp:284:12: note: in instantiation of function template specialization
'mitsuba::Scene::sample_emitter_direction_pol_impl<mitsuba::Interaction<mitsuba::Point<enoki::DiffArray<CUDAArray<float> >, 3> >, enoki::DiffArray<CUDAArray<float> >,
mitsuba::Spectrum<enoki::DiffArray<CUDAArray<float> > >, mitsuba::Point<enoki::DiffArray<CUDAArray<float> >, 3>, mitsuba::Point<enoki::DiffArray<CUDAArray<float> >, 2>,
mitsuba::DirectionSample<mitsuba::Point<enoki::DiffArray<CUDAArray<float> >, 3> >, enoki::DiffArray<enoki::CUDAArray<bool> >, enoki::Matrix<mitsuba::Spectrum<enoki::DiffArray<CUDAArray<float> > >,
4, true> >' requested here
return sample_emitter_direction_pol_impl(ref, sample, test_visibility, active);
^
1 error generated.
from mitsuba2.
Hi Wei, can you update to the autodiff-plain
branch? Master has some commits related to polarization that broke autodiff.
from mitsuba2.
Thanks @wjakob, it works!
from mitsuba2.
Related Issues (20)
- [🔨 compilation issue] 'cmake -GNinja' step HOT 3
- [❔ other question] How to convert/extract enoki.autodiff_cuda.Float32 type array from Bitmap class? HOT 4
- [❔ other question]runtime API error = 0719 HOT 1
- [🐛 bug report] importing Pytorch after mitsuba => Segmentation fault (core dumped) HOT 1
- [❔ other question] Performance on Windows much lower than Linux? HOT 5
- [🐛 bug report] hdrfilm.cpp: duplicate channel detection HOT 3
- [❔ other question] how to uninstall mitsuba2 in linux? HOT 4
- The examples of Differentiable rendering applications HOT 2
- [🐛 bug report] OptiX "arithmetic involving uninitialized variable!" with Certain Scenes HOT 1
- [✨ feature request] Tutorial on differential rendering material acquisition HOT 1
- Something about code HOT 1
- Caught a critical exception: main [properties.cpp:401] └1∩Æ∞☺
- [✨ feature request] Does the mitsuba2 support bsdf for cloth model? HOT 1
- 用java或C++用物件導向的概念設計程式解下面的問題:讀取一組時間,計算出時針與分針的夾角,時間的格式是0:00到12:00,小時數可能為1或2位數,分鐘數總是2位數,00到59之間。輸出腳讀為0到180之間的值,角度的精確度到千分之一。例如9:00是90.000度,不是-90,也不是270,2:00則是60 HOT 1
- Rendered polarized images' intensity doesn't change according to the change of polarization angle- [❔ other question] HOT 1
- [❔ other question] setting the variant("llvm_spectral_polarized"), the code didn't work HOT 2
- [❔ other question]How can we output UV map in python? HOT 1
- - [❔ other question] I want to optimize the values in the transform component of my sensor plugin HOT 1
- Unable to compile: Windows 10: Visual Studio Community 2022 HOT 1
- White noise in spectral rendering - [❔ other question] HOT 1
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 mitsuba2.