Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Jun 2016 10:56:14 +0000 (UTC)
From:      Roman Bogorodskiy <novel@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r417650 - in head/benchmarks: . clpeak clpeak/files
Message-ID:  <201606271056.u5RAuEP2075563@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: novel
Date: Mon Jun 27 10:56:14 2016
New Revision: 417650
URL: https://svnweb.freebsd.org/changeset/ports/417650

Log:
  Add clpeak 1.0, benchmarking tool to measure peak capabilities of opencl
  devices.
  
  PR:		209849
  Submitted by:	Johannes Dieterich <dieterich@ogolem.org>

Added:
  head/benchmarks/clpeak/
  head/benchmarks/clpeak/Makefile   (contents, props changed)
  head/benchmarks/clpeak/distinfo   (contents, props changed)
  head/benchmarks/clpeak/files/
  head/benchmarks/clpeak/files/patch-src_include_common.h   (contents, props changed)
  head/benchmarks/clpeak/pkg-descr   (contents, props changed)
Modified:
  head/benchmarks/Makefile

Modified: head/benchmarks/Makefile
==============================================================================
--- head/benchmarks/Makefile	Mon Jun 27 10:49:15 2016	(r417649)
+++ head/benchmarks/Makefile	Mon Jun 27 10:56:14 2016	(r417650)
@@ -7,6 +7,7 @@
     SUBDIR += blogbench
     SUBDIR += bonnie
     SUBDIR += bonnie++
+    SUBDIR += clpeak
     SUBDIR += cpipe
     SUBDIR += dbench
     SUBDIR += dbs

Added: head/benchmarks/clpeak/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/benchmarks/clpeak/Makefile	Mon Jun 27 10:56:14 2016	(r417650)
@@ -0,0 +1,38 @@
+# Created by: Johannes Dieterich <dieterich@ogolem.org>
+# $FreeBSD$
+
+PORTNAME=	clpeak
+PORTVERSION=	1.0
+DISTVERSIONPREFIX=	v
+CATEGORIES=	benchmarks
+
+MAINTAINER=	dieterich@ogolem.org
+COMMENT=	Benchmarking tool to measure peak capabilities of opencl devices
+
+LICENSE=	PD
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	opencl>=0:devel/opencl
+LIB_DEPENDS=	libOpenCL.so:devel/ocl-icd \
+		libGL.so:graphics/libGL
+RUN_DEPENDS=	opencl>=0:devel/opencl
+
+BROKEN_FreeBSD_9=	clpeak is only supported on FreeBSD 10.1 and newer
+ONLY_FOR_ARCHS=	amd64
+ONLY_FOR_ARCHS_REASON_amd64=	only builds and is supported on amd64
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	krrishnarraj
+GH_PROJECT=	clpeak
+
+USE_LDCONFIG=	yes
+USES=		cmake
+
+CXXFLAGS+=	-std=c++11
+
+PLIST_FILES=	bin/clpeak
+
+do-install:
+		${INSTALL_PROGRAM} ${WRKSRC}/clpeak ${STAGEDIR}${PREFIX}/bin/clpeak
+
+.include <bsd.port.mk>

Added: head/benchmarks/clpeak/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/benchmarks/clpeak/distinfo	Mon Jun 27 10:56:14 2016	(r417650)
@@ -0,0 +1,2 @@
+SHA256 (krrishnarraj-clpeak-v1.0_GH0.tar.gz) = 97b738c80319807d9b20294f778dfbbe81f83bf903dd3b46619b1a71a067e469
+SIZE (krrishnarraj-clpeak-v1.0_GH0.tar.gz) = 95681

Added: head/benchmarks/clpeak/files/patch-src_include_common.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/benchmarks/clpeak/files/patch-src_include_common.h	Mon Jun 27 10:56:14 2016	(r417650)
@@ -0,0 +1,31 @@
+--- src/include/common.h.orig	2016-05-28 05:15:40 UTC
++++ src/include/common.h
+@@ -8,13 +8,19 @@
+     #include <CL/cl.hpp>
+ #endif
+ 
++#ifdef __FreeBSD__
++    #include <sys/types.h>
++#endif
++
+ #include <stdlib.h>
+ #include <chrono>
+ #include <string>
+ 
+ #define TAB             "  "
+ #define NEWLINE         "\n"
++#ifndef __FreeBSD__
+ #define uint            unsigned int
++#endif
+ 
+ #define MAX(X, Y)       \
+     (X > Y)? X: Y;
+@@ -41,6 +47,8 @@
+     #elif defined(__arm__)
+         #define OS_NAME     "Linux ARM"
+     #endif
++#elif defined(__FreeBSD__)
++    #define OS_NAME         "FreeBSD"
+ #endif
+ 
+ 

Added: head/benchmarks/clpeak/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/benchmarks/clpeak/pkg-descr	Mon Jun 27 10:56:14 2016	(r417650)
@@ -0,0 +1,9 @@
+clpeak
+
+a synthetic benchmarking tool to measure peak capabilities of opencl devices
+
+A synthetic benchmarking tool to measure peak capabilities of opencl devices.
+It only measures the peak metrics that can be achieved using vector operations
+and does not represent a real-world use case
+
+WWW: https://github.com/krrishnarraj/clpeak



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201606271056.u5RAuEP2075563>