define an additional shared variable in a device function