Open ra100 opened 1 year ago
there was a build in this link https://github.com/NVlabs/instant-ngp/releases/download/continuous/Instant-NGP-for-RTX-2000.zip but I don't know why they removed it
For now, I found a hack, I removed these lines from cast.h
template <typename T>
typename make_caster<T>::template cast_op_type<T> cast_op(make_caster<T> &caster) {
return caster.operator typename make_caster<T>::template cast_op_type<T>();
}
it compiled, but have other issues, feels like being on a minefield :)
there was a build in this link https://github.com/NVlabs/instant-ngp/releases/download/continuous/Instant-NGP-for-RTX-2000.zip but I don't know why they removed it
Thanks @ElJaviLuki, but that looks like a Windows build.
this may be caused by gcc 12 / g++ 12, I am trying to use gcc 11
and it works well.
@murez how did you specified, which of GCC versions to use in the build?
i've tried
rm -fr ./build
CXX=g++-11 CC=gcc-11 LD=g++-11 .......
and still having the same error on compilation
Well, I have a preset json telling about compilers I want to use. So you can search for the cmake user presets
weird, i've checked the compilation log - and it actually detected right the version of GCC:
$ CXX=g++-11 CC=gcc-11 LD=g++-11 cmake . -B build
-- The C compiler identification is GNU 11.3.0
-- The CXX compiler identification is GNU 11.3.0
...
however fails still the same:
[ 61%] Building CUDA object CMakeFiles/ngp.dir/src/testbed.cu.o
/media/old_media/ai/instant-ngp/src/testbed.cu: In member function _void ngp::Testbed::set_mode(ngp::ETestbedMode)_:
/media/old_media/ai/instant-ngp/src/testbed.cu:175:23: error: no match for _operator=_ (operand types are _ngp::Testbed::Volume_ and _<brace-enclosed initializer list>_)
175 | m_volume = {};
| ^
/media/old_media/ai/instant-ngp/include/neural-graphics-primitives/testbed.h:852:15: note: candidate: _ngp::Testbed::Volume& ngp::Testbed::Volume::operator=(ngp::Testbed::Volume&&)_
852 | struct Volume {
| ^~~~~~
/media/old_media/ai/instant-ngp/include/neural-graphics-primitives/testbed.h:852:15: note: no known conversion for argument 1 from _<brace-enclosed initializer list>_ to _ngp::Testbed::Volume&&_
make[2]: *** [CMakeFiles/ngp.dir/build.make:299: CMakeFiles/ngp.dir/src/testbed.cu.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:308: CMakeFiles/ngp.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
after further investigation i see that something in cuda runtime is passing down cicc --c++14 --gnu_version=130101 .....
during compilation, any ideas how to override gnu_version
there?
Could you please give some information about how you install your CUDA toolkit?
Well, I have a preset json telling about compilers I want to use. So you can search for the cmake user presets
By the way, nvhpc@23.1 works well.
i was using cuda 12 from Arch repositories - and apparently it was also the problem, not only too new GCC - so i "solved" the problem by just using a Docker image
i see this problem with GCC 12.2, Cuda 12.2 and instant-ngp commit 9f6ab886
I'm getting this error while building:
I'm on xubuntu 23.04,
When I change the line with error to:
it passes through this step, but then it fails in pybind11 on:
And I have no idea what I can do with that.