File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ diff --git a/mt-kahypar/parallel/thread_pinning_observer.h b/mt-kahypar/parallel/thread_pinning_observer.h
2+ index 8fc5f8b9..4353ac67 100644
3+ --- a/mt-kahypar/parallel/thread_pinning_observer.h
4+ +++ b/mt-kahypar/parallel/thread_pinning_observer.h
5+ @@ -33,6 +33,7 @@
6+ #include <sstream>
7+
8+ #ifdef _WIN32
9+ + #include <windows.h>
10+ #include <winbase.h>
11+ #elif KAHYPAR_ENABLE_THREAD_PINNING
12+ #include <sched.h>
Original file line number Diff line number Diff line change 55 cmake ,
66 git ,
77 boost ,
8- hwloc ,
98 tbb_2022_0 ,
109 windows ,
1110} :
@@ -47,18 +46,19 @@ stdenv.mkDerivation rec {
4746
4847 buildInputs = [
4948 boost . dev
50- hwloc . dev
5149 tbb_2022_0 . dev
5250 ] ++ lib . optionals stdenv . hostPlatform . isWindows [ windows . pthreads ] ;
5351
5452 patches = [
5553 ./mt-kahypar-cmake.patch
5654 ./mt-kahypar-pc.patch
55+ ./mt-kahypar-windows.patch
5756 ] ;
5857
5958 cmakeFlags = [
6059 "-D FETCHCONTENT_SOURCE_DIR_KAHYPAR-SHARED-RESOURCES=${ shared-resources } "
6160 "-D FETCHCONTENT_SOURCE_DIR_WHFC=${ WHFC } "
61+ "-D KAHYPAR_DISABLE_HWLOC=ON"
6262 ] ++ lib . optionals stdenv . hostPlatform . isWindows [ "-D BUILD_SHARED_LIBS=ON" ] ;
6363
6464 buildPhase = "cmake --build . --target mtkahypar --parallel $NIX_BUILD_CORES" ;
You can’t perform that action at this time.
0 commit comments