MCPcopy Create free account
hub / github.com/NVIDIA/DALI / daliPrefetchSeparate

Function daliPrefetchSeparate

dali/c_api/c_api.cc:336–345  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

334
335
336void daliPrefetchSeparate(daliPipelineHandle_t pipe_handle,
337 int cpu_queue_depth, int gpu_queue_depth) {
338 auto &pipeline = (*pipe_handle)->pipeline;
339 auto sz = pipeline->GetQueueSizes();
340 if (cpu_queue_depth != sz.cpu_size || gpu_queue_depth != sz.gpu_size) {
341 DALI_WARN("daliPrefetchSeparate is deprecated and setting queue_length different than"
342 " the one set in the pipeline has no effect. Use daliPrefetch instead.");
343 }
344 pipeline->Prefetch();
345}
346
347
348void daliSetExternalInputBatchSize(daliPipelineHandle_t pipe_handle, const char *name,

Callers

nothing calls this directly

Calls 2

GetQueueSizesMethod · 0.45
PrefetchMethod · 0.45

Tested by

no test coverage detected