Skip to content

Commit

Permalink
fix HistoContainer unit test (#256)
Browse files Browse the repository at this point in the history
  • Loading branch information
VinInn authored and fwyzard committed Jan 21, 2019
1 parent 51e4967 commit 6e7a0a6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions HeterogeneousCore/CUDAUtilities/test/BuildFile.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,9 @@
<flags CUDA_FLAGS="-g -G -DGPU_DEBUG"/>
</bin>

<!--
<bin file="HistoContainer_t.cpp">
<flags CXXFLAGS="-g"/>
</bin>
-->

<bin file="HistoContainer_t.cu" name="gpuHistoContainer_t">
<use name="cuda-api-wrappers"/>
Expand Down
2 changes: 1 addition & 1 deletion HeterogeneousCore/CUDAUtilities/test/HistoContainer_t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ void go() {
h.finalize(); h4.finalize();
assert(h.size()==N);
assert(h4.size()==N);
for (long long j = 0; j < N; j++) { h.fill(v[j],j); if(j<2000) h4.fill(v[j],2); else h4.fill(v[j],j,j%4); }
for (long long j = 0; j < N; j++) { h.fill(v[j],j); if(j<2000) h4.fill(v[j],j,2); else h4.fill(v[j],j,j%4); }
assert(h.off[0]==0);
assert(h4.off[0]==0);
assert(h.size()==N);
Expand Down

0 comments on commit 6e7a0a6

Please sign in to comment.