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

Cleanup defines, includes, file names, and debug messages #122

Merged
merged 4 commits into from
Aug 9, 2018

Conversation

fwyzard
Copy link

@fwyzard fwyzard commented Aug 9, 2018

Do not #ifdef on __NVCC__: to protect CUDA-aware code sections, check if the __CUDACC__ symbol is defined. The symbol __NVCC__ is defined when building with nvcc, but not when building CUDA code with clang.

Move header files referenced from outside their directory to the interface/ directory, and update the include guards accordingly.

Include <cuda_runtime.h> instead of <cuda.h> to handle the CUDA attributes in non-CUDA compilations.

Rename PixelTrackReconstructionGPU_impl.cu to PixelTrackReconstructionGPU.cu.

Other cleanup: #defines, debug messages, change __inline__ to inline, fix include guards, whitespaces, etc.

To protect CUDA-aware code sections, check if the __CUDACC__ symbol is defined.
The symbol __NVCC__ is defined when building with nvcc, but not when building CUDA code with clang.

Other cleanup (change __inline__ to inline, fix include guards, whitespaces, etc.).
Move header files referenced from outside their directory to the interface/ directory.
Update the #include guards accordingly.
Rename PixelTrackReconstructionGPU_impl.cu to PixelTrackReconstructionGPU.cu.
Remove a debug printf message.
Copy link

@makortel makortel left a comment

Choose a reason for hiding this comment

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

I don't like moving the (CPU) CA internal headers to interface, but given the state within this PR, I agree that in principle it is correct. Let's see if they can be cleaned up after #120 / #123.

@@ -1,25 +1,19 @@
#include "RecoPixelVertexing/PixelLowPtUtilities/interface/ClusterShapeTrackFilter.h"
Copy link

Choose a reason for hiding this comment

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

Did you intend to reformat also the irrelevant (for us) files?

Copy link
Author

Choose a reason for hiding this comment

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

I needed to update them to reflect the new include paths, so I took a stab at that as well.

Copy link

Choose a reason for hiding this comment

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

Ok. Would be worth of the effort to propagate those back to CMSSW master?

Copy link
Author

Choose a reason for hiding this comment

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

Yes, I usually try to make a PR for the CMSSW master whenever I rebase our branch on a new release (and 10.2.2 just came out...)

@@ -1,17 +1,13 @@
#ifndef RECOPIXELVERTEXING_PIXELTRACKFITTING_RIEMANNFIT_H
#define RECOPIXELVERTEXING_PIXELTRACKFITTING_RIEMANNFIT_H

Copy link

Choose a reason for hiding this comment

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

