mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-11 11:25:40 +03:00
compile error on old linux machines (Redhat 6.2)
This commit is contained in:
parent
2abb9a2779
commit
ba0a3d92f4
@ -173,8 +173,10 @@ bool TryHuge(std::size_t size, uint8_t alignment_bits, bool populate, util::scop
|
||||
// Second try: manually configured hugetlb pages exist, but kernel too old to
|
||||
// pick size or not available. This might pick the wrong size huge pages,
|
||||
// but the sysadmin must have made them available in the first place.
|
||||
#ifdef MAP_HUGETLB
|
||||
if (AnonymousMap(size, MAP_HUGETLB, populate, to))
|
||||
return true;
|
||||
#endif
|
||||
|
||||
// Third try: align to a multiple of the huge page size by overallocating.
|
||||
// I feel bad about doing this, but it's also how posix_memalign is
|
||||
|
Loading…
Reference in New Issue
Block a user