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:
parent
9fc882a25d
commit
b16627b31a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=504045
@ -3,6 +3,7 @@
|
||||
PORTNAME= leela-zero
|
||||
DISTVERSIONPREFIX= v
|
||||
DISTVERSION= 0.17
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= games
|
||||
|
||||
MAINTAINER= yuri@FreeBSD.org
|
||||
|
11
games/leela-zero/files/patch-src_OpenCL.cpp
Normal file
11
games/leela-zero/files/patch-src_OpenCL.cpp
Normal 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;
|
Loading…
Reference in New Issue
Block a user