hama-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Illecker (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HAMA-800) Hama Pipes Examples
Date Mon, 30 Sep 2013 07:39:23 GMT

    [ https://issues.apache.org/jira/browse/HAMA-800?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13781651#comment-13781651
] 

Martin Illecker commented on HAMA-800:
--------------------------------------

Thanks for verification and testing!
I have committed it.

{quote}
A few questions:
* Are binary files summation, piestimator, and matrixmultiplication from corresponded impl/*.cc
source?
* MatrixA.seq, and MatrixB_transposed.seq not found in input folder. Does it required additional
steps to create those files?
* Do cpp sources have test cases?
{quote}

* Yes, the binary files summation, piestimator, and matrixmultiplication in *c++/target/native/examples/*
correspond to the source files in *c++/src/main/native/examples/impl/*.cc*
These example binaries are compiled together with Hama Pipes libraries in the pipes phase
of mvn execution.
* The MatrixA.seq and MatrixB_transposed.seq are located in *c++/src/main/native/examples/input/*
and should be example input files for the matrixmultiplication
But you can create your own matrix input file by
{code}
  FileSystem fs = FileSystem.get(conf);
  SequenceFile.Writer writer = new SequenceFile.Writer(fs, conf, path, IntWritable.class,
VectorWritable.class);
  double[][] matrix;
  for (int i = 0; i < matrix.length; i++) {
    DenseDoubleVector rowVector = new DenseDoubleVector(matrix[i]);
    writer.append(new IntWritable(i), new VectorWritable(rowVector));
  }
{code}
* Currently the c++ source does not have a test case, but I'm working on a Hama Pipes test
case

> Hama Pipes Examples
> -------------------
>
>                 Key: HAMA-800
>                 URL: https://issues.apache.org/jira/browse/HAMA-800
>             Project: Hama
>          Issue Type: Improvement
>    Affects Versions: 0.6.2
>            Reporter: Martin Illecker
>            Assignee: Martin Illecker
>            Priority: Minor
>              Labels: examples
>             Fix For: 0.6.3
>
>         Attachments: HAMA-800.patch
>
>
> *Adding Hama Pipes Examples*
> Add C++ Hama Pipes examples [1]
> - Summation
> - PiEstimation
> - MatrixMultiplication
> and build them in maven pipes step.
> [1] https://github.com/millecker/applications/tree/master/hama/pipes



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message