test_particles: fixing compatibility with nvcc