public NvHostChannelDeviceFile(ServiceCtx context) : base(context)
 {
     _gpu           = context.Device.Gpu;
     _memory        = context.Memory;
     _timeout       = 3000;
     _submitTimeout = 0;
     _timeslice     = 0;
 }
示例#2
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);
        }
示例#3
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(ARMeilleure.Memory.MemoryManager cpuMemory)
 {
     PhysicalMemory = new PhysicalMemory(cpuMemory);
 }