GPU Agent provides programmable APIs to configure and monitor AMD Instinct GPUs
To build GPU Agent, follow the steps below:
- setup workspace (required once)
# git submodule update --init --recursive -f
- create build container image (required once)
# make build-container
- vendor setup workspace (required once)
-
choose build/developer environment
-
rhel9
$ GPUAGENT_BLD_CONTAINER_IMAGE=gpuagent-builder-rhel:9 make docker-shell
-
ubuntu 22.04
$ GPUAGENT_BLD_CONTAINER_IMAGE=gpuagent-bldr-ubuntu:22.04 make docker-shell
-
-
golang vendor setup
[root@dev gpu-agent]# cd sw/nic/gpuagent/
[root@dev gpuagent]# go mod vendor
- building artifacts
- choose build base os
-
rhel9
# GPUAGENT_BLD_CONTAINER_IMAGE=gpuagent-builder-rhel:9 make gpuagent -
ubuntu 22.04
$ GPUAGENT_BLD_CONTAINER_IMAGE=gpuagent-bldr-ubuntu:22.04 make docker-shell
-
- artifacts location
- gpuagent binary can be found at - ${TOP_DIR}/sw/nic/build/x86_64/sim/bin/gpuagent
- gpuctl binary can be found at - ${TOP_DIR}/sw/nic/build/x86_64/sim/bin/gpuctl
- To clean the build artifacts (run it within build-container)
[root@dev gpu-agent]# make -C sw/nic/gpuagent clean
[root@dev gpu-agent]#