Example #1
0
 private static void queryDevices()
 {
     Device[] devList = Device.Devices;
     devEntries = new CudaDeviceEntry[devList.Length];
     for (int i = 0; i < devList.Length; i++)
     {
         devEntries[i] = new CudaDeviceEntry(devList[i]);
     }
 }
Example #2
0
        private static void queryDevices()
        {
            if (devEntries != null)
            {
                return;
            }
            try{
                CheckSupport();

                Device[] devList = Device.Devices;
                devEntries = new CudaDeviceEntry[devList.Length];
                for (int i = 0; i < devList.Length; i++)
                {
                    devEntries[i] = new CudaDeviceEntry(i, devList[i]);
                }
            }
            catch {
                devEntries = new CudaDeviceEntry[0];
            }
        }