# Porting PoCL for Gromacs SYCL backend

**URL:** <https://gromacs.bioexcel.eu/t/porting-pocl-for-gromacs-sycl-backend/11586>\
**Category:** Developers discussions\
**Created:** [February 18, 2025, 2:50pm UTC](https://gromacs.bioexcel.eu/t/porting-pocl-for-gromacs-sycl-backend/11586 "2025-02-18T14:50:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Newsky](https://avatars.discourse-cdn.com/v4/letter/n/f05b48/32.png) [@Newsky](https://gromacs.bioexcel.eu/u/Newsky)\
**Post date:** [February 18, 2025, 2:50pm UTC](https://gromacs.bioexcel.eu/t/porting-pocl-for-gromacs-sycl-backend/11586/1 "2025-02-18T14:50:26Z")

</div>

Hi,  
we have modified PoCL to enable offloading  
Gromacs-\>SYCL-\>OpenCL using the PoCL cpu driver.  
This required some minor changes on the Gromacs side and I would be interested in upstreaming those.

The changes are small, but I’m unsure about their potential impact on other backends.  
Are the proposed changes best discussed in a pull request, or should I elaborate on them here first?

Thanks,  
Tapio

---

<div class="post-metadata">

**Author:** ![al42and](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/al42and/32/1393_2.png) [@al42and](https://gromacs.bioexcel.eu/u/al42and)\
**Post date:** [February 18, 2025, 10:29pm UTC](https://gromacs.bioexcel.eu/t/porting-pocl-for-gromacs-sycl-backend/11586/2 "2025-02-18T22:29:03Z")

</div>

Hi Tapio,

Nice work!

We have [a developer call in 12 hours](https://gromacs.bioexcel.eu/t/february-19th-biweekly-gromacs-developer-meeting-morning-edition/11474/3), and the next one in ~2 weeks, which is a natural place for such discussion. The agenda for this Wednesday is already finalized and is quite packed, but there’s always time for a quick chat.

Without knowing the scope of changes it’s hard to suggest the best way. But if they are “small” and, presumably, you already have the code, opening an MR at our [GitLab](https://gitlab.com/gromacs/gromacs/) seems fine without any further discussion.

For either MR or the live discussion, a list of hardware targeted (now and potentially) and _some_ performance numbers would be nice to have, in addition to the patch itself. Hard to judge the code for accelerated computing not knowing how much it accelerates things.

---

<div class="post-metadata">

**Author:** ![Newsky](https://avatars.discourse-cdn.com/v4/letter/n/f05b48/32.png) [@Newsky](https://gromacs.bioexcel.eu/u/Newsky)\
**Post date:** [February 19, 2025, 3:16pm UTC](https://gromacs.bioexcel.eu/t/porting-pocl-for-gromacs-sycl-backend/11586/3 "2025-02-19T15:16:25Z")

</div>

Thanks, I will proceed with the MR then.  
Currently, only the fallback-version of the kernel compiler of PoCL runs Gromacs so it’s not very efficient. We are hoping to bring the functionality to the more optimized default kernel compiler in near future.

Tapio
