Cannot use neigh_modify exclude with GPU neighbor builds

Dear LAMMPS users,

I have a system in which I define a sphere where events take place. Around this sphere, there are atoms that are supposed to be “frozen”. As it is indicated in the user’s manual, it is possible, in order to avoid needless calculations, to use group exclude command. This should turn off calculations of pairwise interactions between atoms in the region around the sphere.

To do so I proceeded as follows:

Definition of the sphere

region spheremin sphere 0. 0. 0. 15.0
group sphere region spheremin

Definition of group outside sphere

group frozen subtract all sphere

Command to turn off pairwise interactions between atoms outside sphere

neigh_modify exclude group frozen frozen

However, I got the following error message:

ERROR: Cannot use neigh_modify exclude with GPU neighbor builds (…/fix_gpu.cpp:254)

I searched for a solution through the mailing list but did not find anything.
I found some old answers from 2012 but the solution given then seems no longer applicable since commands have changed, in particular, the package gpu command.

Any idea how to solve this?
Many thanks in advance and best regards,

I could solve it with
package gpu 2 neigh no.
Now the neighbour list is built on the CPU instead of the GPU.

Best regards,

Or you could set force and velocity to zero on these atoms which also makes them not move.