Intel® oneAPI Data Parallel C++
Support for Intel® oneAPI DPC++ Compiler, Intel® oneAPI DPC++ Library, Intel® DPC++ Compatibility Tool, and GDB*

Configure dpcpp floating-point precision

Jonas5
Beginner
112 Views

What is the preferred way of configuring floating-point precision on dpcpp?

I have previously found a macro for configuring this from SYCL, but I'm unable to find the documentation for it now.

 

My device does not support double fp, and I want it disabled.

 

0 Kudos
2 Replies
NoorjahanSk_Intel
Moderator
83 Views

Hi,


Thanks for reaching out to us.


Please refer to the below link for configuring floating-point operations.

https://www.intel.com/content/www/us/en/develop/documentation/oneapi-dpcpp-cpp-compiler-dev-guide-an...


>>I have previously found a macro for configuring this from SYCL


Could you please let us know which macro you found from SYCL? 


You can disable the double fp using the below pragma

#pragma OPENCL EXTENSION cl_khr_fp64 : disable



Thanks & Regards,

Noorjahan.


NoorjahanSk_Intel
Moderator
49 Views

Hi,


We haven't heard back from you. Could you please provide an update on your issue?


Thanks & Regards,

Noorjahan


Reply