Commit 13f89c5d authored by aumgn's avatar aumgn
Browse files

Add dedup

parent 15c1b4f9
......@@ -4,7 +4,7 @@ export BODYTRACK_INPUTS_ARCHIVE=$BENCH_PATH/tmp/parsec-inputs/pkgs/apps/bodytrac
export BODYTRACK_INPUTS_DIR=$TMP_INPUTS_DIR/bodytrack
prepare_bodytrack() {
if [[ ! -f $TMP_INPUTS_DIR/BodyShapeParameters.txt ]]; then
if [[ ! -f $BODYTRACK_INPUTS_DIR/BodyShapeParameters.txt ]]; then
mkdir -p $BODYTRACK_INPUTS_DIR
tar -xf $BODYTRACK_INPUTS_ARCHIVE -C $BODYTRACK_INPUTS_DIR
fi
......
export DEDUP_APP_DIR=$PARSEC_DIR/pkgs/kernels/dedup
export DEDUP_APP_BIN=$DEDUP_APP_DIR/inst/amd64-linux.gcc-pthreads/bin/dedup
export DEDUP_APP_INPUTS_ARCHIVE=$BENCH_PATH/tmp/parsec-inputs/pkgs/kernels/dedup/inputs/input_native.tar
export DEDUP_APP_INPUTS_DIR=$TMP_INPUTS_DIR/dedup
prepare_dedup_app() {
if [[ ! -f $DEDUP_APP_INPUTS_DIR/FC-6-x86_64-disc1.iso ]]; then
mkdir -p $DEDUP_APP_INPUTS_DIR
tar -xf $DEDUP_APP_INPUTS_ARCHIVE -C $DEDUP_APP_INPUTS_DIR
fi
}
dump_dedup_app() {
local inputs=$(find $DEDUP_APP_INPUTS_DIR -type f -name '*.iso')
sha1sum $DEDUP_APP_BIN $inputs >>$dump_program_dir/dedup_app
}
command_dedup_app() {
dedup_threads=$(( ($threads-2) / 3 ))
echo $cmd_prefix $DEDUP_APP_BIN -c -p -v -t $dedup_threads \
-i $DEDUP_APP_INPUTS_DIR/FC-6-x86_64-disc1.iso \
-o $DEDUP_APP_INPUTS_DIR/output.dat.ddp
}
export DEDUP_POOL_DIR=$PARSEC_DIR/pkgs/kernels/dedup
export DEDUP_POOL_BIN=$DEDUP_POOL_DIR/inst/amd64-linux.gcc-pthreads/bin/dedup
export DEDUP_POOL_INPUTS_ARCHIVE=$BENCH_PATH/tmp/parsec-inputs/pkgs/kernels/dedup/inputs/input_native.tar
export DEDUP_POOL_INPUTS_DIR=$TMP_INPUTS_DIR/dedup
prepare_dedup_pool() {
if [[ ! -f $DEDUP_POOL_INPUTS_DIR/FC-6-x86_64-disc1.iso ]]; then
mkdir -p $DEDUP_POOL_INPUTS_DIR
tar -xf $DEDUP_POOL_INPUTS_ARCHIVE -C $DEDUP_POOL_INPUTS_DIR
fi
}
dump_dedup_pool() {
local inputs=$(find $DEDUP_POOL_INPUTS_DIR -type f -name '*.iso')
sha1sum $DEDUP_POOL_BIN $inputs >>$dump_program_dir/dedup_pool
}
command_dedup_pool() {
echo $cmd_prefix $DEDUP_POOL_BIN -c -p -v -t $threads \
-i $DEDUP_POOL_INPUTS_DIR/FC-6-x86_64-disc1.iso \
-o $DEDUP_POOL_INPUTS_DIR/output.dat.ddp
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment