You searched for: “androdioecious
androdiecious, androdioecious; androdioecism, androdioecy
With flowers on one plant hermaphrodite and on the other staminate only.