https://github.com/cwsmith/dotprod
loop testing
https://github.com/cwsmith/dotprod
Last synced: 11 months ago
JSON representation
loop testing
- Host: GitHub
- URL: https://github.com/cwsmith/dotprod
- Owner: cwsmith
- License: bsd-3-clause
- Created: 2020-09-27T04:08:22.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-09-27T06:03:22.000Z (over 5 years ago)
- Last Synced: 2025-03-01T00:39:14.223Z (over 1 year ago)
- Language: C++
- Size: 7.81 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dotprod
loop testing
run the following commands to record max timings over 10 runs
```
sys=someName
for i in {0..10}; do ./dotprod ; done &> ${sys}.log
awk 'BEGIN {a=0;c=0;d=0;t=0}{\
a=($5>a ? $5 : a); \
c=($6>c ? $6 : c); \
d=($7>d ? $7 : d); \
t=($8>t ? $8 : t)} \
END{print "max (sec) alloc compute dealloc total " a " " c " " d " " t}' ${sys}.log
```
## turtle
Ryzen 5 3600
GCC 10.1.0
```
max (sec) alloc compute dealloc total 0.00860 0.20777 0.00001 0.21611
```
## aimos
Power9
GCC 8.4.0
```
max (sec) alloc compute dealloc total 0.00508 0.35628 0.00004 0.36136
```
allocate and build
```
$ salloc -N 1 --gres=gpu:4 -t 10
$ ssh
$ module load gcc
$ g++ -O3 dotprod.cpp -o dotprod
```