Beispiel #1
0
 public ulong GetPreferredWorkGroupSizeMultiple(Device device)
 {
     return((ulong)UnsafeNativeMethods.GetKernelWorkGroupInfo(Handle, device.ID, UnsafeNativeMethods.KernelWorkGroupInfo.PreferredWorkGroupSizeMultiple)[0]);
 }
Beispiel #2
0
 public ulong GetPrivateMemorySize(Device device)
 {
     return((ulong)UnsafeNativeMethods.GetKernelWorkGroupInfo(Handle, device.ID, UnsafeNativeMethods.KernelWorkGroupInfo.PrivateMemorySize)[0]);
 }
Beispiel #3
0
 public ulong[] GetCompileWorkGroupSize(Device device)
 {
     return(UnsafeNativeMethods.GetKernelWorkGroupInfo(Handle, device.ID, UnsafeNativeMethods.KernelWorkGroupInfo.CompileWorkGroupSize));
 }
Beispiel #4
0
 public IntPtr GetPreferredWorkGroupSizeMultiple(Device device)
 {
     return(UnsafeNativeMethods.GetKernelWorkGroupInfo(Handle, device.ID, UnsafeNativeMethods.KernelWorkGroupInfo.PreferredWorkGroupSizeMultiple));
 }
Beispiel #5
0
 public ulong GetLocalMemorySize(Device device)
 {
     return(UnsafeNativeMethods.GetKernelWorkGroupInfo(Handle, device.ID, UnsafeNativeMethods.KernelWorkGroupInfo.LocalMemorySize));
 }
Beispiel #6
0
 public IReadOnlyList <IntPtr> GetCompileWorkGroupSize(Device device)
 {
     return(UnsafeNativeMethods.GetKernelWorkGroupInfo(Handle, device.ID, UnsafeNativeMethods.KernelWorkGroupInfo.CompileWorkGroupSize));
 }
Beispiel #7
0
 public IntPtr GetWorkGroupSize(Device device)
 {
     return(UnsafeNativeMethods.GetKernelWorkGroupInfo(Handle, device.ID, UnsafeNativeMethods.KernelWorkGroupInfo.WorkGroupSize));
 }