1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-29 05:38:00 +00:00

benchmarks/clpeak: This brings clpeak to the latest git revision. FreeBSD patches were upstreamed and it now supports fp16 tests. Changing mail address to my FreeBSD one.

Reviewed by:	swills (mentor)
Approved by:	swills (mentor)
Differential Revision:	https://reviews.freebsd.org/D10917
This commit is contained in:
Johannes M Dieterich 2017-06-02 00:20:18 +00:00
parent 71f721906a
commit 6c5b229b20
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=442362
3 changed files with 6 additions and 38 deletions

View File

@ -2,12 +2,10 @@
# $FreeBSD$
PORTNAME= clpeak
PORTVERSION= 1.0
PORTREVISION= 2
DISTVERSIONPREFIX= v
PORTVERSION= 1.0g20170524
CATEGORIES= benchmarks
MAINTAINER= dieterich@ogolem.org
MAINTAINER= jmd@FreeBSD.org
COMMENT= Benchmarking tool to measure peak capabilities of opencl devices
LICENSE= PD
@ -22,7 +20,7 @@ ONLY_FOR_ARCHS_REASON_amd64= only builds and is supported on amd64
USE_GITHUB= yes
GH_ACCOUNT= krrishnarraj
GH_PROJECT= clpeak
GH_TAGNAME= 75c8746
USE_LDCONFIG= yes
USE_GL= gl

View File

@ -1,2 +1,3 @@
SHA256 (krrishnarraj-clpeak-v1.0_GH0.tar.gz) = 97b738c80319807d9b20294f778dfbbe81f83bf903dd3b46619b1a71a067e469
SIZE (krrishnarraj-clpeak-v1.0_GH0.tar.gz) = 95681
TIMESTAMP = 1495689208
SHA256 (krrishnarraj-clpeak-1.0g20170524-75c8746_GH0.tar.gz) = 1e393a04df56777d00baf5e954fca3224fbd2c010580db3e6f28a7182bee05c5
SIZE (krrishnarraj-clpeak-1.0g20170524-75c8746_GH0.tar.gz) = 201266

View File

@ -1,31 +0,0 @@
--- src/include/common.h.orig 2015-11-04 06:03:41 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