Skip to content

Commit

Permalink
[workload-xsave]Supplementary header file
Browse files Browse the repository at this point in the history
1.Missing uint8_t header file.
2.Supplement useage information.

Signed-off-by: Haoliang Zhu <[email protected]>
  • Loading branch information
haoliang-Zhu committed Dec 29, 2023
1 parent 33ec643 commit 40db7a9
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 6 deletions.
1 change: 1 addition & 0 deletions workload-xsave/work_AVX2.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include <sched.h> /* CPU_SET */
#include "yogini.h"
#include <immintrin.h>
#include <stdint.h>
#include <err.h>

#pragma GCC target("avx2,fma")
Expand Down
1 change: 1 addition & 0 deletions workload-xsave/work_AVX512.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include <sched.h> /* CPU_SET */
#include "yogini.h"
#include <immintrin.h>
#include <stdint.h>
#include <err.h>

#if __GNUC__ >= 11
Expand Down
1 change: 1 addition & 0 deletions workload-xsave/work_DOTPROD.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include <sched.h> /* CPU_SET */
#include "yogini.h"
#include <immintrin.h>
#include <stdint.h>
#include <err.h>

#pragma GCC target("avx2,fma")
Expand Down
1 change: 1 addition & 0 deletions workload-xsave/work_VNNI.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include <sched.h> /* CPU_SET */
#include "yogini.h"
#include <immintrin.h>
#include <stdint.h>
#include <err.h>

#if __GNUC__ >= 11
Expand Down
1 change: 1 addition & 0 deletions workload-xsave/work_VNNI512.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include <sched.h> /* CPU_SET */
#include "yogini.h"
#include <immintrin.h>
#include <stdint.h>
#include <err.h>

#if __GNUC__ >= 9
Expand Down
4 changes: 3 additions & 1 deletion workload-xsave/worker_init_avx2.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
* Copyright (c) 2022 Intel Corporation.
* Len Brown <[email protected]>
*/

#include <stddef.h>
#include <stdlib.h>
#include <stdint.h>
static int init(struct work_instance *wi)
{
int i;
Expand Down
2 changes: 1 addition & 1 deletion workload-xsave/worker_init_dotprod.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (c) 2022 Intel Corporation.
* Len Brown <[email protected]>
*/

#include <stdint.h>
static int init(struct work_instance *wi)
{
int i;
Expand Down
10 changes: 6 additions & 4 deletions workload-xsave/yogini.c
Original file line number Diff line number Diff line change
Expand Up @@ -264,12 +264,12 @@ static void cmdline(int argc, char **argv)

progname = argv[0];

if (argc == 1)
help();

while ((opt = getopt_long_only(argc, argv, "h:w:r:b:f",
long_options, &option_index)) != -1) {
long_options, &option_index)) != -1) {
switch (opt) {
case 'h':
help();
break;
case 'w':
if (parse_work_cmd(optarg))
help();
Expand All @@ -284,6 +284,8 @@ static void cmdline(int argc, char **argv)
case 'f':
clfulsh = 1;
break;
case '?':
case 'h':
default:
help();
}
Expand Down

0 comments on commit 40db7a9

Please sign in to comment.