Closed Luigi-Crisci closed 6 months ago
@PeterTh Yeah not a fan of #ifdef
but I tried to minimize the impact on performance and avoid code duplication.
I will substitute the macro with the sycl::specialized
specific one, but I don't think it will the problem as older AdaptiveCpp versions will still fail to compile the spec constant benchmark.
IMO the best idea would be to have Cmake checks for SYCL2020 features and selectively enable the benchmarks.
Gonna merge this as it blocks other PRs. Thanks to all of you!
This PR adds support for AdaptiveCpp
sycl::specialized
to the specialization constant benchmark. While the AdaptiveCpp extension is not technically a spec constant implementation, it serves the same purpose therefore I think it's correct to include it in SYCL-Bench.