MCPcopy Create free account
hub / github.com/KomputeProject/kompute / begin

Method begin

src/Sequence.cpp:36–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36void
37Sequence::begin()
38{
39 KP_LOG_DEBUG("Kompute sequence called BEGIN");
40
41 if (this->isRecording()) {
42 KP_LOG_DEBUG("Kompute Sequence begin called when already recording");
43 return;
44 }
45
46 if (this->isRunning()) {
47 throw std::runtime_error(
48 "Kompute Sequence begin called when sequence still running");
49 }
50
51 KP_LOG_INFO("Kompute Sequence command now started recording");
52 this->mCommandBuffer->begin(vk::CommandBufferBeginInfo());
53 this->mRecording = true;
54
55 // latch the first timestamp before any commands are submitted
56 if (this->timestampQueryPool)
57 this->mCommandBuffer->writeTimestamp(
58 vk::PipelineStageFlagBits::eAllCommands,
59 *this->timestampQueryPool,
60 0);
61}
62
63void
64Sequence::end()

Callers 14

recordMethod · 0.95
TESTFunction · 0.80
TESTFunction · 0.80
TESTFunction · 0.80
TESTFunction · 0.80
compileSourceFunction · 0.80
setupLoggerFunction · 0.80
OpMultMethod · 0.80
trainMethod · 0.80
mainFunction · 0.80
compileSourceFunction · 0.80
_initMethod · 0.80

Calls 2

isRecordingMethod · 0.95
isRunningMethod · 0.95

Tested by 4

TESTFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64