rm constraint on cuda input square