GROMACS version:2021.4
GROMACS modification: No
I have installed the GROMACS 2021.4 on my Macbook with M1, OpenCL supported. However it seems the GPU is not supported.
The log shows:
Running on 1 node with total 8 cores, 8 logical cores, 0 compatible GPUs
Hardware detected:
CPU info:
Vendor: ARM
Brand: Unknown CPU brand
Family: 0 Model: 0 Stepping: 0
Features: neon neon_asimd
Hardware topology: Only logical processor count
GPU info:
Number of GPUs detected: 1 #0: name: Apple M1 Pro, vendor: Apple, device version: OpenCL 1.2 , status: incompatible
Is this means the GPU acceletate doesn’t support M1?
No it is not supported. You can try to see if it works at all by setting the GMX_GPU_DISABLE_COMPATIBILITY_CHECK environment variable which disables the compatibility check. Let us know what you find!
If that seems to work, do make sure that you run extensive tests before you proceed to use the GPU.
Thank you! After setting GMX_GPU_DISABLE_COMPATIBILITY_CHECK=1 and with a OpenCL-enabled build, GROMACS is indeed able to find and utilize the GPU in M1 chip.
Thanks for the feedback. Note however that running just make check will not use the GPU, you need to disable the compatibility check as you did for mdrun. Do the tests still pass if you run GMX_GPU_DISABLE_COMPATIBILITY_CHECK=1 make check?
Hi,
I have installed Gromacs 2023.1 on a Mac M1 Pro using Homebrew.
Do you know if it is possible to enable GPU support with this type of installation?
Thank you very much!