added Error when varying variable is defined in global scope with nvptx target