yuanming-hu / taichi_mpm

High-performance moving least squares material point method (MLS-MPM) solver. (ACM Transactions on Graphics, SIGGRAPH 2018)
MIT License
2.35k stars 315 forks source link

error: static assertion failed: #4

Closed yaolyu closed 5 years ago

yaolyu commented 6 years ago

Hi Yuanming, When I installed mpm solver project using command'ti install mpm', several errors appear a lot of times which I think maybe you could help me to solve. Errors are : /taichi/projects/mpm/src/mpm_fwd.h:116:1: error: static assertion failed: GridState<2> size must be POT static_assert(bit::is_power_of_two(sizeof(GridState<2>)), error: ‘using Vector = struct taichi::VectorND<3, float, (taichi::InstSetExt)0> {aka struct taichi::VectorND<3, float, (taichi::InstSetExt)0>}’ has no member named ‘v’ p.pos.v = _mm_fmaddps(v, delta_t_vec, p.pos.v); ^ Could you please help me have a look at these problems?

yuanming-hu commented 6 years ago

Thanks for your questions.

Could you let me know your CPU model?

yaolyu commented 6 years ago

CPU information is : model : 45 model name : Intel(R) Xeon(R) CPU E5-1650 0 @ 3.20GHz

yuanming-hu commented 6 years ago

The CPU is 6-year old and I need some time to support it...A quick "fix" is to run it on a computer with Haswell (released 2013) or later CPUs.

yaolyu commented 6 years ago

Let me try! Thank you!