Beispiel #1
0
        public static List <ComputeDeviceDesc> GetComputeDevices()
        {
            List <ComputeDeviceDesc> ret = new List <ComputeDeviceDesc>();

            ret.AddRange(CPUComputeDevice.GetDevices());
            ret.AddRange(OpenCL.OpenCLDevice.GetDevices());

            return(ret);
        }
Beispiel #2
0
 public static ComputeDevice CreateFallbackComputeDevice()
 {
     return(CreateComputeDevice(CPUComputeDevice.GetDevices()[0]));
 }