Giter Site home page Giter Site logo

Comments (5)

merlinND avatar merlinND commented on July 17, 2024

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:

  1. Re-generate the updated docstrings yourself: ninja docstrings
  2. 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.

theNded avatar theNded commented on July 17, 2024

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.

theNded avatar theNded commented on July 17, 2024

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.

wjakob avatar wjakob commented on July 17, 2024

Hi Wei, can you update to the autodiff-plain branch? Master has some commits related to polarization that broke autodiff.

from mitsuba2.

theNded avatar theNded commented on July 17, 2024

Thanks @wjakob, it works!

from mitsuba2.

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.