netgen icon indicating copy to clipboard operation
netgen copied to clipboard

Compile error (avx512 related) on windows

Open fairchilddonior opened this issue 5 years ago • 3 comments

Hi,

I am trying to build netgen (v6.2.2101) on windows. First I set up the directories as below and run the cmake command

cmake "../src" -DCMAKE_INSTALL_PREFIX="../install" -G "Visual Studio 15 Win64"

Capture2

The cmake configuring/generating process is OK.

Capture5

However, when I open the SUPERBUILD.sln in VS 2017 Community and build the "INSTALL" project, I see a bunch of errors.

image

Does anyone know how to fix that?

Thanks!

fairchilddonior avatar Apr 14 '21 09:04 fairchilddonior

Hi,

It seems, Netgen is currently not building for AVX512-CPUs on Windows. I will have a look at the errors.

In the meantime, you can disable the vectorization by configuring cmake with cmake -DUSE_NATIVE_ARCH=OFF ...

mhochsteger avatar Apr 14 '21 16:04 mhochsteger

Thanks! Those errors are gone now.

But there are still a few strange errors.

image

fairchilddonior avatar Apr 16 '21 03:04 fairchilddonior

I have the same mistake, how do you solve it? *.rc

ZenYuan avatar Jul 29 '21 08:07 ZenYuan