Nakul Jindal created SYSTEMML-1806: -------------------------------------- Summary: setTextValue in DMLConfig is not behaving correctly Key: SYSTEMML-1806 URL: https://issues.apache.org/jira/browse/SYSTEMML-1806 Project: SystemML Issue Type: Bug Components: Runtime Reporter: Nakul Jindal Fix For: SystemML 1.0
The problem was discovered when trying to set a configuration property from MLContext. Specifically, it was to try and restrict which GPU to use for the program. Currently this is done via a System property. This was the script: {code} unet = Caffe2DML(spark, solver='solver.prototxt', input_shape=img_shape) unet.setGPU(True) unet.setForceGPU(True) unet.setConfigProperty("systemml.stats.extraGPU", "true") unet.setConfigProperty("systemml.gpu.availableGPUs", "1") {code} Here is what I discovered: The first time [setText|https://github.com/apache/systemml/blob/master/src/main/java/org/apache/sysml/conf/DMLConfig.java#L266] value is called on an empty DMLConfig (by calling new DMLConfig()) as opposed to by parsing a file, a new _xmlRoot is initialized. Thereafter, since the _xmlRoot is not null, it tries to call getElementsByTagName, even when the tag is different. In the example above, the tag is {{systemml.stats.extraGPU"}} the first time around and {{systemml.gpu.availableGPUs}} the second time around. The bug is in [setText|https://github.com/apache/systemml/blob/master/src/main/java/org/apache/sysml/conf/DMLConfig.java#L253] -- This message was sent by Atlassian JIRA (v6.4.14#64029)