Skip to content

Commit 9935773

Browse files
michaelbeale-ILnikhilprao
authored andcommitted
initial commit
Signed-off-by: Nirav N Shah <nirav.n.shah@intel.com> Signed-off-by: Narayan Ranganathan <narayan.ranganathan@intel.com> Signed-off-by: Nikhil Rao <nikhil.rao@intel.com>
0 parents  commit 9935773

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+8866
-0
lines changed

.gitignore

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
.vscode/
2+
autom4te.cache/
3+
src/.deps/
4+
src/Makefile.in
5+
src/Makefile
6+
src/*.o
7+
src/dsa_perf_micros
8+
aclocal.m4
9+
configure
10+
Makefile.in
11+
version.m4
12+
config.log
13+
config.status
14+
compile
15+
install-sh
16+
depcomp

LICENSE

Lines changed: 131 additions & 0 deletions
Large diffs are not rendered by default.

Makefile.am

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
SUBDIRS = src

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Intel® DSA Performance Micros
2+
3+
Intel® DSA Performance Micros is a Linux application that allows the user to characterize
4+
latency and bandwidth for DSA operations and arrive at the device configuration and
5+
programming parameters that would work best for their application.
6+
7+
Documentation files in the reStructuredText format are available in the doc/ directory
8+
9+
If you would like to build html documentation, please install sphinx, a
10+
python based document generator from https://www.sphinx-doc.org/en/master/usage/installation.html and
11+
follow the steps below
12+
13+
```bash
14+
cd doc
15+
make html
16+
```

autogen.sh

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#!/bin/sh -e
2+
3+
if [ -f .git/hooks/pre-commit.sample -a ! -f .git/hooks/pre-commit ] ; then
4+
cp -p .git/hooks/pre-commit.sample .git/hooks/pre-commit && \
5+
chmod +x .git/hooks/pre-commit && \
6+
echo "Activated pre-commit hook."
7+
fi
8+
9+
$(dirname $0)/git-version-gen
10+
reconf_args=''
11+
[ -n "$*" ] && reconf_args="$*"
12+
autoreconf --install --symlink $reconf_args
13+
14+
libdir() {
15+
echo $(cd $1/$(gcc -print-multi-os-directory); pwd)
16+
}
17+
18+
args="--prefix=/usr \
19+
--sysconfdir=/etc \
20+
--libdir=$(libdir /usr/lib)"
21+
22+
echo
23+
echo "----------------------------------------------------------------"
24+
echo "Initialized build system. For a common configuration please run:"
25+
echo "----------------------------------------------------------------"
26+
echo
27+
echo "./configure CFLAGS='-g -O2' $args"
28+
echo

configs/1e1w-d.conf

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
[
2+
{
3+
"dev":"dsa0",
4+
"token_limit":0,
5+
"groups":[
6+
{
7+
"dev":"group0.0",
8+
"tokens_reserved":0,
9+
"use_token_limit":0,
10+
"grouped_workqueues":[
11+
{
12+
"dev":"wq0.0",
13+
"mode":"dedicated",
14+
"size":128,
15+
"group_id":0,
16+
"priority":10,
17+
"block_on_fault":0,
18+
"type":"user",
19+
"name":"app1",
20+
"threshold":15
21+
}
22+
],
23+
"grouped_engines":[
24+
{
25+
"dev":"engine0.0",
26+
"group_id":0
27+
}
28+
]
29+
}
30+
]
31+
}
32+
]

configs/1e1w-s.conf

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
[
2+
{
3+
"dev":"dsa0",
4+
"token_limit":0,
5+
"groups":[
6+
{
7+
"dev":"group0.0",
8+
"tokens_reserved":0,
9+
"use_token_limit":0,
10+
"grouped_workqueues":[
11+
{
12+
"dev":"wq0.0",
13+
"mode":"shared",
14+
"size":128,
15+
"group_id":0,
16+
"priority":10,
17+
"block_on_fault":0,
18+
"type":"user",
19+
"name":"app1",
20+
"threshold":128
21+
}
22+
],
23+
"grouped_engines":[
24+
{
25+
"dev":"engine0.0",
26+
"group_id":0
27+
}
28+
]
29+
}
30+
]
31+
}
32+
]

configs/4e1w-d.conf

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
[
2+
{
3+
"dev":"dsa0",
4+
"token_limit":0,
5+
"groups":[
6+
{
7+
"dev":"group0.0",
8+
"tokens_reserved":0,
9+
"use_token_limit":0,
10+
"grouped_workqueues":[
11+
{
12+
"dev":"wq0.0",
13+
"mode":"dedicated",
14+
"size":128,
15+
"group_id":0,
16+
"priority":10,
17+
"block_on_fault":0,
18+
"type":"user",
19+
"name":"app1",
20+
"threshold":15
21+
}
22+
],
23+
"grouped_engines":[
24+
{
25+
"dev":"engine0.0",
26+
"group_id":0
27+
},
28+
{
29+
"dev":"engine0.1",
30+
"group_id":0
31+
},
32+
{
33+
"dev":"engine0.2",
34+
"group_id":0
35+
},
36+
{
37+
"dev":"engine0.3",
38+
"group_id":0
39+
}
40+
]
41+
}
42+
]
43+
}
44+
]

configs/4e4w-d.conf

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
[
2+
{
3+
"dev":"dsa0",
4+
"token_limit":0,
5+
"groups":[
6+
{
7+
"dev":"group0.0",
8+
"tokens_reserved":0,
9+
"use_token_limit":0,
10+
"grouped_workqueues":[
11+
{
12+
"dev":"wq0.0",
13+
"mode":"dedicated",
14+
"size":32,
15+
"group_id":0,
16+
"priority":10,
17+
"block_on_fault":0,
18+
"type":"user",
19+
"name":"app1",
20+
"threshold":15
21+
},
22+
{
23+
"dev":"wq0.1",
24+
"mode":"dedicated",
25+
"size":32,
26+
"group_id":0,
27+
"priority":10,
28+
"block_on_fault":0,
29+
"type":"user",
30+
"name":"app2",
31+
"threshold":15
32+
},
33+
{
34+
"dev":"wq0.2",
35+
"mode":"dedicated",
36+
"size":32,
37+
"group_id":0,
38+
"priority":10,
39+
"block_on_fault":0,
40+
"type":"user",
41+
"name":"app3",
42+
"threshold":15
43+
},
44+
{
45+
"dev":"wq0.3",
46+
"mode":"dedicated",
47+
"size":32,
48+
"group_id":0,
49+
"priority":10,
50+
"block_on_fault":0,
51+
"type":"user",
52+
"name":"app1",
53+
"threshold":15
54+
}
55+
],
56+
"grouped_engines":[
57+
{
58+
"dev":"engine0.0",
59+
"group_id":0
60+
},
61+
{
62+
"dev":"engine0.1",
63+
"group_id":0
64+
},
65+
{
66+
"dev":"engine0.2",
67+
"group_id":0
68+
},
69+
{
70+
"dev":"engine0.3",
71+
"group_id":0
72+
}
73+
]
74+
}
75+
]
76+
}
77+
]

configs/4e8w-d.conf

Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
[
2+
{
3+
"dev":"dsa0",
4+
"token_limit":0,
5+
"groups":[
6+
{
7+
"dev":"group0.0",
8+
"tokens_reserved":0,
9+
"use_token_limit":0,
10+
"grouped_workqueues":[
11+
{
12+
"dev":"wq0.0",
13+
"mode":"dedicated",
14+
"size":16,
15+
"group_id":0,
16+
"priority":10,
17+
"block_on_fault":0,
18+
"type":"user",
19+
"name":"app1",
20+
"threshold":15
21+
},
22+
{
23+
"dev":"wq0.1",
24+
"mode":"dedicated",
25+
"size":16,
26+
"group_id":0,
27+
"priority":10,
28+
"block_on_fault":0,
29+
"type":"user",
30+
"name":"app2",
31+
"threshold":15
32+
},
33+
{
34+
"dev":"wq0.2",
35+
"mode":"dedicated",
36+
"size":16,
37+
"group_id":0,
38+
"priority":10,
39+
"block_on_fault":0,
40+
"type":"user",
41+
"name":"app3",
42+
"threshold":15
43+
},
44+
{
45+
"dev":"wq0.3",
46+
"mode":"dedicated",
47+
"size":16,
48+
"group_id":0,
49+
"priority":10,
50+
"block_on_fault":0,
51+
"type":"user",
52+
"name":"app1",
53+
"threshold":15
54+
},
55+
{
56+
"dev":"wq0.4",
57+
"mode":"dedicated",
58+
"size":16,
59+
"group_id":0,
60+
"priority":10,
61+
"block_on_fault":0,
62+
"type":"user",
63+
"name":"app2",
64+
"threshold":15
65+
},
66+
{
67+
"dev":"wq0.5",
68+
"mode":"dedicated",
69+
"size":16,
70+
"group_id":0,
71+
"priority":10,
72+
"block_on_fault":0,
73+
"type":"user",
74+
"name":"app3",
75+
"threshold":15
76+
},
77+
{
78+
"dev":"wq0.6",
79+
"mode":"dedicated",
80+
"size":16,
81+
"group_id":0,
82+
"priority":10,
83+
"block_on_fault":0,
84+
"type":"user",
85+
"name":"app4",
86+
"threshold":15
87+
},
88+
{
89+
"dev":"wq0.7",
90+
"mode":"dedicated",
91+
"size":16,
92+
"group_id":0,
93+
"priority":10,
94+
"block_on_fault":0,
95+
"type":"user",
96+
"name":"app4",
97+
"threshold":15
98+
}
99+
],
100+
"grouped_engines":[
101+
{
102+
"dev":"engine0.0",
103+
"group_id":0
104+
},
105+
{
106+
"dev":"engine0.1",
107+
"group_id":0
108+
},
109+
{
110+
"dev":"engine0.2",
111+
"group_id":0
112+
},
113+
{
114+
"dev":"engine0.3",
115+
"group_id":0
116+
}
117+
]
118+
}
119+
]
120+
}
121+
]

0 commit comments

Comments
 (0)