Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
demo
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
Show more breadcrumbs
Georgiana Mania
demo
Commits
60372a86
Commit
60372a86
authored
1 month ago
by
Panos Adamidis
Committed by
Joerg Behrens
4 weeks ago
Browse files
Options
Downloads
Patches
Plain Diff
Disable 1c use case (2d view no longer works)
parent
2ee992ae
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
main.cpp
+6
-1
6 additions, 1 deletion
main.cpp
with
6 additions
and
1 deletion
main.cpp
+
6
−
1
View file @
60372a86
...
...
@@ -119,6 +119,7 @@ void scenario_1c(double* array, int nblocks, int nlev, int nproma) {
}
#if 0
void scenario_1cmacro(double* array, int nblocks, int nlev, int nproma) {
std::cout << "scenario 1cmacro: +ACC CPU:LayoutLeft GPU:LayoutLeft; as ICON pointer view(array, ncells, nlev); d_view(jc, jk) ----- " << std::endl;
...
...
@@ -146,6 +147,7 @@ void scenario_1cmacro(double* array, int nblocks, int nlev, int nproma) {
printf
(
"Time = %f ms
\n\n
"
,
timer
.
seconds
()
*
1000
);
}
#endif
void
scenario_2
(
double
*
array
,
int
nblocks
,
int
nlev
,
int
nproma
,
bool
print
=
true
)
{
...
...
@@ -635,10 +637,13 @@ int main() {
openacc_calls
(
array
,
nblocks
,
nlev
,
nproma
,
s_1c
);
memset
(
array
,
0.0
,
sizeof
(
array
));
#if 0
std::function<void(double*, int, int, int)> s_1cmacro = scenario_1cmacro;
openacc_calls(array, nblocks, nlev, nproma, s_1cmacro);
memset(array, 0.0, sizeof(array));
#endif
std
::
function
<
void
(
double
*
,
int
,
int
,
int
)
>
s_7b
=
scenario_7b
;
openacc_calls
(
array
,
nblocks
,
nlev
,
nproma
,
s_7b
);
...
...
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