Boost logo

Boost :

From: Matt Borland (matt_at_[hidden])
Date: 2024-08-30 11:52:21


> Hi all
>

> What about the following idea:
> We introduce a macro, something like
> "BOOST_COMPUTE_COMPILE_WITHOUT_OPENCL". In Boost.Compute we check for this
> macro, and when it is set we include a new stub headerfile instead of the
> regular OpenCL headerfile. The stub headerfile should contain all the
> necessary definitions so that Boost.Compute can be compiled, even when
> OpenCL is not actually installed.
> That would be step one and would make it possible to find at least
> non-compatible changes in the other Boost libraries.
>

> Step two would be to enhance the stub file so that the test programs also
> run without error. I can't say yet if this would even be possible, and how
> big the effort would be for that.
>

> Best regards
> René
>

Could Intel's oneAPI compiler be used to provide OpenCL for free in GHA? Here's an example setup from Math: https://github.com/boostorg/math/blob/develop/.github/workflows/ci.yml#L549. Compute already has a CML so it should be quite easy to try and see if it works.

Matt






Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk