Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cdo
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor 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
mpim-sw
cdo
Commits
a03d4d78
Commit
a03d4d78
authored
11 months ago
by
Uwe Schulzweida
Browse files
Options
Downloads
Patches
Plain Diff
Added HAVE_OPENMP5
parent
a0054dd4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!225
M214003/develop
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/cdo_features.cc
+7
-1
7 additions, 1 deletion
src/cdo_features.cc
src/cimdOmp.h
+15
-0
15 additions, 0 deletions
src/cimdOmp.h
with
22 additions
and
1 deletion
src/cdo_features.cc
+
7
−
1
View file @
a03d4d78
...
...
@@ -165,7 +165,13 @@ cdo_print_features(void)
#endif
#ifdef _OPENMP
fprintf
(
fp
,
" OpenMP"
);
#if defined(HAVE_OPENMP45)
#if defined(HAVE_OPENMP52)
fprintf
(
fp
,
"52"
);
#elif defined(HAVE_OPENMP51)
fprintf
(
fp
,
"51"
);
#elif defined(HAVE_OPENMP5)
fprintf
(
fp
,
"5"
);
#elif defined(HAVE_OPENMP45)
fprintf
(
fp
,
"45"
);
#elif defined(HAVE_OPENMP4)
fprintf
(
fp
,
"4"
);
...
...
This diff is collapsed.
Click to expand it.
src/cimdOmp.h
+
15
−
0
View file @
a03d4d78
...
...
@@ -5,6 +5,9 @@
#define OPENMP3 200805
#define OPENMP4 201307
#define OPENMP45 201511
#define OPENMP5 201905
#define OPENMP51 202011
#define OPENMP52 202111
#if _OPENMP >= OPENMP3
#define HAVE_OPENMP3 1
...
...
@@ -17,6 +20,18 @@
#if _OPENMP >= OPENMP45
#define HAVE_OPENMP45 1
#endif
#if _OPENMP >= OPENMP5
#define HAVE_OPENMP5 1
#endif
#if _OPENMP >= OPENMP51
#define HAVE_OPENMP51 1
#endif
#if _OPENMP >= OPENMP52
#define HAVE_OPENMP52 1
#endif
#endif
int
cdo_omp_get_thread_num
(
void
);
...
...
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