Skip to content

Commit

Permalink
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 <haoliang.zhu@intel.com>

git commit -s --amend#	modified:   workload-xsave/yogini.c
  • Loading branch information
haoliang-Zhu committed Dec 29, 2023
1 parent 33ec643 commit 3187242
Show file tree
Hide file tree
Showing 9 changed files with 14 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 <len.brown@intel.com>
*/

#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 <len.brown@intel.com>
*/

#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
2 changes: 1 addition & 1 deletion workload-xsave/yogini.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ struct workload *(*all_register_routines[]) () = {
register_SSE,
register_MEM,
register_memcpy,
register_AMX,
s register_AMX,
NULL
};
#endif
Expand Down

0 comments on commit 3187242

Please sign in to comment.