-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reorganize the folder structure to incorporate support for KVM. Signed-off-by: Yi Sun <[email protected]>
- Loading branch information
Showing
222 changed files
with
1,050 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
tmul |
15 changes: 15 additions & 0 deletions
15
BM/state-components-validation-utilities/amx/tmul/Makefile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
Oops, something went wrong.