unitaryfund / qrack

Comprehensive, GPU accelerated framework for developing universal virtual quantum processors
https://qrack.readthedocs.io/en/latest/
GNU Lesser General Public License v3.0
176 stars 38 forks source link

Tweak OpenCL compile options #867

Closed WrathfulSpatula closed 3 years ago

WrathfulSpatula commented 3 years ago

I have added -cl-strict-aliasing to the OpenCL compilation optimization flags. (I think we never alias any pointer range, in kernels.) I considered removing -cl-denorms-are-zero, but denorms are smaller absolute value than our suggested minimum single amplitude values per FP type, in qrack_types.hpp.

WrathfulSpatula commented 3 years ago

If -Werror reports a warning-as-error, please open a bug report. Thank you!