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
a0054dd4
Commit
a0054dd4
authored
11 months ago
by
Uwe Schulzweida
Browse files
Options
Downloads
Patches
Plain Diff
cdo_print_features: print number of devices
parent
917c3c91
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
libcdi
+1
-1
1 addition, 1 deletion
libcdi
src/cdo_features.cc
+4
-0
4 additions, 0 deletions
src/cdo_features.cc
with
5 additions
and
1 deletion
libcdi
@
a1e98fcf
Compare
3077cc81
...
a1e98fcf
Subproject commit
3077cc81a21f7f5f2e1365ed600468807394d4c0
Subproject commit
a1e98fcfa285a4bed52e94654d7830ee1877e63f
This diff is collapsed.
Click to expand it.
src/cdo_features.cc
+
4
−
0
View file @
a0054dd4
...
...
@@ -155,6 +155,10 @@ cdo_print_features(void)
if
(
numProcs
<
concurrentThreads
)
fprintf
(
fp
,
"%u/"
,
numProcs
);
#endif
fprintf
(
fp
,
"%uthreads"
,
concurrentThreads
);
#ifdef HAVE_OPENMP4
auto
numDevices
=
omp_get_num_devices
();
if
(
numDevices
>
0
)
fprintf
(
fp
,
" %ddevices"
,
numDevices
);
#endif
fprintf
(
fp
,
" c++%d"
,
(
int
)
((
__cplusplus
-
200000
)
/
100
));
#ifdef __FAST_MATH__
fprintf
(
fp
,
"/fastmath"
);
...
...
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