Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
Signed-off-by: Nirav N Shah <[email protected]>
Signed-off-by: Narayan Ranganathan <[email protected]>
Signed-off-by: Nikhil Rao <[email protected]>
  • Loading branch information
michaelbeale-IL authored and nikhilprao committed Mar 30, 2022
0 parents commit 9935773
Show file tree
Hide file tree
Showing 52 changed files with 8,866 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
.vscode/
autom4te.cache/
src/.deps/
src/Makefile.in
src/Makefile
src/*.o
src/dsa_perf_micros
aclocal.m4
configure
Makefile.in
version.m4
config.log
config.status
compile
install-sh
depcomp
131 changes: 131 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SUBDIRS = src
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Intel® DSA Performance Micros

Intel® DSA Performance Micros is a Linux application that allows the user to characterize
latency and bandwidth for DSA operations and arrive at the device configuration and
programming parameters that would work best for their application.

Documentation files in the reStructuredText format are available in the doc/ directory

If you would like to build html documentation, please install sphinx, a
python based document generator from https://www.sphinx-doc.org/en/master/usage/installation.html and
follow the steps below

```bash
cd doc
make html
```
28 changes: 28 additions & 0 deletions autogen.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/bin/sh -e

if [ -f .git/hooks/pre-commit.sample -a ! -f .git/hooks/pre-commit ] ; then
cp -p .git/hooks/pre-commit.sample .git/hooks/pre-commit && \
chmod +x .git/hooks/pre-commit && \
echo "Activated pre-commit hook."
fi

$(dirname $0)/git-version-gen
reconf_args=''
[ -n "$*" ] && reconf_args="$*"
autoreconf --install --symlink $reconf_args

libdir() {
echo $(cd $1/$(gcc -print-multi-os-directory); pwd)
}

args="--prefix=/usr \
--sysconfdir=/etc \
--libdir=$(libdir /usr/lib)"

echo
echo "----------------------------------------------------------------"
echo "Initialized build system. For a common configuration please run:"
echo "----------------------------------------------------------------"
echo
echo "./configure CFLAGS='-g -O2' $args"
echo
32 changes: 32 additions & 0 deletions configs/1e1w-d.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
[
{
"dev":"dsa0",
"token_limit":0,
"groups":[
{
"dev":"group0.0",
"tokens_reserved":0,
"use_token_limit":0,
"grouped_workqueues":[
{
"dev":"wq0.0",
"mode":"dedicated",
"size":128,
"group_id":0,
"priority":10,
"block_on_fault":0,
"type":"user",
"name":"app1",
"threshold":15
}
],
"grouped_engines":[
{
"dev":"engine0.0",
"group_id":0
}
]
}
]
}
]
32 changes: 32 additions & 0 deletions configs/1e1w-s.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
[
{
"dev":"dsa0",
"token_limit":0,
"groups":[
{
"dev":"group0.0",
"tokens_reserved":0,
"use_token_limit":0,
"grouped_workqueues":[
{
"dev":"wq0.0",
"mode":"shared",
"size":128,
"group_id":0,
"priority":10,
"block_on_fault":0,
"type":"user",
"name":"app1",
"threshold":128
}
],
"grouped_engines":[
{
"dev":"engine0.0",
"group_id":0
}
]
}
]
}
]
44 changes: 44 additions & 0 deletions configs/4e1w-d.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
[
{
"dev":"dsa0",
"token_limit":0,
"groups":[
{
"dev":"group0.0",
"tokens_reserved":0,
"use_token_limit":0,
"grouped_workqueues":[
{
"dev":"wq0.0",
"mode":"dedicated",
"size":128,
"group_id":0,
"priority":10,
"block_on_fault":0,
"type":"user",
"name":"app1",
"threshold":15
}
],
"grouped_engines":[
{
"dev":"engine0.0",
"group_id":0
},
{
"dev":"engine0.1",
"group_id":0
},
{
"dev":"engine0.2",
"group_id":0
},
{
"dev":"engine0.3",
"group_id":0
}
]
}
]
}
]
77 changes: 77 additions & 0 deletions configs/4e4w-d.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
[
{
"dev":"dsa0",
"token_limit":0,
"groups":[
{
"dev":"group0.0",
"tokens_reserved":0,
"use_token_limit":0,
"grouped_workqueues":[
{
"dev":"wq0.0",
"mode":"dedicated",
"size":32,
"group_id":0,
"priority":10,
"block_on_fault":0,
"type":"user",
"name":"app1",
"threshold":15
},
{
"dev":"wq0.1",
"mode":"dedicated",
"size":32,
"group_id":0,
"priority":10,
"block_on_fault":0,
"type":"user",
"name":"app2",
"threshold":15
},
{
"dev":"wq0.2",
"mode":"dedicated",
"size":32,
"group_id":0,
"priority":10,
"block_on_fault":0,
"type":"user",
"name":"app3",
"threshold":15
},
{
"dev":"wq0.3",
"mode":"dedicated",
"size":32,
"group_id":0,
"priority":10,
"block_on_fault":0,
"type":"user",
"name":"app1",
"threshold":15
}
],
"grouped_engines":[
{
"dev":"engine0.0",
"group_id":0
},
{
"dev":"engine0.1",
"group_id":0
},
{
"dev":"engine0.2",
"group_id":0
},
{
"dev":"engine0.3",
"group_id":0
}
]
}
]
}
]
121 changes: 121 additions & 0 deletions configs/4e8w-d.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
[
{
"dev":"dsa0",
"token_limit":0,
"groups":[
{
"dev":"group0.0",
"tokens_reserved":0,
"use_token_limit":0,
"grouped_workqueues":[
{
"dev":"wq0.0",
"mode":"dedicated",
"size":16,
"group_id":0,
"priority":10,
"block_on_fault":0,
"type":"user",
"name":"app1",
"threshold":15
},
{
"dev":"wq0.1",
"mode":"dedicated",
"size":16,
"group_id":0,
"priority":10,
"block_on_fault":0,
"type":"user",
"name":"app2",
"threshold":15
},
{
"dev":"wq0.2",
"mode":"dedicated",
"size":16,
"group_id":0,
"priority":10,
"block_on_fault":0,
"type":"user",
"name":"app3",
"threshold":15
},
{
"dev":"wq0.3",
"mode":"dedicated",
"size":16,
"group_id":0,
"priority":10,
"block_on_fault":0,
"type":"user",
"name":"app1",
"threshold":15
},
{
"dev":"wq0.4",
"mode":"dedicated",
"size":16,
"group_id":0,
"priority":10,
"block_on_fault":0,
"type":"user",
"name":"app2",
"threshold":15
},
{
"dev":"wq0.5",
"mode":"dedicated",
"size":16,
"group_id":0,
"priority":10,
"block_on_fault":0,
"type":"user",
"name":"app3",
"threshold":15
},
{
"dev":"wq0.6",
"mode":"dedicated",
"size":16,
"group_id":0,
"priority":10,
"block_on_fault":0,
"type":"user",
"name":"app4",
"threshold":15
},
{
"dev":"wq0.7",
"mode":"dedicated",
"size":16,
"group_id":0,
"priority":10,
"block_on_fault":0,
"type":"user",
"name":"app4",
"threshold":15
}
],
"grouped_engines":[
{
"dev":"engine0.0",
"group_id":0
},
{
"dev":"engine0.1",
"group_id":0
},
{
"dev":"engine0.2",
"group_id":0
},
{
"dev":"engine0.3",
"group_id":0
}
]
}
]
}
]
6 changes: 6 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
AC_INIT([dsa_perf_micros], 1.0)
AM_INIT_AUTOMAKE([foreign])
AC_PROG_CC
CFLAGS+=" -mavx512f"
AC_CONFIG_FILES([Makefile src/Makefile])
AC_OUTPUT
Loading

0 comments on commit 9935773

Please sign in to comment.