1+ /*
2+ * Licensed to the Apache Software Foundation (ASF) under one
3+ * or more contributor license agreements. See the NOTICE file
4+ * distributed with this work for additional information
5+ * regarding copyright ownership. The ASF licenses this file
6+ * to you under the Apache License, Version 2.0 (the
7+ * "License"); you may not use this file except in compliance
8+ * with the License. You may obtain a copy of the License at
9+ *
10+ * http://www.apache.org/licenses/LICENSE-2.0
11+ *
12+ * Unless required by applicable law or agreed to in writing,
13+ * software distributed under the License is distributed on an
14+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+ * KIND, either express or implied. See the License for the
16+ * specific language governing permissions and limitations
17+ * under the License.
18+ */
19+
120package org .apache .sysds .performance .matrix ;
221
322import java .util .Arrays ;
@@ -26,7 +45,7 @@ public MatrixMultiplicationPerf(int N, IGenerate<Pair<MatrixBlock, MatrixBlock>>
2645 public void run () throws Exception {
2746 warmup (() -> mm (k ), 10 );
2847 if (single )
29- execute (() -> mm (1 ), "mm SingleThread" , N / 10 );
48+ execute (() -> mm (1 ), "mm SingleThread" , N / 10 );
3049 if (k != 1 )
3150 execute (() -> mm (k ), "mm MultiThread: " + k );
3251 }
@@ -60,7 +79,7 @@ public static void main(String[] args) throws Exception {
6079 k = 10 ;
6180 sp1 = 1.0 ;
6281 sp2 = 1.0 ;
63- single = true ;
82+ single = true ;
6483 }
6584 else {
6685
@@ -83,7 +102,7 @@ public static void main(String[] args) throws Exception {
83102
84103 int N = Math .min (100000 , (int ) Math .max (100L , 50000000000L / inst ));
85104
86- System .out .println ("MM Perf : rep " +N + " -- " + Arrays .toString (args ));
105+ System .out .println ("MM Perf : rep " + N + " -- " + Arrays .toString (args ));
87106
88107 new MatrixMultiplicationPerf (N , gen , InfrastructureAnalyzer .getLocalParallelism (), single ).run ();
89108 }
0 commit comments