| 108 | } |
| 109 | |
| 110 | CPUDevice::CPUDevice(const Ref<CPUPhysicalDevice>& physicalDevice) |
| 111 | : physicalDevice(physicalDevice) |
| 112 | { |
| 113 | systemMemorySupported = true; |
| 114 | managedMemorySupported = true; |
| 115 | |
| 116 | // Get default values from environment variables |
| 117 | getEnvVar("OIDN_NUM_THREADS", numThreads); |
| 118 | getEnvVar("OIDN_SET_AFFINITY", setAffinity); |
| 119 | } |
| 120 | |
| 121 | void CPUDevice::init() |
| 122 | { |
nothing calls this directly
no test coverage detected