use of org.apache.sysml.api.DMLScript.RUNTIME_PLATFORM in project incubator-systemml by apache.
the class UnboundedScalarRightIndexingTest method runRightIndexingTest.
/**
* @param et
*/
public void runRightIndexingTest(ExecType et, int val) {
RUNTIME_PLATFORM platformOld = rtplatform;
switch(et) {
case MR:
rtplatform = RUNTIME_PLATFORM.HADOOP;
break;
case SPARK:
rtplatform = RUNTIME_PLATFORM.SPARK;
break;
default:
rtplatform = RUNTIME_PLATFORM.HYBRID;
break;
}
boolean sparkConfigOld = DMLScript.USE_LOCAL_SPARK_CONFIG;
if (rtplatform == RUNTIME_PLATFORM.SPARK)
DMLScript.USE_LOCAL_SPARK_CONFIG = true;
try {
TestConfiguration config = getTestConfiguration(TEST_NAME);
loadTestConfiguration(config);
String RI_HOME = SCRIPT_DIR + TEST_DIR;
fullDMLScriptName = RI_HOME + TEST_NAME + ".dml";
programArgs = new String[] { "-args", String.valueOf(val) };
fullRScriptName = RI_HOME + TEST_NAME + ".R";
// run test (expected runtime exception)
runTest(true, true, DMLException.class, -1);
} finally {
rtplatform = platformOld;
DMLScript.USE_LOCAL_SPARK_CONFIG = sparkConfigOld;
}
}
use of org.apache.sysml.api.DMLScript.RUNTIME_PLATFORM in project incubator-systemml by apache.
the class CSVParametersTest method testCSVParametersSparseCP.
@Test
public void testCSVParametersSparseCP() {
setup();
sparsity = 0.1;
RUNTIME_PLATFORM old_platform = rtplatform;
rtplatform = RUNTIME_PLATFORM.SINGLE_NODE;
csvParameterTest(rtplatform, sparsity);
rtplatform = old_platform;
}
use of org.apache.sysml.api.DMLScript.RUNTIME_PLATFORM in project incubator-systemml by apache.
the class CSVParametersTest method testCSVParametersDenseMR.
@Test
public void testCSVParametersDenseMR() {
setup();
sparsity = 1.0;
RUNTIME_PLATFORM old_platform = rtplatform;
rtplatform = RUNTIME_PLATFORM.HADOOP;
csvParameterTest(rtplatform, sparsity);
rtplatform = old_platform;
}
use of org.apache.sysml.api.DMLScript.RUNTIME_PLATFORM in project incubator-systemml by apache.
the class CSVParametersTest method testCSVParametersDenseHybrid.
@Test
public void testCSVParametersDenseHybrid() {
setup();
sparsity = 1.0;
RUNTIME_PLATFORM old_platform = rtplatform;
rtplatform = RUNTIME_PLATFORM.HYBRID;
csvParameterTest(rtplatform, sparsity);
rtplatform = old_platform;
}
use of org.apache.sysml.api.DMLScript.RUNTIME_PLATFORM in project incubator-systemml by apache.
the class CSVParametersTest method testCSVParametersSparseHybrid.
@Test
public void testCSVParametersSparseHybrid() {
setup();
sparsity = 0.1;
RUNTIME_PLATFORM old_platform = rtplatform;
rtplatform = RUNTIME_PLATFORM.HYBRID;
csvParameterTest(rtplatform, sparsity);
rtplatform = old_platform;
}
Aggregations