Start sketching parsec buildroot package

This commit is contained in:
Ciro Santilli
2018-03-02 08:26:38 +00:00
parent c482a682d2
commit 6e15dcb60e
12 changed files with 93 additions and 27 deletions

View File

@@ -0,0 +1,16 @@
config BR2_PACKAGE_PARSEC
bool "PARSEC"
help
Parsec system benchmark.
http://parsec.cs.princeton.edu/
if BR2_PACKAGE_PARSEC
config BR2_PACKAGE_PARSEC_BUILD_LIST
string "build_list"
default all
help
Space separated list of parsec packages to build.
endif

View File

@@ -0,0 +1 @@
name: PARSEC

View File

@@ -0,0 +1,23 @@
################################################################################
#
# PARSEC
#
################################################################################
PARSEC_VERSION = master
PARSEC_SITE = git@github.com:cirosantilli/parsec-benchmark.git
PARSEC_SITE_METHOD = git
define PARSEC_BUILD_CMDS
cd $(@D) && . env.sh && for pkg in $(BR2_PACKAGE_PARSEC_BUILD_LIST); do parsecmgmt -a build -p $$pkg; done
#cd '$(@D)/gem5/util/m5' && $(MAKE) -f 'Makefile.$(ARCH_MAKE)' CC='$(TARGET_CC)' LD='$(TARGET_LD)'
endef
define PARSEC_INSTALL_TARGET_CMDS
# This is a bit coarse and makes the image huge with useless source code,
# and input files, but I don't feel like creating per-package installs.
# And it doesn't matter much for simulators anyways.
rsync -av '$(@D)/' '$(TARGET_DIR)/parsec'
endef
$(eval $(generic-package))

14
parsec-benchmark/parsec.sh Executable file
View File

@@ -0,0 +1,14 @@
#!/usr/bin/env bash
wget http://parsec.cs.princeton.edu/download/3.0/parsec-3.0.tar.gz
tar -xvzf parsec-3.0.tar.gz
cd parsec-3.0
. env.sh
parsecmgmt -a build -p streamcluster
parsecmgmt -a run -p streamcluster
parsecmgmt -a build -p all
wget http://parsec.cs.princeton.edu/download/3.0/parsec-3.0-input-sim.tar.gz
tar -xzf parsec-3.0-input-sim.tar.gz
parsecmgmt -a run -p streamcluster -i simsmall
parsecmgmt -a run -p streamcluster -i simlarge -n 2