Skip to content

Commit

Permalink
[workload-xsave]Bug Fix
Browse files Browse the repository at this point in the history
1.Modify u_int8_t to uint8_t.

Signed-off-by: Haoliang Zhu <[email protected]>
  • Loading branch information
haoliang-Zhu committed Dec 29, 2023
1 parent 6ad9072 commit 33ec643
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
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
2 changes: 1 addition & 1 deletion workload-xsave/work_AVX2.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,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
2 changes: 1 addition & 1 deletion workload-xsave/work_AVX512.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,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
2 changes: 1 addition & 1 deletion workload-xsave/work_DOTPROD.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,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
2 changes: 1 addition & 1 deletion workload-xsave/work_VNNI.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,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
2 changes: 1 addition & 1 deletion workload-xsave/work_VNNI512.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,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
2 changes: 1 addition & 1 deletion workload-xsave/worker_init_avx2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion workload-xsave/worker_init_dotprod.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 33ec643

Please sign in to comment.