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
5d3eb583
Commit
5d3eb583
authored
3 weeks ago
by
Giovanni La Mura
Browse files
Options
Downloads
Patches
Plain Diff
Add vkv and vec_vkzm vectors to mapping
parent
cb308b85
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
+6
-2
6 additions, 2 deletions
src/trapping/cfrfme.cpp
with
6 additions
and
2 deletions
src/trapping/cfrfme.cpp
+
6
−
2
View file @
5d3eb583
...
@@ -649,10 +649,12 @@ void map_data(
...
@@ -649,10 +649,12 @@ void map_data(
double
*
_yv
,
int
nyv
,
double
*
_zv
,
int
nzv
,
double
*
vec_vkzm
,
int
jlmf
,
int
jlml
,
double
*
_yv
,
int
nyv
,
double
*
_zv
,
int
nzv
,
double
*
vec_vkzm
,
int
jlmf
,
int
jlml
,
int
nkv
,
int
nlmmt
int
nkv
,
int
nlmmt
)
{
)
{
int
nkvs
=
nkv
*
nkv
;
#pragma omp target enter data map(to: vec_wsum[0:size_vec_wsum]) \
#pragma omp target enter data map(to: vec_wsum[0:size_vec_wsum]) \
map(alloc: global_vec_w[0:size_global_vec_w]) \
map(alloc: global_vec_w[0:size_global_vec_w]) \
map(to: vec_tt1_wk[0:size_vec_tt1_wk]) \
map(to: vec_tt1_wk[0:size_vec_tt1_wk]) \
map(to: _xv[0:nxv], _yv[0:nyv], _zv[0:nzv])
map(to: _xv[0:nxv], _yv[0:nyv], _zv[0:nzv]) \
map(to: vkv[0:nkv], vec_vkzm[0:nkvs])
}
}
void
offload_loop
(
void
offload_loop
(
...
@@ -719,9 +721,11 @@ void unmap_data(
...
@@ -719,9 +721,11 @@ void unmap_data(
double
*
_yv
,
int
nyv
,
double
*
_zv
,
int
nzv
,
double
*
vec_vkzm
,
int
jlmf
,
int
jlml
,
double
*
_yv
,
int
nyv
,
double
*
_zv
,
int
nzv
,
double
*
vec_vkzm
,
int
jlmf
,
int
jlml
,
int
nkv
,
int
nlmmt
int
nkv
,
int
nlmmt
)
{
)
{
int
nkvs
=
nkv
*
nkv
;
#pragma omp target exit data map(from: vec_wsum[0:size_vec_wsum]) \
#pragma omp target exit data map(from: vec_wsum[0:size_vec_wsum]) \
map(delete: global_vec_w[0:size_global_vec_w]) \
map(delete: global_vec_w[0:size_global_vec_w]) \
map(delete: vec_tt1_wk[0:size_vec_tt1_wk]) \
map(delete: vec_tt1_wk[0:size_vec_tt1_wk]) \
map(delete: _xv[0:nxv], _yv[0:nyv], _zv[0:nzv])
map(delete: _xv[0:nxv], _yv[0:nyv], _zv[0:nzv]) \
map(delete: vkv[0:nkv], vec_vkzm[0:nkvs])
}
}
#endif // USE TARGET_OFFLOAD
#endif // USE TARGET_OFFLOAD
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