Skip to content

Commit

Permalink
update CI
Browse files Browse the repository at this point in the history
Signed-off-by: Huamin Chen <[email protected]>
  • Loading branch information
rootfs committed Nov 20, 2023
1 parent c9e4127 commit fb6ca3d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/integration_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ jobs:
go-version-file: go.mod
# set up ebpf
- name: install libbpf
uses: sustainable-computing-io/[email protected].2
uses: sustainable-computing-io/[email protected].3
with:
ebpfprovider: bcc
xgboost_version: 2.0.1
# build kepler image
- name: build and export Kepler image
run: |
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/integration_test_libbpf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ jobs:
go-version-file: go.mod
# set up ebpf
- name: install libbpf
uses: sustainable-computing-io/[email protected].2
uses: sustainable-computing-io/[email protected].3
with:
ebpfprovider: libbpf
xgboost_version: 2.0.1
# build kepler image
- name: build and export Kepler image
run: |
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/unit_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@ jobs:
GOPATH: /home/runner/go
GOBIN: /home/runner/go/bin
- name: install bcc
uses: sustainable-computing-io/[email protected].2
uses: sustainable-computing-io/[email protected].3
with:
ebpfprovider: bcc
xgboost_version: 2.0.1
- name: Prepare environment
run: |
sudo apt-get install -y cpuid
Expand Down
2 changes: 2 additions & 0 deletions pkg/model/estimator/local/xgboost_model_weight.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ limitations under the License.
package local

/*
#cgo CFLAGS: -I/usr/local/include
#cgo LDFLAGS: -lxgboost -L/usr/local/lib64
#include <stdio.h>
#include <stdlib.h>
Expand Down Expand Up @@ -63,6 +64,7 @@ int Predict(BoosterHandle h_booster, float *data, int rows, int cols, float *out
}
*/
import "C"

import (
"encoding/base64"
"fmt"
Expand Down

0 comments on commit fb6ca3d

Please sign in to comment.