runtime/realm/cuda/cudart_hijack.cc
// Managed memory is only supported for cuda version >=8.0
Managed memory is only supported for cuda version >=8.0
Managed memory is only supported for cuda version > = 8 . 0
cudaError_t cudaMallocManaged(void **ptr, size_t size,
                                    unsigned flags = cudaMemAttachGlobal)
      {
        get_gpu_or_die("cudaMallocManaged");
        assert(flags == cudaMemAttachGlobal);
        CUresult ret = cuMemAllocManaged((CUdeviceptr*)ptr, size, CU_MEM_ATTACH_GLOBAL);
        if (ret == CUDA_SUCCESS) return cudaSuccess;
        assert(ret == CUDA_ERROR_OUT_OF_MEMORY);
        return cudaErrorMemoryAllocation;
      }
cudaError_t cudaMallocManaged ( void * * ptr , size_t size , unsigned flags = cudaMemAttachGlobal ) { get_gpu_or_die ( " " ) ; assert ( flags == cudaMemAttachGlobal ) ; CUresult ret = cuMemAllocManaged ( ( CUdeviceptr * ) ptr , size , CU_MEM_ATTACH_GLOBAL ) ; if ( ret == CUDA_SUCCESS ) return cudaSuccess ; assert ( ret == CUDA_ERROR_OUT_OF_MEMORY ) ; return cudaErrorMemoryAllocation ; }
Managed memory is only supported for cuda version >=8.0
Managed memory is only supported for cuda version > = 8 . 0
// We don't support cudaMemAttachHost right now