File tree 2 files changed +11
-0
lines changed
2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 15
15
#include "oshmem/proc/proc.h"
16
16
#include "oshmem/mca/memheap/memheap.h"
17
17
#include "oshmem/mca/memheap/base/base.h"
18
+ #include "oshmem/mca/sshmem/base/base.h"
18
19
#include "oshmem/util/oshmem_util.h"
19
20
#include "opal/util/minmax.h"
20
21
@@ -53,6 +54,14 @@ int mca_memheap_base_static_init(mca_memheap_map_t *map)
53
54
return OSHMEM_ERROR ;
54
55
}
55
56
57
+ #ifdef __linux__
58
+ extern unsigned _end ;
59
+ if (mca_sshmem_base_start_address < (uintptr_t )& _end ) {
60
+ MEMHEAP_WARN ("sshmem base start address is inside data region"
61
+ " (%p < %p)" , mca_sshmem_base_start_address , & _end );
62
+ }
63
+ #endif
64
+
56
65
while (NULL != fgets (line , sizeof (line ), fp )) {
57
66
if (3 > sscanf (line ,
58
67
"%llx-%llx %s %llx %s %llx %s" ,
Original file line number Diff line number Diff line change 37
37
*/
38
38
#if UINTPTR_MAX == 0xFFFFFFFF
39
39
void * mca_sshmem_base_start_address = (void * )0 ;
40
+ #elif defined(__aarch64__ )
41
+ void * mca_sshmem_base_start_address = (void * )0xAB0000000000 ;
40
42
#else
41
43
void * mca_sshmem_base_start_address = (void * )0xFF000000 ;
42
44
#endif
You can’t perform that action at this time.
0 commit comments