Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
Root
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
为了安全,强烈建议开启2FA双因子认证:User Settings -> Account -> Enable two-factor authentication!!!
Show more breadcrumbs
cxwx
Root
Commits
6ac7b9bd
Commit
6ac7b9bd
authored
8 years ago
by
Olivier Couet
Browse files
Options
Downloads
Patches
Plain Diff
Add missing /
parent
29d26571
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tutorials/multicore/imt001_parBranchProcessing.C
+5
-5
5 additions, 5 deletions
tutorials/multicore/imt001_parBranchProcessing.C
with
5 additions
and
5 deletions
tutorials/multicore/imt001_parBranchProcessing.C
+
5
−
5
View file @
6ac7b9bd
...
@@ -3,8 +3,8 @@
...
@@ -3,8 +3,8 @@
/// Demonstrate how to activate and use the implicit parallelisation of TTree::GetEntry.
/// Demonstrate how to activate and use the implicit parallelisation of TTree::GetEntry.
/// Such parallelisation creates one task per top-level branch of the tree being read.
/// Such parallelisation creates one task per top-level branch of the tree being read.
/// In this example, most of the branches are floating point numbers, which are very fast to read.
/// In this example, most of the branches are floating point numbers, which are very fast to read.
// This parallelisation can be used, though, on bigger trees with many (complex) branches, which
//
/
This parallelisation can be used, though, on bigger trees with many (complex) branches, which
// are more likely to benefit from speedup gains.
//
/
are more likely to benefit from speedup gains.
///
///
/// \macro_code
/// \macro_code
///
///
...
@@ -45,13 +45,13 @@ int imt001_parBranchProcessing()
...
@@ -45,13 +45,13 @@ int imt001_parBranchProcessing()
// IMT can be also disabled globally.
// IMT can be also disabled globally.
// As a result, no tree will run GetEntry in parallel
// As a result, no tree will run GetEntry in parallel
ROOT
::
DisableImplicitMT
();
ROOT
::
DisableImplicitMT
();
// This is still sequential: the global flag is disabled, even if the
// This is still sequential: the global flag is disabled, even if the
// flag for this particular tree is enabled
// flag for this particular tree is enabled
for
(
Long64_t
i
=
0
;
i
<
tree
->
GetEntries
();
++
i
)
{
for
(
Long64_t
i
=
0
;
i
<
tree
->
GetEntries
();
++
i
)
{
tree
->
GetEntry
(
i
);
// sequential read
tree
->
GetEntry
(
i
);
// sequential read
}
}
return
0
;
return
0
;
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment