Skip to content
Snippets Groups Projects
Commit ce19bbf7 authored by Georges Da Costa's avatar Georges Da Costa
Browse files

Removes external files from npb benchmarks

parent eb999459
No related branches found
No related tags found
No related merge requests found
File deleted
...@@ -61,19 +61,24 @@ class NpbBench: ...@@ -61,19 +61,24 @@ class NpbBench:
basedir = os.path.dirname(os.path.abspath(__file__)) basedir = os.path.dirname(os.path.abspath(__file__))
'Builds NPB benchmark' 'Builds NPB benchmark'
executor.local('tar xfC %s/NPB3.4-MPI.tgz /tmp/' % basedir, shell=False)
executor.local('cp /tmp/NPB3.4-MPI/config/make.def.template /tmp/NPB3.4-MPI/config/make.def') target_file = os.path.expanduser('~/.local/tmp/NPB3.4-MPI.tar.gz')
executor.local("sed -i 's/mpif90/mpif90 -fallow-argument-mismatch -fallow-invalid-boz/' /tmp/NPB3.4-MPI/config/make.def") if not os.path.isfile(target_file):
os.makedirs(os.path.expanduser('~/.local/tmp/'), exist_ok=True)
executor.local('wget https://www.nas.nasa.gov/assets/npb/NPB3.4.tar.gz -O %s' % target_file)
executor.local('tar xfC %s /tmp/' % target_file, shell=False)
executor.local('cp /tmp/NPB3.4/NPB3.4-MPI/config/make.def.template /tmp/NPB3.4/NPB3.4-MPI/config/make.def')
executor.local("sed -i 's/mpif90/mpif90 -fallow-argument-mismatch -fallow-invalid-boz/' /tmp/NPB3.4/NPB3.4-MPI/config/make.def")
nbproc = executor.nbcores nbproc = executor.nbcores
if self.params is None: if self.params is None:
self.params = standard_parameters(nbproc) self.params = standard_parameters(nbproc)
for bench in self.names: for bench in self.names:
executor.local('cd /tmp/NPB3.4-MPI/; make %s CLASS=%s' executor.local('cd /tmp/NPB3.4/NPB3.4-MPI/; make %s CLASS=%s'
%(bench, self.params[bench])) %(bench, self.params[bench]))
executor.local('cp /tmp/NPB3.4-MPI/bin/* /tmp/bin/') executor.local('cp /tmp/NPB3.4/NPB3.4-MPI/bin/* /tmp/bin/')
for key in self.params: for key in self.params:
self.params[key] = [(self.params[key], npb_constraints(key, nbproc))] self.params[key] = [(self.params[key], npb_constraints(key, nbproc))]
......
...@@ -5,7 +5,7 @@ with open("README.md", "r") as fh: ...@@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
setuptools.setup( setuptools.setup(
name="expetator", name="expetator",
version="0.3.3", version="0.3.7",
author="Georges Da Costa", author="Georges Da Costa",
author_email="georges.da-costa@irit.fr", author_email="georges.da-costa@irit.fr",
description="A framework for monitoring HPC applications using DVFS", description="A framework for monitoring HPC applications using DVFS",
...@@ -23,4 +23,6 @@ setuptools.setup( ...@@ -23,4 +23,6 @@ setuptools.setup(
'monitors/*.bz2', 'monitors/*.diff', 'monitors/*.bz2', 'monitors/*.diff',
'leverages/*.[ch]', 'leverages/*.sh', 'leverages/*_mak']}, 'leverages/*.[ch]', 'leverages/*.sh', 'leverages/*_mak']},
include_package_data=True, include_package_data=True,
install_requires=['execo'],
) )
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment