Question: The following kernel performs a portion of the finitedifference time-domain (FDTD) method for computing Maxwells equations in a three-dimensional space, part of one of the
The following kernel performs a portion of the finitedifference time-domain (FDTD) method for computing Maxwells equations in a three-dimensional space, part of one of the SPEC06fp benchmarks: for (int x=0; x0 && x >0) { material = IDx[index]; dH1 = (Hz[index] Hz[index-incrementY])/dy[y]; dH2 = (Hy[index] Hy[index-incrementZ])/dz[z]; Ex[index] = Ca[material]*Ex[index]+Cb[material]*(dH2-dH1); }}}} Assume that dH1, dH2, Hy, Hz, dy, dz, Ca, Cb, and Ex are all single-precision floating-point arrays. Assume IDx is an array of unsigned int. a. [10] <4.3> What is the arithmetic intensity of this kernel? b. [10] <4.3> Is this kernel amenable to vector or SIMD execution? Why or why not?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
