MCPcopy Create free account
hub / github.com/RenderKit/oidn / CPUDevice

Method CPUDevice

devices/cpu/cpu_device.cpp:110–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 1

getEnvVarFunction · 0.85

Tested by

no test coverage detected