X-Git-Url: http://biod.pnpi.spb.ru/gitweb/?p=alexxy%2Fgromacs.git;a=blobdiff_plain;f=src%2Fgromacs%2Fgpu_utils%2Focl_compiler.cpp;fp=src%2Fgromacs%2Fgpu_utils%2Focl_compiler.cpp;h=64e925b885036f74e01a9dd2049f2d790cbb5a9a;hp=5f826e5e0ab334dffe87b54d5a26e7ddb4b2ca96;hb=5a6c3b3a5ada87dcc7ede0dc79f7e925376745b5;hpb=31ad1552d0e654c8d59363d5e94fb8a573e4d69b diff --git a/src/gromacs/gpu_utils/ocl_compiler.cpp b/src/gromacs/gpu_utils/ocl_compiler.cpp index 5f826e5e0a..64e925b885 100644 --- a/src/gromacs/gpu_utils/ocl_compiler.cpp +++ b/src/gromacs/gpu_utils/ocl_compiler.cpp @@ -169,8 +169,9 @@ static std::string selectCompilerOptions(DeviceVendor deviceVendor) 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";