oneapi-src / oneAPI-samples

Samples for Intel® oneAPI Toolkits
https://oneapi-src.github.io/oneAPI-samples/
MIT License
915 stars 678 forks source link

Fix SYCL math builtin ambiguity #2290

Closed steffenlarsen closed 3 months ago

steffenlarsen commented 4 months ago

Existing Sample Changes

Description

SYCL math builtins may cause ambiguity issues with std versions of the same builtins if it is not qualified by its namespace. This commit addresses this issue in select samples.

Replaces https://github.com/oneapi-src/oneAPI-samples/pull/2289.

External Dependencies

None

Type of change

Please delete options that are not relevant. Add a 'X' to the one that is applicable.

How Has This Been Tested?

As specified in the sample directories.