Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enabled ACL_SUPPORT_DOUBLE to support cl_khr_fp64 #230

Merged
merged 1 commit into from
Jan 3, 2023

Conversation

haoxian2
Copy link
Contributor

@haoxian2 haoxian2 commented Dec 13, 2022

Our FPGA runtime failed in HW runs with error "Required aspect fp64 is not supported on the device" because we claim supporting double precision floating-point in kernels but don't support thecl_khr_fp64 extension.

According to OpenCL 1.2 spec (cl_khr_fp64 (khronos.org)), cl_khr_fp64 should be supported if CL_DEVICE_DOUBLE_FP_CONFIG for clGetDeviceInfo for a device is not zero.
Our FPGA runtime already supports CL_FP_DENORM, CL_FP_INF_NAN, CL_FP_ROUND_TO_NEAREST, CL_FP_ROUND_TO_ZERO, CL_FP_ROUND_TO_INF, and CL_FP_FMA for CL_DEVICE_DOUBLE_FP_CONFIG, so cl_khr_fp64 should also be enabled.
It can be enabled by setting ACL_SUPPORT_DOUBLE to 1 in the Cmakelist here.

@pcolberg pcolberg added this to the 2023.2 milestone Dec 23, 2022
@pcolberg pcolberg added the bug Something isn't working label Dec 23, 2022
@zibaiwan zibaiwan modified the milestones: 2023.2, 2023.1 Dec 30, 2022
@zibaiwan
Copy link
Contributor

zibaiwan commented Jan 3, 2023

Due to this SYCL change intel/llvm#6982, this is a critical issue. Because if we don't solve this, we will lose double support in oneAPI. This change should go into 2023.1. Hao already tested the previous failed tests in simulation and hardware.

Copy link
Contributor

@zibaiwan zibaiwan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @haoxian2 !

Copy link
Contributor

@pcolberg pcolberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @haoxian2 and @zibaiwan!

@pcolberg pcolberg merged commit d188f5c into intel:main Jan 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants