fathollahzadeh commented on a change in pull request #1299:
URL: https://github.com/apache/systemds/pull/1299#discussion_r648232652



##########
File path: src/main/java/org/apache/sysds/runtime/io/MatrixWriterFactory.java
##########
@@ -77,6 +77,15 @@ public static MatrixWriter createMatrixWriter(FileFormat 
fmt, int replication, F
                                        writer = new 
WriterBinaryBlock(replication);
                                break;
 
+                       case HDF5:
+                               if(props != null && !(props instanceof 
FileFormatPropertiesHDF5))
+                                       throw new DMLRuntimeException("Wrong 
type of file format properties for HDF5 writer.");
+                               if( 
ConfigurationManager.getCompilerConfigFlag(ConfigType.PARALLEL_CP_WRITE_TEXTFORMATS)
 )
+                                       writer = new 
WriterHDF5Parallel((FileFormatPropertiesHDF5) props);
+                               else
+                                       writer = new 
WriterHDF5((FileFormatPropertiesHDF5) props);

Review comment:
       fixed!




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to