コード例 #1
0
  public CConfigPipeline(SIRContainer cont, CachePartitioner partitioner) {
    super(cont, partitioner);

    fusion_info = new FusionInfo[cont.size()][cont.size()];
    for (int i = 0; i < cont.size(); i++)
      for (int j = 0; j < cont.size(); j++) fusion_info[i][j] = null;

    num_tiles = 0;

    greedyCuts = new boolean[cont.size() - 1];
    for (int i = 0; i < cont.size() - 1; i++) {
      greedyCuts[i] = false;
    }
  }
コード例 #2
0
ファイル: SIRJoiner.java プロジェクト: navicella/streamit
 /** This is for creating a round robin with uniform weights across the stream. */
 public static SIRJoiner createUniformRR(SIRContainer parent, JExpression weight) {
   // make a uniform rr joiner
   return new SIRJoiner(
       parent, SIRJoinType.WEIGHTED_RR, Utils.initArray(Math.max(parent.size(), 1), weight), true);
 }