esa / pagmo2

A C++ platform to perform parallel computations of optimisation tasks (global and local) via the asynchronous generalized island model.
https://esa.github.io/pagmo2/
GNU General Public License v3.0
808 stars 160 forks source link

Support for oneTBB and build system fixes #469

Closed bluescarni closed 3 years ago

JackBoosY commented 3 years ago

I will test this PR later.

JackBoosY commented 3 years ago
[19/90] "C:\PROGRA~2\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x86\cl.exe"   /TP -DBOOST_ALLOW_DEPRECATED_HEADERS -Dpagmo_EXPORTS -IF:\vcpkg\buildtrees\pagmo2\src\stem_fixes-4d2df6ddb8.clean\include -Iinclude -IF:\vcpkg\installed\x86-windows\include -IF:\vcpkg\installed\x86-windows\share\eigen3\..\..\include\eigen3 /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /GR /EHsc /MP  /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1  /W4 /WX -DNOMINMAX /wd4459 /wd4127 /wd4702 /wd4251 /wd4701 /bigobj -DWIN32_LEAN_AND_MEAN /permissive- -std:c++17 /showIncludes /FoCMakeFiles\pagmo.dir\src\problems\translate.cpp.obj /FdCMakeFiles\pagmo.dir\ /FS -c F:\vcpkg\buildtrees\pagmo2\src\stem_fixes-4d2df6ddb8.clean\src\problems\translate.cpp
FAILED: CMakeFiles/pagmo.dir/src/problems/translate.cpp.obj 
"C:\PROGRA~2\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x86\cl.exe"   /TP -DBOOST_ALLOW_DEPRECATED_HEADERS -Dpagmo_EXPORTS -IF:\vcpkg\buildtrees\pagmo2\src\stem_fixes-4d2df6ddb8.clean\include -Iinclude -IF:\vcpkg\installed\x86-windows\include -IF:\vcpkg\installed\x86-windows\share\eigen3\..\..\include\eigen3 /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /GR /EHsc /MP  /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1  /W4 /WX -DNOMINMAX /wd4459 /wd4127 /wd4702 /wd4251 /wd4701 /bigobj -DWIN32_LEAN_AND_MEAN /permissive- -std:c++17 /showIncludes /FoCMakeFiles\pagmo.dir\src\problems\translate.cpp.obj /FdCMakeFiles\pagmo.dir\ /FS -c F:\vcpkg\buildtrees\pagmo2\src\stem_fixes-4d2df6ddb8.clean\src\problems\translate.cpp
cl : Command line warning D9025 : overriding '/W3' with '/W4'
f:\vcpkg\installed\x86-windows\include\oneapi\tbb\detail/_task.h(233): error C2220: warning treated as error - no 'object' file generated
f:\vcpkg\installed\x86-windows\include\oneapi\tbb\detail/_task.h(233): warning C4324: 'tbb::detail::d1::task': structure was padded due to alignment specifier
bluescarni commented 3 years ago

@JackBoosY this looks like a warning in the oneTBB code. Is this a debug build?

bluescarni commented 3 years ago

@JackBoosY I have added some pragmas for warning suppression around the TBB header, can you test if this fixes the issue?

JackBoosY commented 3 years ago

Build success! Thanks! I'm waiting for the new version publish.

bluescarni commented 3 years ago

@JackBoosY I have published a new pagmo release, 2.17.0. Let me know how it works out.

JackBoosY commented 3 years ago

@bluescarni Passed, thanks for your hard work!