@@ -386,8 +386,8 @@ GPUg() void computeLayerCellsKernel(
386386 for (int iCurrentTrackletIndex = blockIdx .x * blockDim .x + threadIdx .x ; iCurrentTrackletIndex < nTrackletsCurrent; iCurrentTrackletIndex += blockDim .x * gridDim .x ) {
387387 const Tracklet& currentTracklet = tracklets[layer][iCurrentTrackletIndex];
388388 const int nextLayerClusterIndex{currentTracklet.secondClusterIndex };
389- const int nextLayerFirstTrackletIndex{trackletsLUT[layer][nextLayerClusterIndex]};
390- const int nextLayerLastTrackletIndex{trackletsLUT[layer][nextLayerClusterIndex + 1 ]};
389+ const int nextLayerFirstTrackletIndex{trackletsLUT[layer + 1 ][nextLayerClusterIndex]};
390+ const int nextLayerLastTrackletIndex{trackletsLUT[layer + 1 ][nextLayerClusterIndex + 1 ]};
391391 if (nextLayerFirstTrackletIndex == nextLayerLastTrackletIndex) {
392392 continue ;
393393 }
@@ -612,7 +612,7 @@ GPUg() void printBufferLayerOnThread(const int layer, const int* v, unsigned int
612612 }
613613}
614614
615- GPUg () void printMatrixRow (const int row, const int ** mat, const unsigned int rowLength, const int len = 256 * 128 + 1 , const unsigned int tId = 0 )
615+ GPUg () void printMatrixRow (const int row, int ** mat, const unsigned int rowLength, const int len = 256 * 128 + 1 , const unsigned int tId = 0 )
616616{
617617 if (blockIdx .x * blockDim .x + threadIdx .x == tId) {
618618 for (int i{0 }; i < rowLength; ++i) {
@@ -723,34 +723,35 @@ void computeTrackletsInROFsHandler(const IndexTableUtils* utils,
723723 const int nThreads)
724724{
725725 for (int iLayer = 0 ; iLayer < nLayers - 1 ; ++iLayer) {
726- // gpu::computeLayerTrackletsMultiROFKernel<<<1, 1>>>(
727- // utils,
728- // multMask,
729- // iLayer,
730- // startROF,
731- // endROF,
732- // maxROF,
733- // deltaROF,
734- // vertices,
735- // rofPV,
736- // nVertices,
737- // vertexId,
738- // clusters,
739- // ROFClusters,
740- // usedClusters,
741- // clustersIndexTables,
742- // trackletsLUTs,
743- // iteration,
744- // NSigmaCut,
745- // phiCuts[iLayer],
746- // resolutionPV,
747- // minRs[iLayer + 1],
748- // maxRs[iLayer + 1],
749- // resolutions[iLayer],
750- // radii[iLayer + 1] - radii[iLayer],
751- // mulScatAng[iLayer]);
726+ gpu::computeLayerTrackletsMultiROFKernel<<<1 , 1 >>> (
727+ utils,
728+ multMask,
729+ iLayer,
730+ startROF,
731+ endROF,
732+ maxROF,
733+ deltaROF,
734+ vertices,
735+ rofPV,
736+ nVertices,
737+ vertexId,
738+ clusters,
739+ ROFClusters,
740+ usedClusters,
741+ clustersIndexTables,
742+ trackletsLUTs,
743+ iteration,
744+ NSigmaCut,
745+ phiCuts[iLayer],
746+ resolutionPV,
747+ minRs[iLayer + 1 ],
748+ maxRs[iLayer + 1 ],
749+ resolutions[iLayer],
750+ radii[iLayer + 1 ] - radii[iLayer],
751+ mulScatAng[iLayer]);
752752 gpuCheckError (cudaPeekAtLastError ());
753753 gpuCheckError (cudaDeviceSynchronize ());
754+ gpu::printMatrixRow<<<1 , 1 >>> (iLayer, trackletsLUTs, 3000 );
754755 }
755756}
756757
0 commit comments