Should this include guard be renamed as well? (Doesn't really matter to me, but I saw other similar guards renamed)

Copy link
Author

Choose a reason for hiding this comment

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

Sure, I can do that as well.

#include "RecoPixelVertexing/PixelTriplets/interface/ThirdHitPredictionFromCircle.h"
#include "RecoPixelVertexing/PixelTriplets/src/CellularAutomaton.h"
Copy link
Author

Choose a reason for hiding this comment

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

@makortel , the internal CA headers were already being included outside of the library itself, so they should live in interface.

Copy link

Choose a reason for hiding this comment

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

In patatrack, yes, but not in CMSSW master.

@fwyzard
Copy link
Author

fwyzard commented Aug 9, 2018

Validation summary

Reference release CMSSW_10_2_1 at d00b7b4
Development branch CMSSW_10_2_X_Patatrack at 623baf7
Testing PRs:

makeTrackValidationPlots.py plots

/RelValTTbar_13/CMSSW_10_2_1-PU25ns_102X_upgrade2018_realistic_v9_gcc7-v1/GEN-SIM-DIGI-RAW

/RelValZMM_13/CMSSW_10_2_1-102X_upgrade2018_realistic_v9_gcc7-v1/GEN-SIM-DIGI-RAW

DQM GUI plots

/RelValTTbar_13/CMSSW_10_2_1-PU25ns_102X_upgrade2018_realistic_v9_gcc7-v1/GEN-SIM-DIGI-RAW

/RelValZMM_13/CMSSW_10_2_1-102X_upgrade2018_realistic_v9_gcc7-v1/GEN-SIM-DIGI-RAW

logs and nvprof/nvvp profiles

/RelValTTbar_13/CMSSW_10_2_1-PU25ns_102X_upgrade2018_realistic_v9_gcc7-v1/GEN-SIM-DIGI-RAW

/RelValZMM_13/CMSSW_10_2_1-102X_upgrade2018_realistic_v9_gcc7-v1/GEN-SIM-DIGI-RAW

Logs

The full log is available at https://fwyzard.web.cern.ch/fwyzard/patatrack/pulls/accc55fee7c6be00e1e5df6a3328057ed96d82e6/log .

@fwyzard
Copy link
Author

fwyzard commented Aug 9, 2018

It looks like the HEAD of the CMSSW_10_2_X_Patatrack branch works (it did not before), while this PR breaks it (it did not in my local tests).

I am now rather puzzled...

@fwyzard
Copy link
Author

fwyzard commented Aug 9, 2018

...I am tempted to ascribe it to the partial irreproducibility of the link process (because of the current build rules), that sometimes triggers the cudaErrorInvalidDeviceFunction: invalid device function error.

Include <cuda_runtime.h> instead of <cuda.h> to handle the CUDA
attributes in non-CUDA compilations.
Remove a debug printf message.
@fwyzard fwyzard merged commit 9b61c45 into cms-patatrack:CMSSW_10_2_X_Patatrack Aug 9, 2018
@fwyzard fwyzard deleted the cleanup branch August 9, 2018 10:26
@fwyzard fwyzard added this to the CMSSW_10_2_2_Patatrack milestone Aug 14, 2018
fwyzard added a commit to fwyzard/cmssw that referenced this pull request Aug 14, 2018
Cleanup whitespaces and indenttion, plugin definitions, includes, and
file names.

Backport from the Patatrack fork: cms-patatrack#49, cms-patatrack#122,
cms-patatrack#134.
fwyzard added a commit to fwyzard/cmssw that referenced this pull request Aug 14, 2018
Cleanup whitespaces and indenttion, plugin definitions, includes, and file names.

Backport from the Patatrack fork: cms-patatrack#49, cms-patatrack#122, cms-patatrack#134.
fwyzard added a commit to fwyzard/cmssw that referenced this pull request Aug 14, 2018
Cleanup whitespaces and indenttion, plugin definitions, includes, and file names.

Backport from the Patatrack fork: cms-patatrack#49, cms-patatrack#122, cms-patatrack#134.
fwyzard added a commit to fwyzard/cmssw that referenced this pull request Aug 15, 2018
Cleanup whitespaces and indenttion, plugin definitions, includes, and file names.

Backport from the Patatrack fork: cms-patatrack#49, cms-patatrack#122, cms-patatrack#134.
fwyzard added a commit to fwyzard/cmssw that referenced this pull request Aug 15, 2018
Cleanup whitespaces and indenttion, plugin definitions, includes, and file names.

Backport from the Patatrack fork: cms-patatrack#49, cms-patatrack#122, cms-patatrack#134.
@fwyzard fwyzard modified the milestone: CMSSW_10_2_2_Patatrack Sep 2, 2018
bkilian15 pushed a commit to bkilian15/cmssw that referenced this pull request May 15, 2019
…TauRecoMiniAOD_ResolveConflicts

Tau RECO on MiniAOD: A fix and addressed review comments
fwyzard added a commit that referenced this pull request Oct 8, 2020
Cleanup whitespaces and indenttion, plugin definitions, includes, and file names.

Backport from the Patatrack fork: #49, #122, #134.
fwyzard added a commit that referenced this pull request Oct 8, 2020
Do not #ifdef on __NVCC__: to protect CUDA-aware code sections, check if the __CUDACC__ symbol is defined. The symbol __NVCC__ is defined when building with nvcc, but not when building CUDA code with clang.

Move header files referenced from outside their directory to the interface/ directory, and update the include guards accordingly.

Include <cuda_runtime.h> instead of <cuda.h> to handle the CUDA attributes in non-CUDA compilations.

Rename PixelTrackReconstructionGPU_impl.cu to PixelTrackReconstructionGPU.cu.

Other cleanup: #defines, debug messages, change __inline__ to inline, fix include guards, whitespaces, etc.
fwyzard added a commit that referenced this pull request Oct 19, 2020
Cleanup whitespaces and indenttion, plugin definitions, includes, and file names.

Backport from the Patatrack fork: #49, #122, #134.
fwyzard added a commit that referenced this pull request Oct 20, 2020
Do not #ifdef on __NVCC__: to protect CUDA-aware code sections, check if the __CUDACC__ symbol is defined. The symbol __NVCC__ is defined when building with nvcc, but not when building CUDA code with clang.

Move header files referenced from outside their directory to the interface/ directory, and update the include guards accordingly.

Include <cuda_runtime.h> instead of <cuda.h> to handle the CUDA attributes in non-CUDA compilations.

Rename PixelTrackReconstructionGPU_impl.cu to PixelTrackReconstructionGPU.cu.

Other cleanup: #defines, debug messages, change __inline__ to inline, fix include guards, whitespaces, etc.
fwyzard added a commit that referenced this pull request Oct 20, 2020
Cleanup whitespaces and indenttion, plugin definitions, includes, and file names.

Backport from the Patatrack fork: #49, #122, #134.
fwyzard added a commit that referenced this pull request Oct 20, 2020
Do not #ifdef on __NVCC__: to protect CUDA-aware code sections, check if the __CUDACC__ symbol is defined. The symbol __NVCC__ is defined when building with nvcc, but not when building CUDA code with clang.

Move header files referenced from outside their directory to the interface/ directory, and update the include guards accordingly.

Include <cuda_runtime.h> instead of <cuda.h> to handle the CUDA attributes in non-CUDA compilations.

Rename PixelTrackReconstructionGPU_impl.cu to PixelTrackReconstructionGPU.cu.

Other cleanup: #defines, debug messages, change __inline__ to inline, fix include guards, whitespaces, etc.
fwyzard added a commit that referenced this pull request Oct 23, 2020
Do not #ifdef on __NVCC__: to protect CUDA-aware code sections, check if the __CUDACC__ symbol is defined. The symbol __NVCC__ is defined when building with nvcc, but not when building CUDA code with clang.

Move header files referenced from outside their directory to the interface/ directory, and update the include guards accordingly.

Include <cuda_runtime.h> instead of <cuda.h> to handle the CUDA attributes in non-CUDA compilations.

Rename PixelTrackReconstructionGPU_impl.cu to PixelTrackReconstructionGPU.cu.

Other cleanup: #defines, debug messages, change __inline__ to inline, fix include guards, whitespaces, etc.
fwyzard added a commit that referenced this pull request Oct 23, 2020
Cleanup whitespaces and indenttion, plugin definitions, includes, and file names.

Backport from the Patatrack fork: #49, #122, #134.
fwyzard added a commit that referenced this pull request Nov 6, 2020
Cleanup whitespaces and indenttion, plugin definitions, includes, and file names.

Backport from the Patatrack fork: #49, #122, #134.
fwyzard added a commit that referenced this pull request Nov 6, 2020
Do not #ifdef on __NVCC__: to protect CUDA-aware code sections, check if the __CUDACC__ symbol is defined. The symbol __NVCC__ is defined when building with nvcc, but not when building CUDA code with clang.

Move header files referenced from outside their directory to the interface/ directory, and update the include guards accordingly.

Include <cuda_runtime.h> instead of <cuda.h> to handle the CUDA attributes in non-CUDA compilations.

Rename PixelTrackReconstructionGPU_impl.cu to PixelTrackReconstructionGPU.cu.

Other cleanup: #defines, debug messages, change __inline__ to inline, fix include guards, whitespaces, etc.
fwyzard added a commit that referenced this pull request Nov 6, 2020
Do not #ifdef on __NVCC__: to protect CUDA-aware code sections, check if the __CUDACC__ symbol is defined. The symbol __NVCC__ is defined when building with nvcc, but not when building CUDA code with clang.

Move header files referenced from outside their directory to the interface/ directory, and update the include guards accordingly.

Include <cuda_runtime.h> instead of <cuda.h> to handle the CUDA attributes in non-CUDA compilations.

Rename PixelTrackReconstructionGPU_impl.cu to PixelTrackReconstructionGPU.cu.

Other cleanup: #defines, debug messages, change __inline__ to inline, fix include guards, whitespaces, etc.
fwyzard added a commit that referenced this pull request Nov 16, 2020
Cleanup whitespaces and indenttion, plugin definitions, includes, and file names.

Backport from the Patatrack fork: #49, #122, #134.
fwyzard added a commit that referenced this pull request Nov 16, 2020
Do not #ifdef on __NVCC__: to protect CUDA-aware code sections, check if the __CUDACC__ symbol is defined. The symbol __NVCC__ is defined when building with nvcc, but not when building CUDA code with clang.

Move header files referenced from outside their directory to the interface/ directory, and update the include guards accordingly.

Include <cuda_runtime.h> instead of <cuda.h> to handle the CUDA attributes in non-CUDA compilations.

Rename PixelTrackReconstructionGPU_impl.cu to PixelTrackReconstructionGPU.cu.

Other cleanup: #defines, debug messages, change __inline__ to inline, fix include guards, whitespaces, etc.
fwyzard added a commit that referenced this pull request Nov 27, 2020
Do not #ifdef on __NVCC__: to protect CUDA-aware code sections, check if the __CUDACC__ symbol is defined. The symbol __NVCC__ is defined when building with nvcc, but not when building CUDA code with clang.

Move header files referenced from outside their directory to the interface/ directory, and update the include guards accordingly.

Include <cuda_runtime.h> instead of <cuda.h> to handle the CUDA attributes in non-CUDA compilations.

Rename PixelTrackReconstructionGPU_impl.cu to PixelTrackReconstructionGPU.cu.

Other cleanup: #defines, debug messages, change __inline__ to inline, fix include guards, whitespaces, etc.
fwyzard pushed a commit that referenced this pull request Dec 25, 2020
Cleanup whitespaces and indenttion, plugin definitions, includes, and file names.

Backport from the Patatrack fork: #49, #122, #134.
fwyzard pushed a commit that referenced this pull request Dec 26, 2020
Do not #ifdef on __NVCC__: to protect CUDA-aware code sections, check if the __CUDACC__ symbol is defined. The symbol __NVCC__ is defined when building with nvcc, but not when building CUDA code with clang.

Move header files referenced from outside their directory to the interface/ directory, and update the include guards accordingly.

Include <cuda_runtime.h> instead of <cuda.h> to handle the CUDA attributes in non-CUDA compilations.

Rename PixelTrackReconstructionGPU_impl.cu to PixelTrackReconstructionGPU.cu.

Other cleanup: #defines, debug messages, change __inline__ to inline, fix include guards, whitespaces, etc.
fwyzard added a commit that referenced this pull request Dec 29, 2020
Cleanup whitespaces and indenttion, plugin definitions, includes, and file names.

Backport from the Patatrack fork: #49, #122, #134.
fwyzard added a commit that referenced this pull request Dec 29, 2020
Cleanup whitespaces and indenttion, plugin definitions, includes, and file names.

Backport from the Patatrack fork: #49, #122, #134.
fwyzard added a commit that referenced this pull request Jan 15, 2021
Do not #ifdef on __NVCC__: to protect CUDA-aware code sections, check if the __CUDACC__ symbol is defined. The symbol __NVCC__ is defined when building with nvcc, but not when building CUDA code with clang.

Move header files referenced from outside their directory to the interface/ directory, and update the include guards accordingly.

Include <cuda_runtime.h> instead of <cuda.h> to handle the CUDA attributes in non-CUDA compilations.

Rename PixelTrackReconstructionGPU_impl.cu to PixelTrackReconstructionGPU.cu.

Other cleanup: #defines, debug messages, change __inline__ to inline, fix include guards, whitespaces, etc.
fwyzard added a commit that referenced this pull request Apr 1, 2021
Do not #ifdef on __NVCC__: to protect CUDA-aware code sections, check if the __CUDACC__ symbol is defined. The symbol __NVCC__ is defined when building with nvcc, but not when building CUDA code with clang.

Move header files referenced from outside their directory to the interface/ directory, and update the include guards accordingly.

Include <cuda_runtime.h> instead of <cuda.h> to handle the CUDA attributes in non-CUDA compilations.

Rename PixelTrackReconstructionGPU_impl.cu to PixelTrackReconstructionGPU.cu.

Other cleanup: #defines, debug messages, change __inline__ to inline, fix include guards, whitespaces, etc.
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