Intel® oneAPI DPC++/C++ Compiler
Talk to fellow users of Intel® oneAPI DPC++/C++ Compiler and companion tools like Intel® oneAPI DPC++ Library, Intel® DPC++ Compatibility Tool, and Intel® Distribution for GDB*

Configure dpcpp floating-point precision

Jonas5
Beginner
547 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
518 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
519 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
484 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
432 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