Skip to Content
Designing Scientific Applications on GPUs
book

Designing Scientific Applications on GPUs

by Raphael Couturier
November 2013
Intermediate to advanced content levelIntermediate to advanced
498 pages
17h 6m
English
Chapman and Hall/CRC
Content preview from Designing Scientific Applications on GPUs
430 Designing Scientific Applications on GPUs
rithm, thus the need for synchronization barriers, and requires only one kernel
launch from Java as described on Listing 18.5.
Listing 18.5. MIOR simulation launcher
@Override
p r o t e c t e d void d oLi ve Imp l ( ) {
s i m u l a t e K e r n e l . setA rgu m ent s (mmMem, omMem, worldsMem , mmOffsetsMem ,
omOffsetsMem , mmCSRMem, omCSRMem, partsMem ) ;
5 i f ( b l o c k S i z e < Math . max(nbOM, nbMM) ) {
throw new R untimeEx ception ( " bloc kSize (" + b l o c k S i z e +
") too small to execu te the simu lation " ) ;
}
10 OCLEvent ev e nt = queue . enqu eue1DKernel ( s i m u l a t e Ke r n e l , nbSim
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Introduction to Numerical Analysis and Scientific Computing

Introduction to Numerical Analysis and Scientific Computing

Nabil Nassif, Dolly Khuwayri Fayyad
Computational Electromagnetism

Computational Electromagnetism

Alain Bossavit, Isaak D. Mayergoyz

Publisher Resources

ISBN: 9781466571648