Files
ispc/examples_ptx/nvcc_helpers.cu
2014-01-04 19:40:26 +01:00

17 lines
215 B
Plaintext

#include "ispc_malloc.h"
#ifndef _CUDA_
#error "Something went wrong..."
#endif
void ispc_malloc(void **ptr, const size_t size)
{
cudaMallocManaged(ptr, size);
}
void ispc_free(void *ptr)
{
cudaFree(ptr);
}