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
b9f6783f
Commit
b9f6783f
authored
2 months ago
by
Giovanni La Mura
Browse files
Options
Downloads
Patches
Plain Diff
Implement an embarrasingly OMP parallel strategy for j80 loop
parent
43c640b0
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/trapping/cfrfme.cpp
+7
-6
7 additions, 6 deletions
src/trapping/cfrfme.cpp
with
7 additions
and
6 deletions
src/trapping/cfrfme.cpp
+
7
−
6
View file @
b9f6783f
...
...
@@ -374,14 +374,15 @@ void frfme(string data_file, string output_path) {
#ifdef USE_NVTX
nvtxRangePop
();
#endif
dcomplex
*
vec_w
=
new
dcomplex
[
nkv
*
nkv
]();
dcomplex
**
w
=
new
dcomplex
*
[
nkv
];
for
(
int
wi
=
0
;
wi
<
nkv
;
wi
++
)
w
[
wi
]
=
vec_w
+
wi
*
nkv
;
#ifdef USE_NVTX
nvtxRangePush
(
"j80 loop"
);
#endif
#pragma omp parallel for
for
(
int
j80
=
jlmf
;
j80
<=
jlml
;
j80
++
)
{
int
wk_index
=
0
;
dcomplex
*
vec_w
=
new
dcomplex
[
nkv
*
nkv
]();
dcomplex
**
w
=
new
dcomplex
*
[
nkv
];
for
(
int
wi
=
0
;
wi
<
nkv
;
wi
++
)
w
[
wi
]
=
vec_w
+
wi
*
nkv
;
int
wk_index
=
(
j80
-
jlmf
)
*
nkv
*
nkv
;
for
(
int
jy50
=
0
;
jy50
<
nkv
;
jy50
++
)
{
for
(
int
jx50
=
0
;
jx50
<
nkv
;
jx50
++
)
{
for
(
int
wi
=
0
;
wi
<
nlmmt
;
wi
++
)
wk
[
wi
]
=
tt1
->
vec_wk
[
wk_index
++
];
...
...
@@ -419,9 +420,9 @@ void frfme(string data_file, string output_path) {
}
// ix65 loop
}
// iy70 loop
}
// iz75 loop
}
// j80 loop
delete
[]
vec_w
;
delete
[]
w
;
}
// j80 loop
#ifdef USE_NVTX
nvtxRangePop
();
#endif
...
...
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