Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
NP_TMcode
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Giacomo Mulas
NP_TMcode
Commits
5f45ef68
Commit
5f45ef68
authored
4 months ago
by
Giovanni La Mura
Browse files
Options
Downloads
Patches
Plain Diff
Update parallel description comments
parent
11386413
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/cluster/cluster.cpp
+6
-3
6 additions, 3 deletions
src/cluster/cluster.cpp
with
6 additions
and
3 deletions
src/cluster/cluster.cpp
+
6
−
3
View file @
5f45ef68
...
@@ -326,6 +326,9 @@ void cluster(const string& config_file, const string& data_file, const string& o
...
@@ -326,6 +326,9 @@ void cluster(const string& config_file, const string& data_file, const string& o
return
;
return
;
}
}
//==================================================
// do the first outputs here, so that I open here the new files, afterwards I only append
//==================================================
vtppoanp
->
write_to_disk
(
output_path
+
"/c_TPPOAN"
);
vtppoanp
->
write_to_disk
(
output_path
+
"/c_TPPOAN"
);
delete
vtppoanp
;
delete
vtppoanp
;
...
@@ -420,8 +423,8 @@ void cluster(const string& config_file, const string& data_file, const string& o
...
@@ -420,8 +423,8 @@ void cluster(const string& config_file, const string& data_file, const string& o
// the parallel loop over MPI processes covers a different set of indices for each thread
// the parallel loop over MPI processes covers a different set of indices for each thread
#pragma omp barrier
#pragma omp barrier
int
myjxi488
=
ixi488
+
myompthread
;
int
myjxi488
=
ixi488
+
myompthread
;
vtppoanp_2
=
new
VirtualBinaryFile
();
// each thread opens new virtual files and stores their pointers in the shared array
// each thread opens new virtual files and stores their pointers in the shared array
vtppoanp_2
=
new
VirtualBinaryFile
();
// each thread puts a copy of the pointers to its virtual files in the shared arrays
// each thread puts a copy of the pointers to its virtual files in the shared arrays
vtppoanarray
[
myompthread
]
=
vtppoanp_2
;
vtppoanarray
[
myompthread
]
=
vtppoanp_2
;
#pragma omp barrier
#pragma omp barrier
...
...
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