This function initializes and deletes a nvrtcProgram object. There seems to be a bug in nvrtc which fails if this is first done on a child thread. We are assuming that the initilization is done in the main thread.
| 566 | /// be a bug in nvrtc which fails if this is first done on a child thread. We |
| 567 | /// are assuming that the initilization is done in the main thread. |
| 568 | void initNvrtc() { |
| 569 | nvrtcProgram prog; |
| 570 | nvrtcCreateProgram(&prog, " ", "dummy", 0, nullptr, nullptr); |
| 571 | nvrtcDestroyProgram(&prog); |
| 572 | } |
| 573 | |
| 574 | DeviceManager::DeviceManager() |
| 575 | : logger(common::loggerFactory("platform")) |