Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

intercept-lib test instruction doesn't work. #132

Open
awang088 opened this issue Jul 15, 2022 · 1 comment
Open

intercept-lib test instruction doesn't work. #132

awang088 opened this issue Jul 15, 2022 · 1 comment

Comments

@awang088
Copy link

Following the instruction to manually test interpose lib. it doesn't run through and fails at here:

xxx@fw0016741:/home/xxx/dev/alnair/alnair-device-plugin$ sudo go run cmd/alnair-device-plugin/main.go
cmd/alnair-device-plugin/main.go:4:2: cannot find package "alnair-device-plugin/pkg/devicepluginserver" in any of:
/usr/lib/go-1.10/src/alnair-device-plugin/pkg/devicepluginserver (from $GOROOT)
/home/steven/go/src/alnair-device-plugin/pkg/devicepluginserver (from $GOPATH)
xxx@fw0016741:/home/xxx/dev/alnair/alnair-device-plugin$

how to fix this?

@Fizzbb
Copy link
Collaborator

Fizzbb commented Jul 15, 2022

Assume you have a two-node kubernetes cluster.

  1. install alnair-device-plugin (this way you don't need to build and launch alnair device plugin and vgpu-server manually)
    kubectl apply -f https://raw.githubusercontent.com/CentaurusInfra/alnair/main/alnair-device-plugin/manifests/alnair-device-plugin.yaml
    verify alnair-device-plugin-daemonset-XXXXXX pod is installed under kube-system namespace on the GPU node
  2. On the worker GPU node, replace /opt/alnair/libcuinterpose.so with newly built "libcuinterpose.so"
  3. launch test pod with alnair/vgpu-memory:4 request (request 4GB gpu memory),
  4. bash into the pod, check out the files used/generated by intercept lib in the /var/lib/alnair/workspace

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants