Commit bae4cdb
authored
[Bug] Fix memory allocation test in CAGRA graph optimization (rapidsai#1675)
rel: rapidsai#1619
The actual memory allocation is performed by `make_device_mdarray`, so the corresponding memory allocation test should also be done using this function. However, the current code uses `make_device_matrix` for the test.
This PR fixes this inconsistency.
In the same source file, `d_detour_count` and `d_num_no_detour_edges` are allocated via `make_device_mdarray`, and `d_input_graph` is allocated through `device_matrix_view_from_host` (defined in `cpp/src/neighbors/detail/cagra/utils.hpp`), which internally calls `make_device_mdarray`.
Authors:
- tsuki (https://github.com/enp1s0)
Approvers:
- Corey J. Nolet (https://github.com/cjnolet)
URL: rapidsai#16751 parent 4c004e7 commit bae4cdb
1 file changed
+7
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
1233 | 1233 | | |
1234 | 1234 | | |
1235 | 1235 | | |
1236 | | - | |
1237 | | - | |
1238 | | - | |
1239 | | - | |
1240 | | - | |
| 1236 | + | |
| 1237 | + | |
| 1238 | + | |
| 1239 | + | |
| 1240 | + | |
| 1241 | + | |
1241 | 1242 | | |
1242 | 1243 | | |
1243 | 1244 | | |
| |||
0 commit comments