Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Nov 2020 19:17:16 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 250562] devel/opencl: lacks OpenCL 3.0 support
Message-ID:  <bug-250562-7788-LuJUsdAgsB@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-250562-7788@https.bugs.freebsd.org/bugzilla/>
References:  <bug-250562-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D250562

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

Can you rebase against current ports/ tree?

$ make
=3D=3D=3D>  Patching for opencl-3.0
=3D=3D=3D>  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
=3D=3D=3D>  FAILED Applying FreeBSD patch-cl__platform.h
=3D=3D=3D> FAILED to apply cleanly FreeBSD patch(es)  patch-cl__platform.h
*** Error code 1

> -PORTVERSION=3D	2.2
> -PORTREVISION=3D	2
> +PORTVERSION=3D	3.0
[...]
> -COMMENT=3D	Open Computing Language (OpenCL) specifications V2.2 (header =
files)
> +COMMENT=3D	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=3D	unknown
> +LICENSE=3D	Apache 2.0

Define LICENSE=3DAPACHE20 instead and drop other LICENSE_* variables. Other=
wise,
it fails to build:

=3D=3D=3D>  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=3D	opencl-1.[0-2]
> +CONFLICTS=3D	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=3D	8b6a312
> +CLHPP_TAG=3D	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>
         ^~~~~~~~~~~~~~~

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-250562-7788-LuJUsdAgsB>