| 1780 | } |
| 1781 | printf("\n"); |
| 1782 | } |
| 1783 | } |
| 1784 | } |
| 1785 | |
| 1786 | static bool ListCudaDevices() |
| 1787 | { |
| 1788 | int count = 0; |
| 1789 | cudaError_t err = cudaGetDeviceCount(&count); |
| 1790 | if (err != cudaSuccess) |
| 1791 | { |
| 1792 | fprintf(stderr, "Call to cudaGetDeviceCount failed, error code = %s.\n", cudaGetErrorName(err)); |
| 1793 | return false; |
| 1794 | } |
| 1795 | |
| 1796 | if (count == 0) |