neka-nat/cupoch

Building from source error with CUDA & eigen3

Closed this issue · 7 comments

Hello @neka-nat,

A huge thanks for Cupoch

But im facing issue while building from source

system config

Nvidia geforce 1650
cuda toolkit 10.2
ubuntu 19.10
inbuilt Eigen : eigen 3.3.7

I tried with both eigen3 3rdparty and inbuilt version using
cmake -DBUILD_EIGEN3=OFF
and
cmake -DBUILD_EIGEN3=ON

the make make install-pip-package -j is getting killed

few error snippets are

/home/shankar/3D projects/cupoch/cupoch/src/cupoch/geometry/boundingvolume.cu(26): error: identifier "Eigen::MatrixBase< ::Eigen::Matrix<float, (int)3, (int)3, (int)0, (int)3, (int)3> > ::determinant const" is undefined in device code

36 errors detected in the compilation of "/tmp/tmpxft_00007184_00000000-6_boundingvolume.cpp1.ii". CMake Error at cupoch_geometry_generated_boundingvolume.cu.o.cmake:280 (message): Error generating file /home/shankar/3D projects/cupoch/cupoch/build/src/cupoch/geometry/CMakeFiles/cupoch_geometry.dir//./cupoch_geometry_generated_boundingvolume.cu.o

make[1]: *** [CMakeFiles/Makefile2:755: src/cupoch/geometry/CMakeFiles/cupoch_geometry.dir/all] Error 2 make: *** [Makefile:130: all] Error 2

Hi @devshank3 ,

Thank you for reporting.
Compilation may not pass with version 3.3.7 of eigen.
When using third_party, the version should be 3.3.90.
Please try the following:

  • Remove CMakeCache.txt
  • Remove eigen3 installed on the system

Now tried with eigen3 installed was 3.3.90

still got killed

Screenshot from 2020-02-23 19-45-10

"Killed" messages are like someone has sent Kill signals.
Suspect Kill signal from a system such as OOMKiller.

Sure i will try and let u know for building from source

Mean while i installed Cupoch in my system via pip

but few errors while trying examples

Screenshot from 2020-02-23 21-55-38
Screenshot from 2020-02-23 22-07-50
Screenshot from 2020-02-23 22-20-23

mainly cuda mem alloc

this was the reason why i was trying to build from source

I have updated the version of the pip package (v0.0.3).
Please install it again and try it.

works great thank you
in ver 0.0.3
i guess in the updated pip package thr is some error in path dir
i guess building to ur home path

Screenshot from 2020-02-24 01-05-41
Screenshot from 2020-02-24 01-06-43
Screenshot from 2020-02-24 01-07-33

Thank you!
It seems that there was still a fatal defect.
I have upgraded the version to 0.0.4, so please try again.