Skip to content

Commit

Permalink
Apply code-format fixes (#427)
Browse files Browse the repository at this point in the history
  • Loading branch information
fwyzard committed Nov 16, 2020
1 parent 4233099 commit 2e52dc1
Showing 1 changed file with 17 additions and 18 deletions.
35 changes: 17 additions & 18 deletions RecoPixelVertexing/PixelVertexFinding/test/VertexFinder_t.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,23 @@

#ifdef ONE_KERNEL
#ifdef __CUDACC__
__global__ void vertexFinderOneKernel(gpuVertexFinder::ZVertices* pdata,
gpuVertexFinder::WorkSpace* pws,
int minT, // min number of neighbours to be "seed"
float eps, // max absolute distance to cluster
float errmax, // max error to be "seed"
float chi2max // max normalized distance to cluster,
) {
clusterTracksByDensity(pdata,pws,minT,eps,errmax,chi2max);
__syncthreads();
fitVertices(pdata,pws, 50.);
__syncthreads();
splitVertices(pdata,pws, 9.f);
__syncthreads();
fitVertices(pdata,pws, 5000.);
__syncthreads();
sortByPt2(pdata,pws);
}
__global__ void vertexFinderOneKernel(gpuVertexFinder::ZVertices* pdata,
gpuVertexFinder::WorkSpace* pws,
int minT, // min number of neighbours to be "seed"
float eps, // max absolute distance to cluster
float errmax, // max error to be "seed"
float chi2max // max normalized distance to cluster,
) {
clusterTracksByDensity(pdata, pws, minT, eps, errmax, chi2max);
__syncthreads();
fitVertices(pdata, pws, 50.);
__syncthreads();
splitVertices(pdata, pws, 9.f);
__syncthreads();
fitVertices(pdata, pws, 5000.);
__syncthreads();
sortByPt2(pdata, pws);
}
#endif
#endif

Expand Down Expand Up @@ -265,7 +265,6 @@ int main() {

#ifdef __CUDACC__
// one vertex per block!!!
// cudautils::launch(splitVerticesKernel, {1, 256}, onGPU_d.get(), ws_d.get(), 9.f);
cudautils::launch(splitVerticesKernel, {1024, 64}, onGPU_d.get(), ws_d.get(), 9.f);
cudaCheck(cudaMemcpy(&nv, LOC_WS(nvIntermediate), sizeof(uint32_t), cudaMemcpyDeviceToHost));
#else
Expand Down

0 comments on commit 2e52dc1

Please sign in to comment.