oneapi-src / oneAPI-samples

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

Add missing headers to introduce math functions needed by sample. #2460

Closed timmiesmith closed 3 weeks ago

timmiesmith commented 3 weeks ago

Existing Sample Changes

Description

A recent change in the DPC++ compiler has removed an implicit inclusion of cmath and complex header files. This change adds those explicitly to the same to resolve compile errors that otherwise are encountered with the new DPC++ compiler.

Fixes Issue#

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?

Confirmed the sample would not compile on my local system as-is, and that adding the header files as suggested resolved the issue.

timmiesmith commented 3 weeks ago

Fix has been applied to development branch already.