Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
libpmem cmake macros
Also added support for MAP_SYNC. It allows to achieve decent performance with DAX devices even when libpmem is unavailable. Fixed Windows version of my_msync(): according to manual FlushViewOfFile() may return before flush is actually completed. It is advised to issue FlushFileBuffers() after FlushViewOfFile().
- Loading branch information
Sergey Vojtovich
committed
Feb 4, 2020
1 parent
42e825d
commit daaa881
Showing
4 changed files
with
39 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| INCLUDE(CheckIncludeFiles) | ||
| OPTION(WITH_PMEM "Enable persistent memory features" OFF) | ||
| IF(WITH_PMEM) | ||
| FIND_LIBRARY(LIBPMEM pmem) | ||
| CHECK_INCLUDE_FILES(libpmem.h HAVE_LIBPMEM_H) | ||
| IF (NOT LIBPMEM) | ||
| MESSAGE(FATAL_ERROR "Can't find libpmem") | ||
| ELSEIF(NOT HAVE_LIBPMEM_H) | ||
| MESSAGE(FATAL_ERROR "Can't find libpmem.h") | ||
| ELSE() | ||
| ADD_DEFINITIONS(-DHAVE_PMEM) | ||
| ENDIF() | ||
| ENDIF() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters