1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-02 01:20:54 +00:00

games/leela-zero: Add the patch preventing rejection of CPU-only OpenCL providers

This commit is contained in:
Yuri Victorovich 2019-06-12 22:23:17 +00:00
parent 9fc882a25d
commit b16627b31a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=504045
2 changed files with 12 additions and 0 deletions

View File

@ -3,6 +3,7 @@
PORTNAME= leela-zero
DISTVERSIONPREFIX= v
DISTVERSION= 0.17
PORTREVISION= 1
CATEGORIES= games
MAINTAINER= yuri@FreeBSD.org

View File

@ -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;