1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-30 19:23:07 +03:00

MCOL-5180 Check CPU vector instructions set in installer and PrimProc on start (#2499)

* Add check for simd acrh support

* Updates

* More polite and detailed error messages

* Updates

* Always true to conditional

Co-authored-by: Leonid Fedorov <leonid.fedorov@mariadb.com>
This commit is contained in:
Andrey Piskunov
2022-08-11 15:28:22 +03:00
committed by GitHub
parent 0174c8ec08
commit c906172bf5
4 changed files with 91 additions and 0 deletions

View File

@ -59,6 +59,9 @@ using namespace logging;
#include "umsocketselector.h"
using namespace primitiveprocessor;
#include "archcheck.h"
using namespace archcheck;
#include "liboamcpp.h"
using namespace oam;
@ -735,6 +738,11 @@ int ServicePrimProc::Child()
int main(int argc, char** argv)
{
if (checkArchitecture() != arcitecture::SSE4_2 && checkArchitecture() != arcitecture::ASIMD)
{
std::cerr << "Unsupported CPU architecture. ARM Advanced SIMD or x86_64 SSE4.2 required; aborting. \n";
return 1;
}
Opt opt(argc, argv);
// Set locale language