Skip to content

Commit

Permalink
Update DeviceInterfaceCudaHip.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
meisenbach authored Jan 22, 2024
1 parent 634c8ad commit 39304ab
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/Accelerator/DeviceInterfaceCudaHip.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,17 @@ inline deviceError_t deviceMalloc (void** devPtr, size_t size )
{return hipMalloc (devPtr, size);}

inline deviceError_t deviceMallocHost (void** devPtr, size_t size )
{return hipMallocHost (devPtr, size); }
/* {return hipHostMalloc(devPtr, size, 0); /* hipMallocHost (devPtr, size); } */
{ return hipHostMalloc(devPtr, size, hipHostMallocNumaUser); }
// {return hipMallocHost (devPtr, size); }
// /* {return hipHostMalloc(devPtr, size, 0); /* hipMallocHost (devPtr, size); } */

inline deviceError_t deviceFree (void* devPtr)
{return hipFree(devPtr);}

inline deviceError_t deviceFreeHost (void* devPtr)
{return hipFreeHost(devPtr); }
/* {return hipHostFree(devPtr); /* hipFreeHost(devPtr); } */
{ return hipHostFree(defPtr); }
// {return hipFreeHost(devPtr); }
// /* {return hipHostFree(devPtr); /* hipFreeHost(devPtr); } */

inline deviceError_t deviceMemcpy (void* dst, const void* src, size_t count, hipMemcpyKind kind)
{return hipMemcpy(dst, src, count, kind);}
Expand Down

0 comments on commit 39304ab

Please sign in to comment.