Skip to content

Commit 1590d17

Browse files
committed
[MINOR] Fix parfor result merge tests (disable auto vectorization)
We have to disable auto vectorization here in order to test the parfor specifics (in this case, spark jobs for result merge)
1 parent b716d02 commit 1590d17

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

src/test/scripts/functions/parfor/parfor_pr_resultmerge1c.dml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ R1 = matrix(0,rows=m,cols=n);
2828
parfor( i in 1:(n-7), par=8, mode=REMOTE_SPARK, resultmerge=REMOTE_SPARK, taskpartitioner=FACTORING, opt=NONE )
2929
{
3030
X = V[,i];
31+
while(FALSE){} # prevent auto vectorization
3132
R1[,i] = X;
32-
}
33+
}
3334

34-
R = R1 + R1;
35-
write(R, $4);
35+
R = R1 + R1;
36+
write(R, $4);

src/test/scripts/functions/parfor/parfor_pr_resultmerge1d.dml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
# to you under the Apache License, Version 2.0 (the
88
# "License"); you may not use this file except in compliance
99
# with the License. You may obtain a copy of the License at
10-
#
10+
#
1111
# http://www.apache.org/licenses/LICENSE-2.0
12-
#
12+
#
1313
# Unless required by applicable law or agreed to in writing,
1414
# software distributed under the License is distributed on an
1515
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -28,8 +28,9 @@ R1 = matrix(1,rows=m,cols=n);
2828
parfor( i in 1:(n-7), par=8, mode=REMOTE_SPARK, resultmerge=REMOTE_SPARK, taskpartitioner=FACTORING, opt=NONE )
2929
{
3030
X = V[,i];
31+
while(FALSE){} # prevent auto vectorization
3132
R1[,i] = X;
32-
}
33+
}
3334

34-
R = R1 + R1;
35-
write(R, $4);
35+
R = R1 + R1;
36+
write(R, $4);

0 commit comments

Comments
 (0)