MCPcopy Create free account
hub / github.com/ClassicOldSong/Apollo / init

Function init

src/platform/linux/cuda.cpp:89–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87 };
88
89 int init() {
90 auto status = cuda_load_functions(&cdf, nullptr);
91 if (status) {
92 BOOST_LOG(error) << "Couldn't load cuda: "sv << status;
93
94 return -1;
95 }
96
97 CU_CHECK(cdf->cuInit(0), "Couldn't initialize cuda");
98
99 return 0;
100 }
101
102 class cuda_t: public platf::avcodec_encode_device_t {
103 public:

Callers 8

nvfbc_display_namesFunction · 0.70
initMethod · 0.70
initMethod · 0.70
initMethod · 0.70
initMethod · 0.70
kms_display_namesFunction · 0.70

Calls 2

handleFunction · 0.85
loadFunction · 0.85

Tested by

no test coverage detected