Hello,
the error message indicates that Gromacs was not built with GPU support. Did you compile it yourself and specify -DGMX_GPU=on
when running cmake
(as per the installation guide), or get it from the Ubuntu repositories?
If the latter, try compiling it yourself.
Regards,
Petter