yuanming-hu / spgrid_topo_opt

Narrow-Band Topology Optimization on a Sparsely Populated Grid, ACM Transactions on Graphics (SIGGRAPH Asia 2018)
185 stars 37 forks source link

build error #1

Closed ermore closed 3 years ago

ermore commented 5 years ago

cd solver/ make; An error occurred: ^

In file included from CG/../CPU_Kernels/SPGrid_Linear_Elasticity.h(5),
                 from CG/CG_SYSTEM.h(12),
                 from SPGrid_CPU_Solver.cpp(6):
../external/SPGrid/Tools/SPGrid_SIMD_Utilities.h(114): error: identifier "_mm512_loadu_pd" is undefined
      __forceinline static type loadu(const T* address){return _mm512_loadu_pd(address);}
nerrull commented 5 years ago

I had to add the line : #include <immintrin.h> to SPGrid_SIMD_Utilities.h to get it to compile