13.07.2015 Views

CUDA Libraries and MPI+OpenMP+CUDA - Prace Training Portal

CUDA Libraries and MPI+OpenMP+CUDA - Prace Training Portal

CUDA Libraries and MPI+OpenMP+CUDA - Prace Training Portal

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>CUDA</strong> NEWD – Code Snippet (C)cublasSetPointerMode(vlocH<strong>and</strong>les[0] , CUBLAS_POINTER_MODE_DEVICE);...for( is = 0; is < nspin_mag; is++ ){Data on the HOST#if defined(__<strong>CUDA</strong>_3)dtmp[is] = cublasDdot( ngm * 2,(double *) aux_D + (is * ngm * 2), 1,(double *) qgm_na_D, 1);#elsecublasDdot(vlocH<strong>and</strong>les[0] , ngm * 2,(double *) aux_D + (is * ngm * 2), 1,(double *) qgm_na_D, 1, &dtmp_D[is] );#endif}...Data on the HOST oron the DEVICE?February 10, 2012 PRACE Winter School 201257

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!