Skip to content

Commit

Permalink
Scheduler for grand central libdispatch queue (NVIDIA#1258)
Browse files Browse the repository at this point in the history
Co-authored-by: Eric Niebler <[email protected]>
  • Loading branch information
RishabhRD and ericniebler authored Mar 11, 2024
1 parent b232001 commit f5e2dd6
Show file tree
Hide file tree
Showing 4 changed files with 612 additions and 2 deletions.
9 changes: 7 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,13 @@ if (STDEXEC_ENABLE_TBB)
STDEXEC::stdexec
TBB::tbb
)
endif ()
endif()

include(CheckIncludeFileCXX)
if (CMAKE_SYSTEM_NAME STREQUAL "Darwin")
CHECK_INCLUDE_FILE_CXX("dispatch/dispatch.h" STDEXEC_FOUND_LIBDISPATCH)
option(STDEXEC_ENABLE_LIBDISPATCH "Enable the tests for the Grand Central Dispatch scheduler" ${STDEXEC_FOUND_LIBDISPATCH})
endif()

option (STDEXEC_ENABLE_NUMA "Enable NUMA affinity for static_thread_pool" OFF)
if (STDEXEC_ENABLE_NUMA)
Expand All @@ -320,7 +326,6 @@ if (STDEXEC_ENABLE_NUMA)
endif()

if(CMAKE_CROSSCOMPILING)
include(CheckIncludeFileCXX)
CHECK_INCLUDE_FILE_CXX("linux/io_uring.h" STDEXEC_FOUND_IO_URING)
else()
include(CheckCXXSourceRuns)
Expand Down
Loading

0 comments on commit f5e2dd6

Please sign in to comment.