You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This directory contains test runners and benchmarks for different NPU platforms: `npu3`, `phx`, and `strx`. Each platform has its own subdirectory with specific test configurations and binaries.
3
+
This directory contains test runners and benchmarks for different NPU platforms: `npu3`, `phx`, `strx`, and `ve2`. Each platform has its own subdirectory with specific test configurations and binaries.
4
4
5
5
## Directory Structure
6
6
7
7
```
8
-
runner/
9
-
├── npu3/ # NPU3 platform tests
10
-
├── phx/ # Phoenix platform tests
11
-
├── Strx/ # Strix platform tests
12
-
└── ve2/ # Telluride platform tests
8
+
archive/
9
+
├── npu3/ # NPU3 platform tests
10
+
│ └── xrt_smi_npu3.a # Generated archive
11
+
├── phx/ # Phoenix platform tests
12
+
│ └── xrt_smi_phx.a # Generated archive
13
+
├── strx/ # Strix platform tests
14
+
│ └── xrt_smi_strx.a # Generated archive
15
+
├── ve2/ # Telluride platform tests
16
+
│ └── xrt_smi_ve2.a # Generated archive
17
+
└── build_archives.py # Archive creation script
13
18
```
14
19
15
-
## Creating Archives
20
+
## Creating Archives (Recommended)
16
21
17
-
Use the `ar` utility to create archives. **Note**: The `ar` utility preserves directory paths by default and does NOT automatically flatten file structure.
22
+
Use the provided Python script for automated archive creation:
18
23
19
-
### Platform Archives
24
+
### Basic Usage
20
25
21
26
```bash
22
-
#Archive all NPU3 subdirectories
23
-
(cd npu3 && find . -type f -print0 | xargs -0 ar -cr xrt_smi_npu3.a)
27
+
#Create archives for all platforms
28
+
python build_archives.py
24
29
25
-
#Archive all PHX subdirectories
26
-
(cd phx && find . -type f -print0 | xargs -0 ar -cr xrt_smi_phx.a)
30
+
#Create archive for specific platform
31
+
python build_archives.py strx
27
32
28
-
# Archive all STRX subdirectories
29
-
(cd strx && find . -type f -print0 | xargs -0 ar -cr xrt_smi_strx.a)
33
+
# Create archives for multiple platforms
34
+
python build_archives.py phx ve2 strx
35
+
```
36
+
37
+
### Script Features
38
+
39
+
-**Recursive file collection**: Automatically includes files from subdirectories
40
+
-**Flattened structure**: Creates archives with all files at root level
41
+
-**Smart updates**: Only updates files newer than existing archive
42
+
-**Change tracking**: Shows added, removed, and updated files
43
+
-**Automatic exclusion**: Skips `.a` files to prevent self-inclusion
44
+
45
+
### Example Output
30
46
31
-
# Archive all VE2 subdirectories
32
-
(cd ve2 && find . -type f -print0 | xargs -0 ar -cr xrt_smi_ve2.a)
47
+
```
48
+
Processing 1 folder(s)...
49
+
Updating xrt_smi_strx.a from 25 files...
50
+
✓ Updated: strx/xrt_smi_strx.a
51
+
➕ New files added (2):
52
+
+ firmware_log.json
53
+
+ trace_events.json
54
+
🔄 Files updated (3):
55
+
~ config.json
56
+
~ nop.elf
57
+
~ validate.xclbin
58
+
59
+
SUMMARY:
60
+
Archives processed: 1/1
61
+
Total new files: 2
62
+
Total updated files: 3
63
+
```
64
+
65
+
## Manual Archive Creation (Alternative)
66
+
67
+
If you need to create archives manually without the script:
68
+
69
+
```bash
70
+
# Archive all STRX subdirectories manually
71
+
(cd strx && find . -type f ! -name "*.a" -print0 | xargs -0 ar -cr xrt_smi_strx.a)
72
+
73
+
# Archive all PHX subdirectories manually
74
+
(cd phx && find . -type f ! -name "*.a" -print0 | xargs -0 ar -cr xrt_smi_phx.a)
33
75
```
34
76
35
77
## File Types in Archives
36
78
37
-
Each test category typically contains:
79
+
Each platform directory typically contains:
38
80
-**ELF files** (`.elf`): Executable binaries for the NPU
0 commit comments