MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / main

Function main

deps/GraphBLAS/CUDA/test/run_tests.cpp:9–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7#include "test_utility.hpp"
8
9int 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}

Callers

nothing calls this directly

Calls 7

rmm_wrap_initializeFunction · 0.85
GxB_initFunction · 0.85
GxB_Global_Option_setFunction · 0.85
rmm_wrap_allocateFunction · 0.85
rmm_wrap_deallocateFunction · 0.85
GrB_finalizeFunction · 0.85
rmm_wrap_finalizeFunction · 0.85

Tested by

no test coverage detected