| 222 | } |
| 223 | |
| 224 | void Device::commit() |
| 225 | { |
| 226 | if (isCommitted()) |
| 227 | throw Exception(Error::InvalidOperation, "device can be committed only once"); |
| 228 | |
| 229 | if (isVerbose()) |
| 230 | { |
| 231 | std::cout << std::endl; |
| 232 | std::cout << "Intel(R) Open Image Denoise " << OIDN_VERSION_STRING << std::endl; |
| 233 | std::cout << " Compiler : " << getCompilerName() << std::endl; |
| 234 | std::cout << " Build : " << getBuildName() << std::endl; |
| 235 | std::cout << " OS : " << getOSName() << std::endl; |
| 236 | } |
| 237 | |
| 238 | init(); |
| 239 | |
| 240 | if (isVerbose()) |
| 241 | std::cout << std::endl; |
| 242 | |
| 243 | dirty = false; |
| 244 | committed = true; |
| 245 | } |
| 246 | |
| 247 | void Device::checkCommitted() |
| 248 | { |