You've already forked macports-ports
mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
bwbench: submission
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
|
||||
|
||||
PortSystem 1.0
|
||||
PortGroup github 1.0
|
||||
PortGroup makefile 1.0
|
||||
|
||||
github.setup RRZE-HPC TheBandwidthBenchmark 1.4 v
|
||||
github.tarball_from archive
|
||||
name bwbench
|
||||
revision 0
|
||||
categories benchmarks
|
||||
license MIT
|
||||
maintainers {i0ntempest @i0ntempest} openmaintainer
|
||||
|
||||
description The ultimate memory bandwidth benchmark
|
||||
long_description ${description} - heavily inspired by John McCalpin's Stream benchmark and\
|
||||
contains a collection of simple streaming kernels
|
||||
|
||||
checksums rmd160 2cc9b640bd841399431e0c766ef849312b9ae499 \
|
||||
sha256 9030e5a32bedbf72633f13478cc3810667688ce5393c30bb338407d9fc575b9a \
|
||||
size 11820
|
||||
|
||||
post-patch {
|
||||
if {[string match *gcc* ${configure.compiler}]} {
|
||||
reinplace "s|TOOLCHAIN ?= CLANG|TOOLCHAIN ?= GCC|" config.mk
|
||||
}
|
||||
reinplace "s|ENABLE_OPENMP ?= true|ENABLE_OPENMP ?= false|" config.mk
|
||||
# Remove compiler suffix in binary filename
|
||||
reinplace "s|bwbench-\$(TOOLCHAIN)|bwbench|" Makefile
|
||||
}
|
||||
|
||||
# Makefile does not accept `all`
|
||||
build.target
|
||||
|
||||
destroot {
|
||||
xinstall -m 0755 ${worksrcpath}/${name} ${destroot}${prefix}/bin/
|
||||
}
|
||||
|
||||
variant openmp description {enable parallelism support using OpenMP} {
|
||||
compiler.openmp_version 4.5
|
||||
compiler.blacklist-append {macports-clang-[0-9].*}
|
||||
post-patch {
|
||||
reinplace "s|ENABLE_OPENMP ?= false|ENABLE_OPENMP ?= true|" config.mk
|
||||
}
|
||||
}
|
||||
|
||||
default_variants-append \
|
||||
+openmp
|
||||
Reference in New Issue
Block a user