#include <GaudiKernel/System.h>
#include <iostream>
#include <string>
#include <vector>
Go to the source code of this file.
|
| int | main (int argc, char *argv[]) |
| |
◆ main()
| int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 24 of file instructionsetLevel.cpp.
28 const std::vector<std::string> sets{
31 "ssse3",
"sse4_1",
"sse4_2",
"avx",
"avx2",
"avx512f",
"avx512vl" };
35 if (
level < sets.size() ) {
36 for (
int i =
level; i >= 0; --i ) { std::cout << sets[i] << std::endl; }
38 std::cout <<
"unknown instruction set level: " <<
level << std::endl;
41 }
else if ( (
argc == 2 ) && ( std::string{
"all" } == std::string{
argv[1] } ) ) {
42 for (
auto&
s : sets ) std::cout <<
s << std::endl;
44 std::cout <<
"Error: wrong arguments\nUsage:\n\t" <<
argv[0] <<
" [all]" << std::endl;