예제 #1
0
파일: NvmlAPI.cs 프로젝트: m4rs-mt/ILGPU
 /// <summary>
 /// Provides access to <see cref="DeviceGetInforomVersion_Interop"/>
 /// without using raw pointers.
 /// </summary>
 public unsafe NvmlReturn DeviceGetInforomVersion(
     IntPtr device,
     NvmlInforomObject inforomObject,
     out string version) =>
 GetNvmlString(
     (str, len) =>
 {
     return(DeviceGetInforomVersion_Interop(
                device,
                inforomObject,
                str,
                len));
 },
     NvmlConstants.NVML_DEVICE_INFOROM_VERSION_BUFFER_SIZE,
     out version);
예제 #2
0
 public static extern NvmlReturn NvmlDeviceGetInforomVersion(
     NvmlDevice device, NvmlInforomObject obj, StringBuilder version, uint length);