[Bug 250562] devel/opencl: lacks OpenCL 3.0 support

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Nov 26 19:17:17 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=250562

--- Comment #8 from Jan Beich <jbeich at FreeBSD.org> ---
Comment on attachment 219902
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=219902
Adapt OpenCL API 3.0

Can you rebase against current ports/ tree?

$ make
===>  Patching for opencl-3.0
===>  Applying FreeBSD patches for opencl-3.0 from
/usr/ports/devel/opencl/files
1 out of 1 hunks failed--saving rejects to cl_platform.h.rej
===>  FAILED Applying FreeBSD patch-cl__platform.h
===> FAILED to apply cleanly FreeBSD patch(es)  patch-cl__platform.h
*** Error code 1

> -PORTVERSION=	2.2
> -PORTREVISION=	2
> +PORTVERSION=	3.0
[...]
> -COMMENT=	Open Computing Language (OpenCL) specifications V2.2 (header files)
> +COMMENT=	Open Computing Language (OpenCL) specifications V3.0 (header files)
[...]
> -These header are covering OpenCL API 2.2
> +These header are covering OpenCL API 3.0

Why duplicate OpenCL version in COMMENT and pkg-descr?

> -LICENSE=	unknown
> +LICENSE=	Apache 2.0

Define LICENSE=APACHE20 instead and drop other LICENSE_* variables. Otherwise,
it fails to build:

===>  License not correctly defined: multiple licenses in LICENSE, but
LICENSE_COMB is set to single (or undefined)
make: exec(exit) failed (No such file or directory)

> -CONFLICTS=	opencl-1.[0-2]
> +CONFLICTS=	opencl-[1-2].[0-2]

CONFLICTS has no impact on current package. If no other package is named
"opencl" then CONFLICTS can be dropped.

> -CLHPP_TAG=	8b6a312
> +CLHPP_TAG=	524f5ca

benchmarks/clpeak needs header from a newer CLHPP snapshot. Can you update and
include CL/opencl.hpp?

In file included from src/logger.cpp:1:
In file included from include/logger.h:12:
include/common.h:8:10: fatal error: 'CL/opencl.hpp' file not found
#include <CL/opencl.hpp>
         ^~~~~~~~~~~~~~~

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list