Skip to content

Commit

Permalink
Reorganize the Folders
Browse files Browse the repository at this point in the history
Reorganize the folder structure to incorporate support for KVM.

Signed-off-by: Yi Sun <[email protected]>
  • Loading branch information
ysun committed May 9, 2024
1 parent 74aa607 commit 2bf4304
Show file tree
Hide file tree
Showing 222 changed files with 1,050 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[submodule "state-components-validation-utilities"]
url = https://github.com/intel/state-components-validation-utilities.git
path = state-components-validation-utilities
path = BM/state-components-validation-utilities
active = true
branch = main
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
49 changes: 49 additions & 0 deletions BM/state-components-validation-utilities/amx/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
Verifying XTILEDATA state component by TMUL instructions
====================

- Description:
Intel® Advanced Matrix Extensions (Intel® AMX) is a new 64-bit programming
paradigm consisting of two components: a set of 2-dimensional registers
(tiles) representing sub-arrays from a larger 2-dimensional memory image,
and an accelerator able to operate on tiles, the first implementation is
called TMUL(tile matrix multiply unit).
This test is for verifying XTILECFG and XTILEDATA state component by TMUL
instructions. In the test, multi-task can be launched to execute AMX/TMUL
calculation, the procedure of calculation maybe interrupted by different
reasons for several times, such as yield, sleep, trap, signal and futex.
When the task come back, the calculation will be moved on for getting result.
It will be checked if the result is correct or not.

- How to build:

gcc 11.1 or above is required.

To compile,
$ make

To clean,
$ make clean

- How to run:

a. show command usage
$ ./tmul --help

b. Break sub-thread which is doing TMUL TDPBF16PS calculation by yield
$ ./tmul -b 1 -t 10 -c 20 -i 0

c. Break sub-thread which is doing TMUL TDPBSSD calculation by sleep
$ ./tmul -b 2 -t 10 -c 20 -i 1

d. Break sub-thread which is doing TMUL TDPBSUD calculation by trap
$ ./tmul -b 3 -t 10 -c 20 -i 2

e. Break sub-thread which is doing TMUL TDPBUSD calculation by signal
$ ./tmul -b 4 -t 1000 -c 1000 -i 3
Notes: Signal is generated by main thread and handled by sub thread,
so need to run multi cycles to ensure sub-thread is interrupted when
TMUL calculation is being done.

f. Break sub-thread which is doing TMUL TDPBUUD calculation by futex
$ ./tmul -b 5 -t 10 -c 20 -i 4

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
tmul
15 changes: 15 additions & 0 deletions BM/state-components-validation-utilities/amx/tmul/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# SPDX-License-Identifier: GPL-2.0
CFLAG = -O2 -W -Wall -g -fno-strict-aliasing
LIBS = -lpthread
CC = gcc
BIN_AMX = tmul
CFILES_AMX = tmul.c

all:
$(CC) $(CFLAG) $(CFILES_AMX) -o $(BIN_AMX) $(LIBS)

clean:
-rm $(BIN_AMX)

.PHONY: clean

Loading

0 comments on commit 2bf4304

Please sign in to comment.