Skip to content

Commit

Permalink
Merge pull request #63 from Intel-HLS/eba_allocate_fpga_batch
Browse files Browse the repository at this point in the history
Allocate memory for FPGA batch results; this fixes segfault when usin…
  • Loading branch information
erniebrau authored Jul 25, 2017
2 parents f1a50e2 + 77c8cd9 commit af86a65
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/native/pairhmm/JavaData.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ class JavaData {
}
m_batch.haps = m_haps.data();

// allocate results
m_batch.results = (float*)malloc(sizeof(float) * num_testcases);

m_batch.num_cells = m_total_cells;

return m_batch;
Expand Down

0 comments on commit af86a65

Please sign in to comment.