public NvHostChannelDeviceFile(ServiceCtx context) : base(context) { _device = context.Device; _memory = context.Memory; _timeout = 3000; _submitTimeout = 0; _timeslice = 0; ChannelSyncpoints = new uint[MaxModuleSyncpoint]; _channelSyncpoint.Id = _device.System.HostSyncpoint.AllocateSyncpoint(false); _channelSyncpoint.UpdateValue(_device.System.HostSyncpoint); }
/// <summary> /// Sets the process memory manager, after the application process is initialized. /// This is required for any GPU memory access. /// </summary> /// <param name="cpuMemory">CPU memory manager</param> public void SetVmm(Cpu.MemoryManager cpuMemory) { PhysicalMemory = new PhysicalMemory(cpuMemory); }
/// <summary> /// Creates a new instance of the physical memory. /// </summary> /// <param name="cpuMemory">CPU memory manager of the application process</param> public PhysicalMemory(Cpu.MemoryManager cpuMemory) { _cpuMemory = cpuMemory; }