Cubie Characterizing Matrix Multiplication Units across General Parallel Patterns in Scientific Computing