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

CUDA Vector for easier pushback #7

Conversation

felicepantaleo
Copy link

CUDA vector structure with a simple test file.

sushildubey171 and others added 30 commits January 22, 2018 10:25
  - remove log files
  - rename CUDA plugins to avoid conflict with standard ones
  - recover non-GPU code
  - fill siPixel digi collection
  - other changes
  - add DQM validation
  - fix column binning
  - changes for validation
  - add and unpack errors
  - add module to unpacking and bad rocs
  - map fixes
  - remove `static` variables
  - comment out the debug code
  - general clean up
…eInPath

Backport, Modify FileInPath to not lookup file in edmWriteConfigs
Restoring egamma DQM sequence for allForPrompt  (100X)
Make calls to TH2F::Projection thread-safe for 10_0
Adding an accessor for groomed jet mass in 10.0.x
NanoAOD Update: trigger, nPV, pileup (10_0_X)
  - mark `PixelDigi` constructor as `explicit`
  - improve `SiPixelGainCalibrationOffline::getPed` exception error message
  - avoid hanging;
  - reproduce CPU unpacker resultsalso for data.
@fwyzard
Copy link

fwyzard commented Feb 15, 2018

Can you move this to HeterogenousCore/CUDAUtilities/include ?

@@ -0,0 +1,94 @@
// author: Felice Pantaleo, CERN, 2018
#ifndef GPU_SIMPLEVECTOR_H_
Copy link

@fwyzard fwyzard Feb 15, 2018

Choose a reason for hiding this comment

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

can you change this to

#ifndef HeterogenousCore_CUDAUtilities_SimpleVector_h
...

@fwyzard fwyzard changed the base branch from CMSSW_10_0_X_Patatrack to CMSSW_10_1_X_Patatrack February 15, 2018 14:43
fwyzard added a commit that referenced this pull request Feb 15, 2018
@fwyzard
Copy link

fwyzard commented Feb 15, 2018

Merged by 4bec277

@fwyzard fwyzard closed this Feb 15, 2018
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.

Despite of this PR getting merged I wanted to make a couple of minor comments.

@@ -0,0 +1,2 @@
<use name="cuda"/>

Choose a reason for hiding this comment

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

I would assume this file is not needed as there is no src directory to compile.

Copy link

Choose a reason for hiding this comment

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

True, but GPUSimpleVector.h does include CUDA files, so I thought better to add it.

Choose a reason for hiding this comment

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

Ok. (and eventually it is likely needed anyway)

if (m_size > 0) {
return m_data[m_size - 1];
} else
return T(); //undefined behaviour

Choose a reason for hiding this comment

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

Could this be simply return m_data[m_size-1];? For m_size <= 0 the behaviour will be undefined anyway (leading to segfault if we're lucky), so this would allow removing one if.

Copy link

Choose a reason for hiding this comment

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

OK by me.

In fact it make little sense to return a temporary T() by reference.

And by the way, we should have both

T const & back() const;
T & back();

@@ -0,0 +1,3 @@
<bin file="test_GPUSimpleVector.cu" name="test_GPUSimpleVector">
<flags CUDA_FLAGS="-std=c++14"/>

Choose a reason for hiding this comment

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

Do I guess correctly that this rule does not need <use name="cuda"/> because the .cu is compiled directly to the executable solely by nvcc?

Copy link

Choose a reason for hiding this comment

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

I think SCRAM automatically "uses" cuda for .cu files.
Would make sense to add it, though.

Copy link

Choose a reason for hiding this comment

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

And/or <use name="HeterogeneousCore/CUDAUtilities"/> .

fwyzard pushed a commit that referenced this pull request Dec 7, 2018
fwyzard pushed a commit that referenced this pull request May 23, 2020
…ms (L1Trigger/TrackFindingTMTT) (cms-sw#29381)

* create separate PRs for the two L1TK packages

* Improved KF efficiency at high eta

* Moved MC data files to cms-data

* Removed old file

* Removed KF HLS to put instead in external library

* Ran scram b code-format

* Delete KF4ParamsComb.h.bak

* Delete KF4ParamsCombIV.bak

* Delete KF4ParamsCombV2.bak

* Delete KF5ParamsComb.h.bak

* Delete KF4ParamsComb.cc.bak

* Delete KF4ParamsCombIV.bak

* Delete KF4ParamsCombV2.bak

* Delete KF5ParamsComb.cc.bak

* L1 tk integration tmtt pre5 (#7)

* Added CMS code style fixes

* Removed old file

* Reapplied stub b code-format

* All code review changes (#13)

* Fix clang errors (#14)

* fixed clang error

* directory for MC txt files

* Fixed clang warnings + minor simplifications (#15)

* tweak

* tweak

* Fixed clang warnings and small simplifications

* Fixed clang warnings and small simplifications

* All remaining review comments addressed (#16)

* Replaced vector size with empty function

* Simplified DegradeBend and StubWindowSuggest

* Fixed more review comments

* More review comments

* code reformat

* Ran exhaustive clang tidy

* Added library to BuildFile.xml (#17)

* Deleted TrackFindingTMT/data/README (#18)

* Added library to BuildFile.xml (This was already done yesterday. Not sure why it appears again)

* README file in data directory deleted

* Fix review comments (#20)

Co-authored-by: Louise Skinnari <louise.skinnari@cern.ch>
fwyzard pushed a commit that referenced this pull request Aug 10, 2020
add Global Tags for geometries T21, T22, T23 and adjust customizations in the upgradeWorkflowComponents file
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.