-
Notifications
You must be signed in to change notification settings - Fork 191
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add kepler dockerfile to test new build process (#1112)
* chore(build): Update go version to 1.20 in go.mod Signed-off-by: Vimal Kumar <[email protected]> * chore(lint): Fix lint errors Signed-off-by: Vimal Kumar <[email protected]> * WIP chore(build): Add Dockerfile to build kepler Signed-off-by: Vimal Kumar <[email protected]> --------- Signed-off-by: Vimal Kumar <[email protected]>
- Loading branch information
Showing
10 changed files
with
107 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
FROM quay.io/sustainable_computing_io/kepler_builder:ubi-9-libbpf-1.2.0 as builder | ||
|
||
WORKDIR /workspace | ||
|
||
COPY . . | ||
|
||
RUN ATTACHER_TAG=libbpf make build | ||
|
||
FROM registry.access.redhat.com/ubi9-minimal:9.2 | ||
RUN microdnf -y update | ||
|
||
ENV NVIDIA_VISIBLE_DEVICES=all | ||
|
||
RUN INSTALL_PKGS=" \ | ||
libbpf \ | ||
" && \ | ||
microdnf install -y $INSTALL_PKGS && \ | ||
microdnf clean all | ||
|
||
COPY --from=builder /workspace/_output/bin/kepler /usr/bin/kepler | ||
COPY --from=builder /libbpf-source/linux-5.14.0-333.el9/tools/bpf/bpftool/bpftool /usr/bin/bpftool | ||
COPY --from=builder /usr/bin/cpuid /usr/bin/cpuid | ||
|
||
RUN mkdir -p /var/lib/kepler/data | ||
RUN mkdir -p /var/lib/kepler/bpfassets | ||
COPY --from=builder /workspace/data/cpus.yaml /var/lib/kepler/data/cpus.yaml | ||
COPY --from=builder /workspace/bpfassets/libbpf/bpf.o /var/lib/kepler/bpfassets | ||
|
||
# copy model weight | ||
COPY --from=builder /workspace/data/model_weight/acpi_AbsPowerModel.json /var/lib/kepler/data/acpi_AbsPowerModel.json | ||
COPY --from=builder /workspace/data/model_weight/acpi_DynPowerModel.json /var/lib/kepler/data/acpi_DynPowerModel.json | ||
COPY --from=builder /workspace/data/model_weight/rapl_AbsPowerModel.json /var/lib/kepler/data/rapl_AbsPowerModel.json | ||
COPY --from=builder /workspace/data/model_weight/rapl_DynPowerModel.json /var/lib/kepler/data/rapl_DynPowerModel.json | ||
ENTRYPOINT ["/usr/bin/kepler"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
module github.com/sustainable-computing-io/kepler | ||
|
||
go 1.18 | ||
go 1.20 | ||
|
||
require ( | ||
github.com/NVIDIA/go-nvml v0.11.6-0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters