``GMX_OCL_DISABLE_FASTMATH``
Prevents the use of ``-cl-fast-relaxed-math`` compiler option.
+ Not: fast math is always disabled on Intel devices due to instability.
``GMX_OCL_DUMP_LOG``
If defined, the OpenCL build log is always written to the
``GMX_OCL_NOGENCACHE``).
- NVIDIA GPUs: PTX code is saved in the current directory
- with the name ``device_name.ptx``
- - AMD GPUs: ``.IL/.ISA`` files will be created for each OpenCL
+ with the name ``device_name.ptx``
+ - AMD GPUs: ``.IL/.ISA`` files will be created for each OpenCL
kernel built. For details about where these files are
created check AMD documentation for ``-save-temps`` compiler
option.
compilerOptions += " -cl-opt-disable";
}
- /* Fastmath improves performance on all supported arch */
- if (getenv("GMX_OCL_DISABLE_FASTMATH") == nullptr)
+ /* Fastmath improves performance on all supported arch,
+ * but is tends to cause problems on Intel (Issue #3898) */
+ if ((deviceVendor != DeviceVendor::Intel) && (getenv("GMX_OCL_DISABLE_FASTMATH") == nullptr))
{
compilerOptions += " -cl-fast-relaxed-math";