__kernel void test1(
    __global uint        *d_Hash, //output
    __global uint       *d_Index, //output
    __global const float4 *d_Pos, //input: positions
    __constant simParams_t *params,
    uint numParticles
){  
    const uint index = get_global_id(0);
    if(index >= numParticles)
        return;

    float4 p = d_Pos[index];
  
    //Get address in grid
    int4  gridPos = getGridPos(p, params);
    uint gridHash = getGridHash(gridPos, params);

    //Store grid hash and particle index
    d_Hash[index] = gridHash;
    d_Index[index] = index;
}


int main( int argc, char ** argv) {



}
