Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions include/cuspv/cuda_runtime.h
Original file line number Diff line number Diff line change
Expand Up @@ -774,9 +774,10 @@ template <typename T>
static inline cudaError_t cudaMalloc(T **ptr, size_t size) {
return hipMalloc((void **)ptr, size);
}
static inline cudaError_t cudaMallocManaged(void **DevPtr, size_t Size,
template <typename T>
static inline cudaError_t cudaMallocManaged(T **DevPtr, size_t Size,
unsigned int Flags = cudaMemAttachGlobal) {
return hipMallocManaged(DevPtr, Size, Flags);
return hipMallocManaged((void**)DevPtr, Size, Flags);
}
static inline cudaError_t cudaMallocHost(void **Ptr, size_t Size) {
return hipHostMalloc(Ptr, Size, 0);
Expand Down