Vous avez reçu un message "Your GitLab account has been locked ..." ? Pas d'inquiétude : lisez cet article https://docs.gricad-pages.univ-grenoble-alpes.fr/help/unlock/

Commit 61ec25a8 authored by aumgn's avatar aumgn
Browse files

[exp] Add barnes benchmark program

parent 66099e08
PARSECMGMT=benchmarks/parsec/bin/parsecmgmt
PARSEC_INPUTS_URL=http://parsec.cs.princeton.edu/download/3.0/parsec-3.0-input-native.tar.gz
PARSEC_INPUTS_ARCHIVE=tmp/parsec-inputs.tar.gz
PARSEC_INPUTS=tmp/parsec-inputs
PARSECMGMT=benchmarks/parsec/bin/parsecmgmt
WORD_COUNT_INPUTS_URL=http://csl.stanford.edu/~christos/data/word_count.tar.gz
WORD_COUNT_INPUTS_ARCHIVE=tmp/word_count_input.tar.gz
......@@ -28,7 +28,7 @@ wastedcores: submodules
cd tools/wastedcores/tools/visualizations_4.1/sched_profiler; make
.PHONY: build-parsec
build-parsec: build-bodytrack build-streamcluster build-volrend build-lu_cb build-lu_ncb #build-vips
build-parsec: build-bodytrack build-streamcluster build-volrend build-lu_cb build-lu_ncb build-barnes #build-vips
.PHONY: build-bodytrack
build-bodytrack:
......@@ -54,6 +54,10 @@ build-lu_ncb:
build-vips:
$(PARSECMGMT) -a build -p parsec.vips -c gcc-pthreads
.PHONY: build-barnes
build-parsec:
$(PARSECMGMT) -a build -p splash2x.barnes -c gcc-pthreads
$(PARSEC_INPUTS_ARCHIVE):
mkdir -p tmp/
@echo "### Downloading inputs for Parsec (can take a while)"
......
export BARNES_DIR=$PARSEC_DIR/ext/splash2x/apps/barnes
export BARNES_BIN=$BARNES_DIR/inst/amd64-linux.gcc-pthreads/bin/barnes
export BARNES_INPUTS_ARCHIVE=$BENCH_PATH/tmp/parsec-inputs/ext/splash2x/apps/barnes/inputs/input_native.tar
export BARNES_INPUTS_DIR=$TMP_INPUTS_DIR/barnes
prepare_barnes() {
if [[ ! -f $BARNES_INPUTS_DIR/head.opc ]]; then
mkdir -p $BARNES_INPUTS_DIR
tar -xf $BARNES_INPUTS_ARCHIVE -C $BARNES_INPUTS_DIR
fi
for nodes in $nodes_list; do
threads=$(( $nodes * 8 ))
sed "s/NUMPROCS/$threads/" $BARNES_INPUTS_DIR/input.template > $BARNES_INPUTS_DIR/input.$threads
done
}
dump_barnes() {
sha1sum $BARNES_BIN >>$dump_program_dir/barnes
sha1sum $BARNES_INPUTS_DIR/* >>$dump_program_dir/barnes
}
command_barnes() {
echo '$cmd_prefix $BARNES_BIN $threads < $BARNES_INPUTS_DIR/input.$threads'
}
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