mirror of
https://github.com/ml-explore/mlx.git
synced 2025-12-16 01:49:05 +08:00
Add headers for gcc
This commit is contained in:
@@ -1079,6 +1079,8 @@ class IBVGroup : public GroupImpl {
|
|||||||
bool is_available() {
|
bool is_available() {
|
||||||
if (__builtin_available(macOS 26.2, *)) {
|
if (__builtin_available(macOS 26.2, *)) {
|
||||||
return true;
|
return true;
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
#include <netdb.h>
|
#include <netdb.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
#include <cstring>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <thread>
|
#include <thread>
|
||||||
|
|
||||||
@@ -14,7 +15,7 @@ namespace mlx::core::distributed::detail {
|
|||||||
*/
|
*/
|
||||||
address_t parse_address(const std::string& ip, const std::string& port) {
|
address_t parse_address(const std::string& ip, const std::string& port) {
|
||||||
struct addrinfo hints, *res;
|
struct addrinfo hints, *res;
|
||||||
memset(&hints, 0, sizeof(hints));
|
std::memset(&hints, 0, sizeof(hints));
|
||||||
hints.ai_family = AF_UNSPEC;
|
hints.ai_family = AF_UNSPEC;
|
||||||
hints.ai_socktype = SOCK_STREAM;
|
hints.ai_socktype = SOCK_STREAM;
|
||||||
|
|
||||||
|
|||||||
@@ -3,6 +3,8 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
|
#include <functional>
|
||||||
|
#include <string>
|
||||||
|
|
||||||
namespace mlx::core::distributed::detail {
|
namespace mlx::core::distributed::detail {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user