MATLAB PARALLEL COMPUTING TOOLBOX - S Guide de l'utilisateur Page 567

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 656
  • Table des matières
  • DEPANNAGE
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 566
parallel.gpu.CUDAKernel
11-223
int idx = blockIdx.x * blockDim.x + threadIdx.x;
if (idx < vecLen) {
pi[idx] += c;
}
and simpleEx.ptx contains the PTX resulting from compiling simpleEx.cu into
PTX, both of the following statements return a kernel object that you can use to call the
addToVector CUDA kernel.
kern = parallel.gpu.CUDAKernel('simpleEx.ptx', ...
'simpleEx.cu');
kern = parallel.gpu.CUDAKernel('simpleEx.ptx', ...
'float *, float, int');
See Also
arrayfun | feval | existsOnGPU | gpuArray | reset
Vue de la page 566
1 2 ... 562 563 564 565 566 567 568 569 570 571 572 ... 655 656

Commentaires sur ces manuels

Pas de commentaire