From: Justin Cinkelj <justin.cink...@xlab.si>
Committer: Waldemar Kozaczuk <jwkozac...@gmail.com>
Branch: master
Add STREAM memory benchmark
Signed-off-by: Justin Cinkelj <justin.cink...@xlab.si>
Message-Id: <20180130142744.30099-1-justin.cink...@xlab.si>
---
diff --git a/stream/Makefile b/stream/Makefile
--- a/stream/Makefile
+++ b/stream/Makefile
@@ -0,0 +1,28 @@
+#
+# Copyright (C) 2014 Cloudius Systems, Ltd.
+#
+# This work is open source software, licensed under the terms of the
+# BSD license as described in the LICENSE file in the top-level directory.
+#
+
+# "Official" STREAM homepage is at
http://www.cs.virginia.edu/stream/ref.html
+# This patch gets code from github.
+url = https://github.com/jeffhammond/STREAM
+
+SRCDIR=upstream/STREAM
+module: ${SRCDIR}/stream ${SRCDIR}/stream.so
+
+${SRCDIR}:
+ mkdir -p upstream
+ cd upstream; git clone https://github.com/jeffhammond/STREAM
+
+${SRCDIR}/stream.c: ${SRCDIR}
+
+${SRCDIR}/stream: ${SRCDIR}/stream.c
+ gcc -O2 $^ -o $@
+
+${SRCDIR}/stream.so: ${SRCDIR}/stream.c
+ gcc -O2 $^ -o $@ -fPIC -shared
+
+clean:
+ rm -rf upstream
diff --git a/stream/usr.manifest b/stream/usr.manifest
--- a/stream/usr.manifest
+++ b/stream/usr.manifest
@@ -0,0 +1 @@
+/stream.so: ${MODULE_DIR}/upstream/STREAM/stream.so
--
You received this message because you are subscribed to the Google Groups "OSv
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to osv-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.