| 7 | #include "test_utility.hpp" |
| 8 | |
| 9 | int main(int argc, char **argv) { |
| 10 | |
| 11 | size_t init_size, max_size; |
| 12 | init_size = 256*(1ULL<<10); |
| 13 | max_size = 256*(1ULL<<20); |
| 14 | |
| 15 | //printf(" pool init size %ld, max size %ld\n", init_size, max_size); |
| 16 | rmm_wrap_initialize( rmm_wrap_managed, init_size, max_size ); |
| 17 | |
| 18 | GRB_TRY (GxB_init (GxB_NONBLOCKING_GPU, |
| 19 | rmm_wrap_malloc, rmm_wrap_calloc, rmm_wrap_realloc, rmm_wrap_free)) ; |
| 20 | GRB_TRY (GxB_Global_Option_set (GxB_GLOBAL_GPU_CONTROL, GxB_GPU_ALWAYS)) ; |
| 21 | |
| 22 | size_t buff_size = (1ULL<<13)+152; |
| 23 | void *p = (void *)rmm_wrap_allocate( &buff_size ); |
| 24 | |
| 25 | ::testing::InitGoogleTest(&argc, argv); |
| 26 | auto r = RUN_ALL_TESTS(); |
| 27 | |
| 28 | rmm_wrap_deallocate( p, buff_size); |
| 29 | GRB_TRY (GrB_finalize()); |
| 30 | rmm_wrap_finalize(); |
| 31 | std::cout << "Tests complete" << std::endl; |
| 32 | |
| 33 | |
| 34 | |
| 35 | return r; |
| 36 | } |
nothing calls this directly
no test coverage detected