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

Configure dpcpp floating-point precision

Jonas5
Beginner
540 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
1 Solution
NoorjahanSk_Intel
Moderator
511 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-and-reference/top/compiler-reference/floating-point-operations.html


>>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.


View solution in original post

0 Kudos
3 Replies
NoorjahanSk_Intel
Moderator
512 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-and-reference/top/compiler-reference/floating-point-operations.html


>>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.


0 Kudos
NoorjahanSk_Intel
Moderator
477 Views

Hi,


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


Thanks & Regards,

Noorjahan


0 Kudos
NoorjahanSk_Intel
Moderator
425 Views

Hi,

 

We assume that your issue is resolved. If you need any additional information, please post a new question as this thread will no longer be monitored by Intel.

 

Thanks & Regards,

Noorjahan.

 

0 Kudos
Reply