svn commit: r504045 - in head/games/leela-zero: . files
Yuri Victorovich
yuri at FreeBSD.org
Wed Jun 12 22:23:19 UTC 2019
Author: yuri
Date: Wed Jun 12 22:23:17 2019
New Revision: 504045
URL: https://svnweb.freebsd.org/changeset/ports/504045
Log:
games/leela-zero: Add the patch preventing rejection of CPU-only OpenCL providers
Added:
head/games/leela-zero/files/patch-src_OpenCL.cpp (contents, props changed)
Modified:
head/games/leela-zero/Makefile
Modified: head/games/leela-zero/Makefile
==============================================================================
--- head/games/leela-zero/Makefile Wed Jun 12 20:02:42 2019 (r504044)
+++ head/games/leela-zero/Makefile Wed Jun 12 22:23:17 2019 (r504045)
@@ -3,6 +3,7 @@
PORTNAME= leela-zero
DISTVERSIONPREFIX= v
DISTVERSION= 0.17
+PORTREVISION= 1
CATEGORIES= games
MAINTAINER= yuri at FreeBSD.org
Added: head/games/leela-zero/files/patch-src_OpenCL.cpp
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/games/leela-zero/files/patch-src_OpenCL.cpp Wed Jun 12 22:23:17 2019 (r504045)
@@ -0,0 +1,11 @@
+--- src/OpenCL.cpp.orig 2019-06-12 22:15:19 UTC
++++ src/OpenCL.cpp
+@@ -785,7 +785,7 @@ OpenCL<net_t>::OpenCL(int gpu, bool silent) {
+ bool preferred = (gpu == id);
+
+ if (((this_score > best_score)
+- && (d.getInfo<CL_DEVICE_TYPE>() != CL_DEVICE_TYPE_CPU))
++ /*&& (d.getInfo<CL_DEVICE_TYPE>() != CL_DEVICE_TYPE_CPU)*/) // Do not reject CPU-only OpenCL providers because some users only have that (ex. pocl)
+ || preferred) {
+ best_version = opencl_version;
+ best_platform = p;
More information about the svn-ports-all
mailing list