Convert STREAM to MakefilePackage (#3692)

This commit is contained in:
Adam J. Stewart 2017-04-04 15:00:35 -05:00 committed by GitHub
parent 3c57862084
commit 3866dba265

View File

@ -25,7 +25,7 @@
from spack import * from spack import *
class Stream(Package): class Stream(MakefilePackage):
"""The STREAM benchmark is a simple synthetic benchmark program that """The STREAM benchmark is a simple synthetic benchmark program that
measures sustainable memory bandwidth (in MB/s) and the corresponding measures sustainable memory bandwidth (in MB/s) and the corresponding
computation rate for simple vector kernels.""" computation rate for simple vector kernels."""
@ -36,7 +36,7 @@ class Stream(Package):
variant('openmp', default=False, description='Build with OpenMP support') variant('openmp', default=False, description='Build with OpenMP support')
def patch(self): def edit(self, spec, prefix):
makefile = FileFilter('Makefile') makefile = FileFilter('Makefile')
# Use the Spack compiler wrappers # Use the Spack compiler wrappers
@ -54,8 +54,6 @@ def patch(self):
makefile.filter('FFLAGS = .*', 'FFLAGS = {0}'.format(fflags)) makefile.filter('FFLAGS = .*', 'FFLAGS = {0}'.format(fflags))
def install(self, spec, prefix): def install(self, spec, prefix):
make()
# Manual installation # Manual installation
mkdir(prefix.bin) mkdir(prefix.bin)
install('stream_c.exe', prefix.bin) install('stream_c.exe', prefix.bin)