Skip to content

Commit 7cfda86

Browse files
committed
Add an element to collect ddr timing information
This only works on intel so is a separate element.
1 parent ab17b92 commit 7cfda86

5 files changed

Lines changed: 49 additions & 0 deletions

File tree

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
======================
2+
ipa-extra-hardware-ram
3+
======================
4+
Collects DDR timing info on Intel processors.
5+
6+
* ``DIB_DDR_TIMINGS_VERSION``: Version of ddr-timings to use.
7+
See `<ddr-timings https://github.com/stackhpc/ddr-timings>`_.
8+
For example:
9+
10+
.. code-block::
11+
12+
export DIB_DDR_TIMINGS_VERSION=1.0.0
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ipa-extra-hardware
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/bash
2+
3+
if [ "${DIB_DEBUG_TRACE:-0}" -gt 0 ]; then
4+
set -x
5+
fi
6+
set -eu
7+
set -o pipefail
8+
9+
install-packages -e gcc
10+
11+
if $(which yum > /dev/null 2>&1); then
12+
13+
${YUM:-yum} clean all
14+
15+
# Rebuilding the rpm database after removing packages will reduce
16+
# its size
17+
rpm --rebuilddb
18+
19+
fi
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
3+
if [ "${DIB_DEBUG_TRACE:-1}" -gt 0 ]; then
4+
set -x
5+
fi
6+
set -u
7+
set -o pipefail
8+
9+
VERSION=${DIB_DDR_TIMINGS_VERSION:-1.0.0}
10+
11+
push /tmp
12+
curl -k -o ddr-timings.tar.gz https://github.com/stackhpc/ddr-timings/archive/$VERSION.tar.gz
13+
tar -xvf ddr-timings.tar.gz
14+
cd ddr-timings-$VERSION && make install
15+
popd
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
gcc:
2+
make:

0 commit comments

Comments
 (0)