| 72 | namespace cuda { |
| 73 | |
| 74 | static string get_system() { |
| 75 | string arch = (sizeof(void *) == 4) ? "32-bit " : "64-bit "; |
| 76 | |
| 77 | return arch + |
| 78 | #if defined(OS_LNX) |
| 79 | "Linux"; |
| 80 | #elif defined(OS_WIN) |
| 81 | "Windows"; |
| 82 | #elif defined(OS_MAC) |
| 83 | "Mac OSX"; |
| 84 | #endif |
| 85 | } |
| 86 | |
| 87 | unique_handle<cublasHandle_t> *cublasManager(const int deviceId) { |
| 88 | thread_local unique_handle<cublasHandle_t> |