-
Notifications
You must be signed in to change notification settings - Fork 83
CI/CD - Fix Image build for cuda11.1.1 and py unit test pipelines #771
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
base: main
Are you sure you want to change the base?
Changes from all commits
05a89a6
af676fc
5a4d01e
22fd5f5
0080d92
059daa9
7f6de0c
4f23173
5bf14d4
0687eec
ae05143
1ecbcda
8e8d286
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,6 +24,7 @@ RUN apt-get update && \ | |
| automake \ | ||
| bc \ | ||
| build-essential \ | ||
| ca-certificates \ | ||
| curl \ | ||
| dmidecode \ | ||
| ffmpeg \ | ||
|
|
@@ -46,6 +47,7 @@ RUN apt-get update && \ | |
| openssh-client \ | ||
| openssh-server \ | ||
| pciutils \ | ||
| software-properties-common \ | ||
| sudo \ | ||
| util-linux \ | ||
| vim \ | ||
|
|
@@ -55,6 +57,19 @@ RUN apt-get update && \ | |
| apt-get clean && \ | ||
| rm -rf /var/lib/apt/lists/* /tmp/* /opt/cmake-3.14.6-Linux-x86_64 | ||
|
|
||
| # Install Go (used for wandb build) | ||
| RUN add-apt-repository -y ppa:longsleep/golang-backports && \ | ||
| apt-get update && \ | ||
| apt-get install -y golang-1.24-go | ||
|
|
||
| # Install Rust (used for wandb build) | ||
| RUN curl https://sh.rustup.rs -sSf | sh -s -- -y && \ | ||
| . /root/.cargo/env && \ | ||
| rustup update stable && \ | ||
| rustup default stable | ||
|
|
||
| ENV PATH="/usr/lib/go-1.24/bin:/root/.cargo/bin:${PATH}" | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. merge with existing env command
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The previous environment lacks Go and Cargo installations, and the subsequent environment is configured specifically for Docker workflows. Given this separation of concerns, I believe we should maintain the current configuration. Please let me know if you'd like any modifications. |
||
|
|
||
| ARG NUM_MAKE_JOBS= | ||
|
|
||
| # Install Docker | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -293,10 +293,11 @@ def _process_percentile_result(self, metric, result, reduce_type=None): | |
| if len(result) > 0: | ||
| percentile_list = ['50', '90', '95', '99', '99.9'] | ||
| for percentile in percentile_list: | ||
| self._result.add_result( | ||
| '{}_{}'.format(metric, percentile), | ||
| np.percentile(result, float(percentile), interpolation='nearest'), reduce_type | ||
| ) | ||
| try: | ||
| val = np.percentile(result, float(percentile), method='nearest') | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why do we need update this? Have you met some failure?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, I met it after the changes for wandb. In PR, this also appeared. 'interpolation' was deprecated in v1.22.0 and removed on 2.4.0. In the python3.12 unit test pipeline, v2.4.1 was installed.
Comment on lines
+296
to
+297
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can you open another pr for this?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If we move this to another PR, the python-unit-test will fail in this PR. |
||
| except TypeError: | ||
| val = np.percentile(result, float(percentile), interpolation='nearest') | ||
|
Comment on lines
+296
to
+299
|
||
| self._result.add_result('{}_{}'.format(metric, percentile), val, reduce_type) | ||
|
|
||
| def print_env_info(self): | ||
| """Print environments or dependencies information.""" | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merge it with existing apt-get command
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The 'add-apt-repository' is installed with 'software-properties-common' in the first RUN. So, we cannot combine it with the first apt-get.