Skip to content

Latest commit

 

History

History
49 lines (33 loc) · 862 Bytes

README.md

File metadata and controls

49 lines (33 loc) · 862 Bytes

gni - c

Building

  1. Build, and compile gni:

    make compile_c
    
  2. Build, compile and run gni:

    make run_c
    
  3. Release mode:

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

    make run_c BUILD_MODE=release
    
  4. Remove build artifacts:

    make clean
    

Usage

Binary

```
$ make compile_c
$ ./main_c
<ID>
```

c library

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

  1. Add a dependency on c_get_gpu_node_id. See how main.c depends on c_get_gpu_node_id from GNI.c.

  2. You'll need a similar linking to the one done on Makefile, see "C Targets" section.