mirror of
https://github.com/ml-explore/mlx.git
synced 2025-12-16 01:49:05 +08:00
Expose per-backend availability in C++ and python
This commit is contained in:
@@ -1088,7 +1088,7 @@ std::shared_ptr<GroupImpl> init(bool strict /* = false */) {
|
||||
const char* rank_str = std::getenv("MLX_RANK");
|
||||
const char* ring_verbose = std::getenv("MLX_IBV_VERBOSE");
|
||||
|
||||
if (!dev_file || !coordinator || !rank_str) {
|
||||
if (!is_available() || !dev_file || !coordinator || !rank_str) {
|
||||
if (strict) {
|
||||
std::ostringstream msg;
|
||||
msg << "[ibv] You need to provide via environment variables a rank (MLX_RANK), "
|
||||
|
||||
Reference in New Issue
Block a user