mirror of
https://github.com/ml-explore/mlx.git
synced 2025-12-16 01:49:05 +08:00
Comments
This commit is contained in:
@@ -119,10 +119,6 @@ if(MLX_BUILD_METAL)
|
|||||||
COMMAND zsh "-c" "/usr/bin/xcrun -sdk macosx --show-sdk-version"
|
COMMAND zsh "-c" "/usr/bin/xcrun -sdk macosx --show-sdk-version"
|
||||||
OUTPUT_VARIABLE MACOS_SDK_VERSION
|
OUTPUT_VARIABLE MACOS_SDK_VERSION
|
||||||
OUTPUT_STRIP_TRAILING_WHITESPACE COMMAND_ERROR_IS_FATAL ANY)
|
OUTPUT_STRIP_TRAILING_WHITESPACE COMMAND_ERROR_IS_FATAL ANY)
|
||||||
execute_process(
|
|
||||||
COMMAND zsh "-c" "/usr/bin/xcrun -sdk macosx --show-sdk-path"
|
|
||||||
OUTPUT_VARIABLE CMAKE_OSX_SYSROOT
|
|
||||||
OUTPUT_STRIP_TRAILING_WHITESPACE COMMAND_ERROR_IS_FATAL ANY)
|
|
||||||
|
|
||||||
if(${MACOS_SDK_VERSION} LESS 14.0)
|
if(${MACOS_SDK_VERSION} LESS 14.0)
|
||||||
message(
|
message(
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ void init_distributed(nb::module_& parent_module) {
|
|||||||
|
|
||||||
Args:
|
Args:
|
||||||
backend (str, optional): The name of the backend to check for availability.
|
backend (str, optional): The name of the backend to check for availability.
|
||||||
It takes the same values as ``init()``. Default: ``any``.
|
It takes the same values as :func:`init()`. Default: ``"any"``.
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
bool: Whether the distributed backend is available.
|
bool: Whether the distributed backend is available.
|
||||||
|
|||||||
Reference in New Issue
Block a user