added gpu helper for ios