Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-04-09 07:49:09

0001 
0002 #include <stdio.h>
0003 #include "scuda.h"
0004 #include "squad.h"
0005 
0006 
0007 __global__ void _QOptical_check( quad* optical, unsigned width, unsigned height )
0008 {
0009     unsigned ix = blockIdx.x * blockDim.x + threadIdx.x;
0010     unsigned iy = blockIdx.y * blockDim.y + threadIdx.y;
0011     unsigned index = iy * width + ix ;
0012     if (ix >= width | iy >= height ) return;
0013 
0014     uint4& u = optical[iy].u ; 
0015 
0016     printf("//_QOptical_check ix %3d iy %3d index %3d  optical[iy] (%3d %3d %3d %3d)   \n", ix, iy, index, u.x, u.y, u.z, u.w ); 
0017 }
0018 
0019 extern "C" void QOptical_check(dim3 numBlocks, dim3 threadsPerBlock, quad* optical, unsigned width, unsigned height ) 
0020 {
0021     _QOptical_check<<<numBlocks,threadsPerBlock>>>( optical, width, height );
0022 } 
0023 
0024