MCPcopy Create free account
hub / github.com/catboost/catboost / RunGpuProgram

Function RunGpuProgram

library/cpp/cuda/wrappers/run_gpu_program.cpp:6–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4#include <util/thread/pool.h>
5
6void RunGpuProgram(std::function<void()> func) {
7 TThreadPool queue;
8 queue.Start(1);
9 NThreading::TFuture<void> future = NThreading::Async(
10 func,
11 queue
12 );
13 future.GetValueSync();
14}

Callers

nothing calls this directly

Calls 3

GetValueSyncMethod · 0.80
AsyncFunction · 0.50
StartMethod · 0.45

Tested by

no test coverage detected