add gpu max for pattern (0, 1) and added all gpu max pattern for gpu min.