MCPcopy Create free account
hub / github.com/davisking/dlib / launch_kernel

Function launch_kernel

dlib/cuda/cuda_utils.h:152–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150
151 template <typename Kernel, typename... T>
152 void launch_kernel (
153 Kernel K,
154 T ...args
155 )
156 /*!
157 ensures
158 - launches the given kernel K(args...). The point of this function is to
159 automatically set the kernel launch parameters to something reasonable
160 based on the properties of the kernel and the current GPU card.
161 !*/
162 {
163 int num_blocks, num_threads;
164 CHECK_CUDA(cudaOccupancyMaxPotentialBlockSize(&num_blocks,&num_threads,K));
165 K<<<num_blocks,num_threads>>>(args...);
166 }
167
168 template <typename Kernel, typename... T>
169 void launch_kernel (

Callers

nothing calls this directly

Calls 2

roundFunction · 0.85
put_in_rangeFunction · 0.85

Tested by

no test coverage detected