# GROMACS-SYCL on Intel GPUs

**URL:** <https://gromacs.bioexcel.eu/t/gromacs-sycl-on-intel-gpus/2210>\
**Category:** User discussions\
**Tags:** installation-error\
**Created:** [May 24, 2021, 4:49am UTC](https://gromacs.bioexcel.eu/t/gromacs-sycl-on-intel-gpus/2210 "2021-05-24T04:49:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vdle](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/vdle/32/844_2.png) [@vdle](https://gromacs.bioexcel.eu/u/vdle)\
**Post date:** [May 24, 2021, 4:49am UTC](https://gromacs.bioexcel.eu/t/gromacs-sycl-on-intel-gpus/2210/1 "2021-05-24T04:49:11Z")

</div>

GROMACS version: 2021 (master)  
GROMACS modification: No

Hi,

My goal is to demonstrate the feasibility of SYCL implementation of GROMACS on various hardwares.  
For instance, on Intel DevCloud, with lasted llvm-intel compiler, I got the following message related to dummy kernel:

### 

WARNING: While sanity checking device #5, Unable to run dummy kernel on device Intel(R) Iris(R) Xe MAX Graphics [0x4905]: Unhandled type of command group -59 (CL\_INVALID\_OPERATION)

* * *

Program: gmx mdrun, version 2021-sycl  
Source file: src/gromacs/taskassignment/findallgputasks.cpp (line 86)  
MPI rank: 0 (out of 2)

Fatal error:  
Cannot run short-ranged nonbonded interactions on a GPU because no GPU is  
detected.

### 

Following a similar discussion regarding CUDA support, I am checking other merge requests related to SYCL. Due to my unfamiliarity with GROMACS development, I am not sure which pull requrest should be merged.  
Being able to run a simple test with GROMACS-SYCL would be suffice at this stage.

---

<div class="post-metadata">

**Author:** ![pszilard](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/pszilard/32/21_2.png) [@pszilard](https://gromacs.bioexcel.eu/u/pszilard)\
**Post date:** [May 28, 2021, 1:50pm UTC](https://gromacs.bioexcel.eu/t/gromacs-sycl-on-intel-gpus/2210/2 "2021-05-28T13:50:17Z")

</div>

> [@vdle](#):
>
> WARNING: While sanity checking device #5, Unable to run dummy kernel on device Intel(R) Iris(R) Xe MAX Graphics [0x4905]: Unhandled type of command group -59 (CL\_INVALID\_OPERATION)

This looks like a software stack issue, can you test whether you can run other programs on the same node?

> [@vdle](#):
>
> Following a similar discussion regarding CUDA support, I am checking other merge requests related to SYCL. Due to my unfamiliarity with GROMACS development, I am not sure which pull requrest should be merged.  
> Being able to run a simple test with GROMACS-SYCL would be suffice at this stage.

Snapshot releases are made from the stable 2021 branch, you can use those. Otherwise, you can try the latest master which has more features ported to SYCL, but expect it to change quite a lot as works is ongoing on these features.

---

<div class="post-metadata">

**Author:** ![vdle](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/vdle/32/844_2.png) [@vdle](https://gromacs.bioexcel.eu/u/vdle)\
**Post date:** [May 31, 2021, 2:56am UTC](https://gromacs.bioexcel.eu/t/gromacs-sycl-on-intel-gpus/2210/3 "2021-05-31T02:56:49Z")

</div>

Thanks for the suggestions.

It was indeed a issue with software stacks.  
I was able to build gromacs using the following cmake options:

$ cmake \  
-DGMX\_BUILD\_OWN\_FFTW=ON   
-DGMX\_GPU=SYCL   
-DCMAKE\_C\_COMPILER=icx   
-DCMAKE\_CXX\_COMPILER=icpx \  
-DCMAKE\_INSTALL\_PREFIX=…

Here, cmake/3.16.3 works while higher version incorrectly identified dpcpp as ‘IntelLLVM 2021.2.0’  
For now I am satisfied that at least the binary can runs a simple simulation.

Regards.
