dont allow non-constant static in body function with cuda target