Skip to content

Latest commit

 

History

History
51 lines (34 loc) · 959 Bytes

README.md

File metadata and controls

51 lines (34 loc) · 959 Bytes

GNI - cpp

We're using cxx to expose cpp bindings.

Building

  1. Build, and compile gni:

    make compile_cpp
    
  2. Build, compile and run gni:

    make run_cpp
    
  3. Release mode:

    For all make cmds you can also pass BUILD_MODE=release for rust's release mode:

    make run_cpp BUILD_MODE=release
    
  4. Remove build artifacts:

    make clean
    

Usage

Binary

```
$ make compile_cpp
$ ./main_cpp
<ID>
```

cpp library

There are 2 steps to make use of GNI on an existing cpp project:

  1. Add a dependency on cpp_get_gpu_node_id. See how main.cpp depends on cpp_get_gpu_node_id from GNI.cpp.

  2. You'll need a similar linking to the one done on Makefile.