-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DO NOT MERGE] remove duplicate pixels #37359
Open
VinInn
wants to merge
23
commits into
cms-sw:master
Choose a base branch
from
VinInn:DupPix
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
57c2e1a
add layer and filter qual
VinInn e082b5d
on cpu as well
VinInn 3ac8d85
Make both ME1a and ME1b LCT (A/CLCT) sorted into ring 1.
sifuluo 145e293
Merge pull request #37217 from sifuluo/backport12_3
cmsbuild f9667d9
Merge pull request #37205 from cms-tsg-storm/HLTmigrationTo1230pre6
cmsbuild 907510d
use z as hit id
VinInn d02578e
introduce real data unit test for pede
mmusich d30ceca
Bugfix for Strips O2O
tvami 5a61538
Merge pull request #37206 from cms-tsg-storm/UpdateTSGandRelvalGTsFor…
cmsbuild ebad739
Merge pull request #37235 from mmusich/O2OFix_12_3_X
cmsbuild ece73a0
Merge pull request #37213 from quark2/GEM-onlineDQMForLumiBasedPlots-…
cmsbuild e9ca208
Merge pull request #37223 from francescobrivio/alca-tkStatusDCS_12_3_X
cmsbuild 7693016
Merge pull request #37226 from mmusich/addMillePedeTestingSetup_12_3_X
cmsbuild 01e4ab9
Merged DumpTK from repository VinInn with cms-merge-topic
VinInn ac99b70
detect dup pixels
VinInn 9541733
avoid reading outside buffer
VinInn 4d72974
reproduce CPU
VinInn f7bb5b6
Merged DupPix from repository VinInn with cms-merge-topic
VinInn 8c0bf85
remove tk dump
VinInn 6e6fcba
Merged DupPix from repository VinInn with cms-merge-topic
VinInn e09788b
remove all duplicates
VinInn 5cd32ba
add protections
VinInn ac1dd01
Merged DupPix from repository VinInn with cms-merge-topic
VinInn File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,7 +39,8 @@ namespace gpuClustering { | |
} | ||
|
||
template <bool isPhase2> | ||
__global__ void findClus(uint16_t const* __restrict__ id, // module id of each pixel | ||
__global__ void findClus(uint32_t* __restrict__ rawIdArr, | ||
uint16_t* __restrict__ id, // module id of each pixel | ||
uint16_t const* __restrict__ x, // local coordinates of each pixel | ||
uint16_t const* __restrict__ y, // | ||
uint32_t const* __restrict__ moduleStart, // index of the first pixel of each module | ||
|
@@ -103,6 +104,14 @@ namespace gpuClustering { | |
printf("too many pixels in module %d: %d > %d\n", thisModuleId, msize - firstPixel, maxPixInModule); | ||
msize = maxPixInModule + firstPixel; | ||
} | ||
/* | ||
/// dump | ||
if (thisModuleId==1) { | ||
printf ("dump for mod 1\n"); | ||
for (int k = int(firstPixel); k< msize; ++k) printf ("%d %d\n",x[k],y[k]); | ||
printf ("end dump for mod 1\n"); | ||
} | ||
*/ | ||
} | ||
|
||
__syncthreads(); | ||
|
@@ -114,6 +123,24 @@ namespace gpuClustering { | |
__syncthreads(); | ||
#endif | ||
|
||
// remove duplicate | ||
if (msize > 1) | ||
for (int i = first; i < msize - 1; i += blockDim.x) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. full combinatorics in one module to search for duplicates |
||
if (id[i] == invalidModuleId) // skip invalid pixels | ||
continue; | ||
for (int j = i + 1; j < msize; ++j) { | ||
if (id[j] == invalidModuleId) // skip invalid pixels | ||
continue; | ||
if (y[i] == y[j] && x[i] == x[j]) { | ||
// printf("found dup %d %d %d %d %d\n",i,j,id[i],x[i], y[i]); | ||
id[i] = invalidModuleId; | ||
rawIdArr[i] = 0; | ||
break; | ||
} | ||
} | ||
} | ||
__syncthreads(); | ||
|
||
// fill histo | ||
for (int i = first; i < msize; i += blockDim.x) { | ||
if (id[i] == invalidModuleId) // skip invalid pixels | ||
|
@@ -204,6 +231,7 @@ namespace gpuClustering { | |
continue; | ||
auto l = nnn[k]++; | ||
assert(l < maxNeighbours); | ||
// if (l>=5) printf("too many Neighbours! %d %d %d\n",thisModuleId, x[i], y[i]); | ||
nn[k][l] = *p; | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
skip if following is "duplicate"