Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supplementary header file #157

Merged
merged 2 commits into from
Dec 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ dpkg -i linux-xxx-dev_TARGET_VERSION.deb
dpkg -i linux-xxx-tools_TARGET_VERSION.deb

Boot up with target kernel version.
cd cet_driver
cd cet/cet_driver
make
```

Expand Down
3 changes: 2 additions & 1 deletion 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 All @@ -26,7 +27,7 @@
#pragma GCC optimize("unroll-loops")

struct thread_data {
u_int8_t *input_x;
uint8_t *input_x;
int8_t *input_y;
int16_t *output;
int data_entries;
Expand Down
3 changes: 2 additions & 1 deletion 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 All @@ -29,7 +30,7 @@
#pragma GCC optimize("unroll-loops")

struct thread_data {
u_int8_t *input_x;
uint8_t *input_x;
int8_t *input_y;
int32_t *input_z;
int16_t *input_ones;
Expand Down
3 changes: 2 additions & 1 deletion 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 All @@ -22,7 +23,7 @@
#pragma GCC optimize("unroll-loops")

struct thread_data {
u_int8_t *input_x;
uint8_t *input_x;
int8_t *input_y;
int32_t *input_z;
int16_t *input_ones;
Expand Down
3 changes: 2 additions & 1 deletion 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 All @@ -27,7 +28,7 @@
#pragma GCC optimize("unroll-loops")

struct thread_data {
u_int8_t *input_x;
uint8_t *input_x;
int8_t *input_y;
int32_t *input_z;
int16_t *input_ones;
Expand Down
3 changes: 2 additions & 1 deletion 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 All @@ -24,7 +25,7 @@
#pragma GCC optimize("unroll-loops")

struct thread_data {
u_int8_t *input_x;
uint8_t *input_x;
int8_t *input_y;
int32_t *input_z;
int16_t *input_ones;
Expand Down
6 changes: 4 additions & 2 deletions 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 All @@ -17,7 +19,7 @@ static int init(struct work_instance *wi)
if (!dp)
err(1, "thread_data");

dp->input_x = (u_int8_t *)calloc(entries, BYTES_PER_VECTOR);
dp->input_x = (uint8_t *)calloc(entries, BYTES_PER_VECTOR);
if (!dp->input_x)
err(1, "calloc input_x");

Expand Down
4 changes: 2 additions & 2 deletions 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 All @@ -17,7 +17,7 @@ static int init(struct work_instance *wi)
if (!dp)
err(1, "thread_data");

dp->input_x = (u_int8_t *)calloc(entries, BYTES_PER_VECTOR);
dp->input_x = (uint8_t *)calloc(entries, BYTES_PER_VECTOR);
if (!dp->input_x)
err(1, "calloc input_x");

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
Loading