A two-tier design space exploration algorithm to construct GPU performance model