#include <GaudiKernel/System.h>
#include <iostream>
#include <string>
#include <vector>
Go to the source code of this file.
|
| int | main (int argc, char *argv[]) |
| |
| int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 14 of file instructionsetLevel.cpp.
{
std::vector<std::string> sets{
"sse",
"sse2",
"sse3",
"ssse3",
"sse4_1",
"sse4_2",
"avx",
"avx2",
"avx512f"
};
if (level < sets.size())
std::cout << sets[
i] << std::endl;
}
else {
std::cout << "unknown instruction set level: " << level << std::endl;
return 2;
}
}
else if ((
argc == 2) && (std::string{
"all"} == std::string{
argv[1]})) {
std::cout <<
s << std::endl;
} else {
std::cout <<
"Error: wrong arguments\nUsage:\n\t" <<
argv[0] <<
" [all]"
<< std::endl;
return 1;
}
return 0;
}