Squashed commit of the following:
commit b96ddedf4ffbba57faaaf8bf18781a7abfb9d4c1 Author: Carl Pearson <pearson@illinois.edu> Date: Mon Sep 23 16:53:54 2019 -0500 add newline to result.hpp commit c7e9f6ff4775bf86f9af216cbe311f65bf985f63 Author: Carl Pearson <pearson@illinois.edu> Date: Mon Sep 23 16:53:09 2019 -0500 add EPERM to fs operations commit bac918fd022006cad0da899c06ac31e9db59a2fb Author: Carl Pearson <pearson@illinois.edu> Date: Mon Sep 23 16:49:25 2019 -0500 add filesystem cache interface
This commit is contained in:
@@ -37,3 +37,5 @@ set(CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} \
|
||||
add_executable(enable-turbo enable_turbo.cpp)
|
||||
target_link_libraries(enable-turbo perfect)
|
||||
|
||||
add_executable(sync-drop-caches sync_drop_caches.cpp)
|
||||
target_link_libraries(sync-drop-caches perfect)
|
14
tools/sync_drop_caches.cpp
Normal file
14
tools/sync_drop_caches.cpp
Normal file
@@ -0,0 +1,14 @@
|
||||
#include <iostream>
|
||||
|
||||
#include "perfect/drop_caches.hpp"
|
||||
|
||||
using namespace perfect;
|
||||
|
||||
int main(void) {
|
||||
|
||||
using namespace perfect;
|
||||
|
||||
PERFECT(init());
|
||||
PERFECT(perfect::sync());
|
||||
PERFECT(drop_caches(DropCaches_t(PAGECACHE | ENTRIES)));
|
||||
}
|
Reference in New Issue
Block a user