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
// 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.

#include <stdio.h>

extern char* c_get_gpu_node_id();

int main() {
    char* gpu_node_id = c_get_gpu_node_id();
    printf("%s\n", gpu_node_id);
    return 0;
}