-
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
Follow up to the Alpaka integration in CMSSW #43853
Merged
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
28bcb55
Skip invalid or corrupted ROCs
fwyzard e142ccc
Add check on the ROC range
fwyzard a2c7a27
Clean up includes and dependencies in pixel CondFormats
fwyzard 2b5e6f6
Add overflow checks to CountModules::operator()
fwyzard 937f0da
Rewrite the pixel clustering code
fwyzard 571c91f
Rewrite the pixel charge cut code
fwyzard 357cfba
Update comments to pixel topologies
fwyzard 8f6ecae
Fixed decoding of the pixel timeout error
AdrianoDee c073269
Fix check for invalid pixel digis
AdrianoDee 1f91765
Fix the constants used in the pixel clustering
fwyzard c116e10
Minor clean up of legacy CUDA code
fwyzard f3592ed
Renumber the ECAL-only alpaka workflow to .412
fwyzard e16a1a8
Add pixel-only alpaka workflows to the README
fwyzard 0851cc3
Add alpaka workflows to the GPU relvals
fwyzard 9369dbc
Add a protection for quasi-empty events
fwyzard 63902cb
Fix include guards, clean up namespaces and includes
fwyzard ff7e930
Adjust the size of the collection created by CopyToHost::copyAsync
fwyzard bd9fe2d
Synchronise the treatment of pixel errors 26, 27, 30 with legacy code
fwyzard b3de2a3
Rewrite the uniform element kernel loops
fwyzard 5a87cef
Rewrite the independent element kernel loops
fwyzard 70371a8
Rewrite zeroAndInit kernel using alpakatools utilities
fwyzard 2d01108
Rewrite pixel clustering and rechits using alpakatools utilities
fwyzard 1bd5d4a
Rewrite pixel seeding using alpakatools utilities
fwyzard 008ca51
Rename elements_with_stride to uniform_elements in user code
fwyzard c7d3641
Remove obsolete alpakatools utilities
fwyzard 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
#ifndef CondFormats_SiPixelObjects_SiPixelMappingHost_h | ||
#define CondFormats_SiPixelObjects_SiPixelMappingHost_h | ||
#ifndef CondFormats_SiPixelObjects_interface_SiPixelMappingHost_h | ||
#define CondFormats_SiPixelObjects_interface_SiPixelMappingHost_h | ||
|
||
#include <alpaka/alpaka.hpp> | ||
#include "DataFormats/Portable/interface/PortableHostCollection.h" | ||
#include "CondFormats/SiPixelObjects/interface/SiPixelMappingLayout.h" | ||
#include "DataFormats/Portable/interface/PortableHostCollection.h" | ||
|
||
using SiPixelMappingHost = PortableHostCollection<SiPixelMappingSoA>; | ||
|
||
#endif // CondFormats_SiPixelObjects_SiPixelMappingHost_h | ||
#endif // CondFormats_SiPixelObjects_interface_SiPixelMappingHost_h |
5 changes: 3 additions & 2 deletions
5
CondFormats/SiPixelObjects/interface/alpaka/SiPixelGainCalibrationForHLTDevice.h
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 |
---|---|---|
@@ -1,13 +1,14 @@ | ||
#ifndef CondFormats_SiPixelObjects_interface_alpaka_SiPixelGainCalibrationForHLTDevice_h | ||
#define CondFormats_SiPixelObjects_interface_alpaka_SiPixelGainCalibrationForHLTDevice_h | ||
|
||
#include <alpaka/alpaka.hpp> | ||
#include "DataFormats/Portable/interface/alpaka/PortableCollection.h" | ||
#include "CondFormats/SiPixelObjects/interface/SiPixelGainCalibrationForHLTLayout.h" | ||
#include "DataFormats/Portable/interface/alpaka/PortableCollection.h" | ||
#include "HeterogeneousCore/AlpakaInterface/interface/config.h" | ||
|
||
namespace ALPAKA_ACCELERATOR_NAMESPACE { | ||
|
||
using SiPixelGainCalibrationForHLTDevice = PortableCollection<SiPixelGainCalibrationForHLTSoA>; | ||
|
||
} // namespace ALPAKA_ACCELERATOR_NAMESPACE | ||
|
||
#endif // CondFormats_SiPixelObjects_interface_alpaka_SiPixelGainCalibrationForHLTDevice_h |
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
11 changes: 9 additions & 2 deletions
11
CondFormats/SiPixelObjects/interface/alpaka/SiPixelMappingUtilities.h
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
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
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
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
Oops, something went wrong.
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.
This is certainly beyond this PR, but I want to note nevertheless the
AlpakaCore
dependence smells (because of its dependence on theFWCore/Framework
). It is, however, needed (even with this PR) because ofcmssw/CondFormats/SiPixelObjects/src/alpaka/T_EventSetup_SiPixelGainCalibrationForHLTDevice.cc
Line 2 in a37e29d
and
cmssw/HeterogeneousCore/AlpakaCore/interface/alpaka/typelookup.h
Line 5 in a37e29d
A simple fix would be to move
HeterogeneousCore/AlpakaCore/interface/alpaka/typelookup.h
andHeterogeneousCore/AlpakaCore/interface/alpaka/ESDeviceProduct.h
toHeterogeneousCore/AlpakaInterface
.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.
Mhm... I think that
ALPAKA_ACCELERATOR_NAMESPACE::ESDeviceProduct<T>
is something too framework specific forHeterogeneousCore/AlpakaInterface
?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.
AlpakaInterface
has alreadycmssw/HeterogeneousCore/AlpakaInterface/interface/CopyToDevice.h
Lines 4 to 5 in 70c7fb8
and
cmssw/HeterogeneousCore/AlpakaInterface/interface/CopyToHost.h
Lines 4 to 5 in 70c7fb8
Maybe we need a new package then for CMSSW-specific classes that must not depend on
FWCore/Framework
?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.
Ah, I see.