gni 0.1.4

Library to create a GPU Node ID
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright (c) Meta Platforms, Inc. and affiliates.
// All rights reserved.

// This source code is licensed under the license found in the
// LICENSE file in the root directory of this source tree.

#[cxx::bridge]
mod ffi {
    // Expose functions to cpp
    extern "Rust" {
        fn cxx_get_gpu_node_id() -> String;
    }
}

pub fn cxx_get_gpu_node_id() -> String {
    crate::get_gpu_node_id(None).unwrap()
}