systemml-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nakul Jindal (JIRA)" <>
Subject [jira] [Created] (SYSTEMML-1806) setTextValue in DMLConfig is not behaving correctly
Date Wed, 26 Jul 2017 01:36:00 GMT
Nakul Jindal created SYSTEMML-1806:

             Summary: setTextValue in DMLConfig is not behaving correctly
                 Key: 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:
unet = Caffe2DML(spark, solver='solver.prototxt', input_shape=img_shape)
unet.setConfigProperty("systemml.stats.extraGPU", "true")
unet.setConfigProperty("systemml.gpu.availableGPUs", "1")

Here is what I discovered:
The first time [setText|]
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|]

This message was sent by Atlassian JIRA

View raw message