added result check for gpu