File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 18
18
**********************************************************************/
19
19
#define _GNU_SOURCE
20
20
21
+ #ifdef MACOS
22
+
23
+ int get_cpu_affinity (void ) { return -1 ; };
24
+ void set_cpu_affinity ( int cpu ) {};
25
+
26
+ #else
27
+
21
28
#include <stdio.h>
22
29
#include <stdlib.h>
23
30
#include <string.h>
@@ -58,7 +65,6 @@ int get_cpu_affinity(void)
58
65
return -1 ;
59
66
}
60
67
61
- int get_cpu_affinity_ (void ) { return get_cpu_affinity (); } /* Fortran interface */
62
68
63
69
64
70
/*
@@ -122,4 +128,7 @@ int set_cpu_affinity(int cpu)
122
128
return 0 ;
123
129
}
124
130
125
- int set_cpu_affinity_ (int * cpu ) { return set_cpu_affinity (* cpu ); } /* Fortran interface */
131
+ #endif
132
+
133
+ int get_cpu_affinity_ (void ) { return get_cpu_affinity (); } /* Fortran interface */
134
+ void set_cpu_affinity_ (int * cpu ) { return set_cpu_affinity (* cpu ); } /* Fortran interface */
Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ module mpp_parameter_mod
117
117
! combination with the flag parameter defined above to create a unique identifier for
118
118
! each Domain+flags combination. Therefore, the value of any flag must not exceed DOMAIN_ID_BASE.
119
119
! integer(LONG_KIND), parameter :: DOMAIN_ID_BASE=INT( 2**(4*LONG_KIND),KIND=LONG_KIND )
120
- integer (LONG_KIND), parameter :: DOMAIN_ID_BASE= Z' 0000000100000000' ! Workaround for 64bit init problem
120
+ integer (LONG_KIND), parameter :: DOMAIN_ID_BASE= INT ( Z' 0000000100000000' ) ! Workaround for 64bit init problem
121
121
integer , parameter :: NON_BITWISE_EXACT_SUM= 0
122
122
integer , parameter :: BITWISE_EXACT_SUM= 1
123
123
integer , parameter :: BITWISE_EFP_SUM= 2
You can’t perform that action at this time.
0 commit comments