mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 10:15:57 +01:00
Start sketching parsec buildroot package
This commit is contained in:
16
parsec-benchmark/Config.in
Normal file
16
parsec-benchmark/Config.in
Normal 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
|
||||
1
parsec-benchmark/external.desc
Normal file
1
parsec-benchmark/external.desc
Normal file
@@ -0,0 +1 @@
|
||||
name: PARSEC
|
||||
23
parsec-benchmark/external.mk
Normal file
23
parsec-benchmark/external.mk
Normal 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))
|
||||
1
parsec-benchmark/parsec-benchmark
Submodule
1
parsec-benchmark/parsec-benchmark
Submodule
Submodule parsec-benchmark/parsec-benchmark added at 7ce7fde923
14
parsec-benchmark/parsec.sh
Executable file
14
parsec-benchmark/parsec.sh
Executable 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
|
||||
Reference in New Issue
Block a user