Skip to content

Commit

Permalink
Not allocating any memory in constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
cjnolet committed Nov 15, 2021
1 parent c463f6c commit cc06981
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cpp/test/spatial/haversine.cu
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ class HaversineKNNTest : public ::testing::Test {
public:
HaversineKNNTest()
: stream(handle.get_stream()),
d_train_inputs(n * d, stream),
d_ref_I(n * n, stream),
d_ref_D(n * n, stream),
d_pred_I(n * n, stream),
d_pred_D(n * n, stream) {}
d_train_inputs(0, stream),
d_ref_I(0, stream),
d_ref_D(0, stream),
d_pred_I(0, stream),
d_pred_D(0, stream) {}

protected:
void basicTest() {
Expand Down

0 comments on commit cc06981

Please sign in to comment.