示例#1
0
        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);
        }
示例#2
0
 /// <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);
 }
示例#3
0
 /// <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;
 }