Skip to content

v5.0.x: opal/event: use epoll by default on Linux #10932

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 17, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion opal/util/event.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* Copyright (c) 2017 IBM Corporation. All rights reserved.
* Copyright (c) 2018-2020 Amazon.com, Inc. or its affiliates. All
* Rights reserved.
* Copyright (c) 2022 Google, LLC. All rights reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
Expand Down Expand Up @@ -45,8 +46,10 @@ int opal_event_register_params(void)
// Get supported methods
opal_event_all_available_eventops = event_get_supported_methods();

#ifdef __APPLE__
#if defined(PLATFORM_OS_DARWIN)
opal_event_module_include = "select";
#elif defined(PLATFORM_OS_LINUX)
opal_event_module_include = "epoll";
#else
opal_event_module_include = "poll";
#endif
Expand Down