Skip to content

Commit

Permalink
make memory pinned in all CUDA contexts
Browse files Browse the repository at this point in the history
  • Loading branch information
Unknown committed Jul 27, 2017
1 parent aff8c9f commit 6e702c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion interface_cuda/alloc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ magma_malloc_pinned( void** ptrPtr, size_t size )
// (for pinned memory, the error is detected in free)
if ( size == 0 )
size = sizeof(magmaDoubleComplex);
if ( cudaSuccess != cudaMallocHost( ptrPtr, size )) {
if ( cudaSuccess != cudaHostAlloc( ptrPtr, size, cudaHostAllocPortable )) {
return MAGMA_ERR_HOST_ALLOC;
}

Expand Down

0 comments on commit 6e702c1

Please sign in to comment.