Skip to content

Commit

Permalink
Add test to take advantage of new flexibility
Browse files Browse the repository at this point in the history
  • Loading branch information
jpzg committed Aug 19, 2020
1 parent 3c1d039 commit d217625
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions experiments/sharding.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/bin/bash

# Author: Jacob Grossbard
#
#

data_file="data/sharding.csv"

echo "Tasklets,DPUs,Operation,Data size,Allocation time,Loading time,Data" \
" copy in,Parameter copy in,Launch,Data copy out,Performance count copy" \
" out,Free DPUs,Performance count min, max, average" > $data_file

make experiment > /dev/null

for ranks in {1..8}
do
max_data=$(($ranks*(1 << 32)))
data=8192

while [ $data -le $max_data ]
do
echo "Testing $operation with $data bytes across $ranks ranks..."
./experiment/pimcrypto dpu $(($ranks * 64)) encrypt $data >> $data_file
data=$(($data * 2))
done
done

0 comments on commit d217625

Please sign in to comment.