From owner-svn-ports-all@freebsd.org Mon Jun 27 10:56:16 2016 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1BED7B80D6D; Mon, 27 Jun 2016 10:56:16 +0000 (UTC) (envelope-from novel@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id EB1D02E2B; Mon, 27 Jun 2016 10:56:15 +0000 (UTC) (envelope-from novel@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u5RAuFH0075568; Mon, 27 Jun 2016 10:56:15 GMT (envelope-from novel@FreeBSD.org) Received: (from novel@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u5RAuEP2075563; Mon, 27 Jun 2016 10:56:14 GMT (envelope-from novel@FreeBSD.org) Message-Id: <201606271056.u5RAuEP2075563@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: novel set sender to novel@FreeBSD.org using -f From: Roman Bogorodskiy Date: Mon, 27 Jun 2016 10:56:14 +0000 (UTC) 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 X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Jun 2016 10:56:16 -0000 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 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 +# $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 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 + #endif + ++#ifdef __FreeBSD__ ++ #include ++#endif ++ + #include + #include + #include + + #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