Skip to content

Commit

Permalink
return zero for CL_DEVICE_DOUBLE_FP_CONFIG
Browse files Browse the repository at this point in the history
Fix #757
  • Loading branch information
rjodinchr committed Jan 22, 2025
1 parent a91d6a8 commit c8a4aff
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/device.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -558,10 +558,8 @@ struct cvk_device : public _cl_device_id,
return CL_FP_ROUND_TO_NEAREST | CL_FP_INF_NAN | CL_FP_FMA;
}

if ((fptype == CL_DEVICE_DOUBLE_FP_CONFIG) && supports_fp64()) {
return CL_FP_ROUND_TO_NEAREST | CL_FP_ROUND_TO_ZERO |
CL_FP_ROUND_TO_INF | CL_FP_INF_NAN | CL_FP_FMA |
CL_FP_DENORM;
if (fptype == CL_DEVICE_DOUBLE_FP_CONFIG) {
return 0;
}

return 0;
Expand Down

0 comments on commit c8a4aff

Please sign in to comment.