MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / initNvrtc

Function initNvrtc

src/backend/cuda/device_manager.cpp:568–572  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

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.
568void initNvrtc() {
569 nvrtcProgram prog;
570 nvrtcCreateProgram(&prog, " ", "dummy", 0, nullptr, nullptr);
571 nvrtcDestroyProgram(&prog);
572}
573
574DeviceManager::DeviceManager()
575 : logger(common::loggerFactory("platform"))

Callers 1

DeviceManagerMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected