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 59fa189
Show file tree
Hide file tree
Showing 9 changed files with 39 additions and 5 deletions.
26 changes: 26 additions & 0 deletions h origin cmake --force
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
diff --git a/workload-xsave/yogini.c b/workload-xsave/yogini.c
index 7e4b2a7..bd7baf8 100644
--- a/workload-xsave/yogini.c
+++ b/workload-xsave/yogini.c
@@ -283,7 +283,7 @@ static void cmdline(int argc, char **argv)
case 'f':
clfulsh = 1;
break;
- case '?':
+ case '?':
case 'h':
default:
help();
diff --git a/workload-xsave/yogini.h b/workload-xsave/yogini.h
index 5a33a27..69a58ff 100644
--- a/workload-xsave/yogini.h
+++ b/workload-xsave/yogini.h
@@ -74,7 +74,7 @@ struct workload *(*all_register_routines[]) () = {
register_SSE,
register_MEM,
register_memcpy,
-s register_AMX,
+ register_AMX,
NULL
};
#endif
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
7 changes: 4 additions & 3 deletions workload-xsave/yogini.c
Original file line number Diff line number Diff line change
Expand Up @@ -264,12 +264,11 @@ 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) {
switch (opt) {
case 'h':
help();
break;
case 'w':
if (parse_work_cmd(optarg))
help();
Expand All @@ -284,6 +283,8 @@ static void cmdline(int argc, char **argv)
case 'f':
clfulsh = 1;
break;
case '?':
case 'h':
default:
help();
}
Expand Down

0 comments on commit 59fa189

Please sign in to comment.