Skip to content
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

Fix memory initialisation problems in the clusterizer (again) #114

Merged

Conversation

fwyzard
Copy link

@fwyzard fwyzard commented Aug 2, 2018

No description provided.

@fwyzard fwyzard merged commit 4fe0cb4 into cms-patatrack:CMSSW_10_2_X_Patatrack Aug 2, 2018
cudaMallocHost(&fedId_h, sizeof(unsigned char)*WSIZE);
// data structures size
constexpr uint32_t vsize = sizeof(GPU::SimpleVector<pixelgpudetails::error_obj>);
constexpr uint32_t esize = sizeof(pixelgpudetails::error_obj);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since these are defined in the implementation file (and so used only there), I think it would be a bit clearer/safer to define them in an anonymous namespace so that they would not "leak" to the namespace.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't disagree.

@fwyzard fwyzard deleted the fix_clusterizer_again branch August 25, 2018 07:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants