1 //------------------------------------------------------------------------------
2 // GxB_cuda_malloc.c: wrapper for cudaMallocManaged, or just malloc if no CUDA
3 //------------------------------------------------------------------------------
4
5 // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved.
6 // SPDX-License-Identifier: Apache-2.0
7
8 //------------------------------------------------------------------------------
9
10 // DRAFT: in progress
11
12 #include "GB.h"
13
GxB_cuda_malloc(size_t size)14 void *GxB_cuda_malloc (size_t size) // standard malloc signature
15 {
16 #if defined ( GBCUDA )
17 return (GB_cuda_malloc (size)) ;
18 #else
19 return (malloc (size)) ;
20 #endif
21 }
22
23