An environment variable added to allow testing on platforms
(e.g. Intel iGPU) without source modification.
Change-Id: I1daef54509427475267e3e6b1a8fcbe4ed529b48
override |Gromacs| default behavior, or if you want to test
your own kernels.
+``GMX_OCL_DISABLE_COMPATIBILITY_CHECK``
+ Disables the hardware compatibility check. Useful for developers
+ and allows testing the OpenCL kernels on non-supported platforms
+ (like Intel iGPUs) without source code modification.
+
Analysis and Core Functions
---------------------------
``GMX_QM_ACCURACY``
*/
static int is_gmx_supported_gpu_id(struct gmx_device_info_t *ocl_gpu_device)
{
+ if ((getenv("GMX_OCL_DISABLE_COMPATIBILITY_CHECK")) != NULL)
+ {
+ return egpuCompatible;
+ }
+
/* Only AMD and NVIDIA GPUs are supported for now */
switch (ocl_gpu_device->vendor_e)
{