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
07a18994
Commit
07a18994
authored
2 months ago
by
Mulas, Giacomo
Browse files
Options
Downloads
Patches
Plain Diff
clean up USE_TARGET_OFFLOAD conditionals
parent
96aaf2b8
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
+9
-3
9 additions, 3 deletions
src/trapping/cfrfme.cpp
with
9 additions
and
3 deletions
src/trapping/cfrfme.cpp
+
9
−
3
View file @
07a18994
...
@@ -403,6 +403,8 @@ void frfme(string data_file, string output_path) {
...
@@ -403,6 +403,8 @@ void frfme(string data_file, string output_path) {
double
*
vec_vkzm
=
vkzm
[
0
];
double
*
vec_vkzm
=
vkzm
[
0
];
#ifdef USE_TARGET_OFFLOAD
#ifdef USE_TARGET_OFFLOAD
#pragma omp target teams distribute parallel for simd
#pragma omp target teams distribute parallel for simd
#else
#pragma omp parallel for simd
#endif
#endif
// #pragma omp parallel for
// #pragma omp parallel for
for
(
int
j80
=
jlmf
-
1
;
j80
<
jlml
;
j80
++
)
{
for
(
int
j80
=
jlmf
-
1
;
j80
<
jlml
;
j80
++
)
{
...
@@ -417,8 +419,9 @@ void frfme(string data_file, string output_path) {
...
@@ -417,8 +419,9 @@ void frfme(string data_file, string output_path) {
// for (int jx50 = 0; jx50 < nkv; jx50++) {
// for (int jx50 = 0; jx50 < nkv; jx50++) {
// #ifdef USE_TARGET_OFFLOAD
// #ifdef USE_TARGET_OFFLOAD
// #pragma omp target teams distribute parallel for simd
// #pragma omp target teams distribute parallel for simd
// #else
// #pragma omp parallel for simd
// #endif
// #endif
// #pragma omp parallel for
for
(
int
jxy50
=
0
;
jxy50
<
nkvs
;
jxy50
++
)
{
for
(
int
jxy50
=
0
;
jxy50
<
nkvs
;
jxy50
++
)
{
// for (int wi = 0; wi < nlmmt; wi++) wk_local[wi] = tt1->wk[wk_index++];
// for (int wi = 0; wi < nlmmt; wi++) wk_local[wi] = tt1->wk[wk_index++];
// w[jx50][jy50] = wk_local[j80];
// w[jx50][jy50] = wk_local[j80];
...
@@ -438,8 +441,9 @@ void frfme(string data_file, string output_path) {
...
@@ -438,8 +441,9 @@ void frfme(string data_file, string output_path) {
int
nvxy
=
nxv
*
nyv
;
int
nvxy
=
nxv
*
nyv
;
// #ifdef USE_TARGET_OFFLOAD
// #ifdef USE_TARGET_OFFLOAD
// #pragma omp target teams distribute parallel for
// #pragma omp target teams distribute parallel for
// #e
ndif
// #e
lse
// #pragma omp parallel for
// #pragma omp parallel for
// #endif
for
(
int
ixyz
=
0
;
ixyz
<
nvtot
;
ixyz
++
)
{
for
(
int
ixyz
=
0
;
ixyz
<
nvtot
;
ixyz
++
)
{
int
iz75
=
ixyz
/
nvxy
;
int
iz75
=
ixyz
/
nvxy
;
int
iy70
=
(
ixyz
%
nvxy
)
/
nxv
;
int
iy70
=
(
ixyz
%
nvxy
)
/
nxv
;
...
@@ -453,7 +457,9 @@ void frfme(string data_file, string output_path) {
...
@@ -453,7 +457,9 @@ void frfme(string data_file, string output_path) {
// ixyz++;
// ixyz++;
dcomplex
sumy
=
cc0
;
dcomplex
sumy
=
cc0
;
// #ifdef USE_TARGET_OFFLOAD
// #ifdef USE_TARGET_OFFLOAD
// #pragma omp target parallel for simd reduction(+:sumy)
// #pragma omp target teams distribute parallel for simd reduction(+:sumy)
// #else
// #pragma omp parallel for simd reduction(+:sumy)
// #endif
// #endif
for
(
int
jy60x55
=
0
;
jy60x55
<
nkvs
;
jy60x55
++
)
{
for
(
int
jy60x55
=
0
;
jy60x55
<
nkvs
;
jy60x55
++
)
{
int
jy60
=
jy60x55
/
nkv
;
int
jy60
=
jy60x55
/
nkv
;
...
...
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