Skip to content

Commit 8749afe

Browse files
authored
Merge pull request #704 from amd/dev
Merge from AMD
2 parents 57f2d71 + 90ca691 commit 8749afe

File tree

15 files changed

+209
-58
lines changed

15 files changed

+209
-58
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ htmlcov
1818
tmp-*
1919
local/cache/
2020
mlc-log.txt
21+
.mlc-log.txt
2122
repos.json
2223
index_script.json
2324
index_cache.json

automation/script/module.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1723,9 +1723,9 @@ def _run(self, i):
17231723
# Assemble PIP versions
17241724
pip_version_string = ''
17251725

1726-
pip_version = env.get('MLC_VERSION', '')
1727-
pip_version_min = env.get('MLC_VERSION_MIN', '')
1728-
pip_version_max = env.get('MLC_VERSION_MAX', '')
1726+
pip_version = str(env.get('MLC_VERSION', ''))
1727+
pip_version_min = str(env.get('MLC_VERSION_MIN', ''))
1728+
pip_version_max = str(env.get('MLC_VERSION_MAX', ''))
17291729

17301730
if pip_version != '':
17311731
pip_version_string = '==' + pip_version
@@ -4786,6 +4786,7 @@ def relaxed_subset(v, variation_tags):
47864786
def get_version_tag_from_version(version, cached_tags):
47874787
tags_to_add = []
47884788
if version != '':
4789+
version = str(version)
47894790
if 'version-' + version not in cached_tags:
47904791
cached_tags.append('version-' + version)
47914792
if '-git-' in version:

automation/script/remote_run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def remote_run(self_module, i):
6565
if i.get('remote_pull_mlc_repos', False):
6666
run_cmds.append("mlc pull repo")
6767

68-
script_run_cmd = " ".join(mlc_run_cmd.split(" ")[3:])
68+
script_run_cmd = " ".join(mlc_run_cmd.split(" ")[1:])
6969
run_cmds.append(f"mlcr {script_run_cmd}")
7070

7171
remote_inputs = {}

script/get-generic-sys-util/meta.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -609,6 +609,9 @@ variations:
609609
linux-tools:
610610
env:
611611
MLC_SYS_UTIL_NAME: linux-tools
612+
MLC_SYS_UTIL_VERSION_CMD: perf --version
613+
MLC_SYS_UTIL_VERSION_RE: \b(\d+\.\d+(?:\.\d+)?)\b
614+
MLC_TMP_VERSION_DETECT_GROUP_NUMBER: 0
612615
new_env_keys:
613616
- MLC_LINUX_TOOLS_VERSION
614617
state:

script/get-intel-sde-tool/meta.yaml

Lines changed: 0 additions & 47 deletions
This file was deleted.
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# README for get-intel-pin-tool
2+
This README is automatically generated. Add custom content in [info.md](info.md). Please follow the [script execution document](https://docs.mlcommons.org/mlcflow/targets/script/execution-flow/) to understand more about the MLC script execution.
3+
4+
`mlcflow` stores all local data under `$HOME/MLC` by default. So, if there is space constraint on the home directory and you have more space on say `/mnt/$USER`, you can do
5+
```
6+
mkdir /mnt/$USER/MLC
7+
ln -s /mnt/$USER/MLC $HOME/MLC
8+
```
9+
You can also use the `ENV` variable `MLC_REPOS` to control this location but this will need a set after every system reboot.
10+
11+
## Setup
12+
13+
If you are not on a Python development environment please refer to the [official docs](https://docs.mlcommons.org/mlcflow/install/) for the installation.
14+
15+
```bash
16+
python3 -m venv mlcflow
17+
. mlcflow/bin/activate
18+
pip install mlcflow
19+
```
20+
21+
- Using a virtual environment is recommended (per `pip` best practices), but you may skip it or use `--break-system-packages` if needed.
22+
23+
### Pull mlperf-automations
24+
25+
Once `mlcflow` is installed:
26+
27+
```bash
28+
mlc pull repo mlcommons@mlperf-automations --pat=<Your Private Access Token>
29+
```
30+
- `--pat` or `--ssh` is only needed if the repo is PRIVATE
31+
- If `--pat` is avoided, you'll be asked to enter the password where you can enter your Private Access Token
32+
- `--ssh` option can be used instead of `--pat=<>` option if you prefer to use SSH for accessing the github repository.
33+
## Run Commands
34+
35+
```bash
36+
mlcr get-intel-pin-tool,get-intel-pintool,get,intel,pintool,pin,tool
37+
```
38+
39+
### Script Inputs
40+
41+
| Name | Description | Choices | Default |
42+
|------|-------------|---------|------|
43+
| `--pintool_dir` | | | `` |
44+
### Generic Script Inputs
45+
46+
| Name | Description | Choices | Default |
47+
|------|-------------|---------|------|
48+
| `--input` | Input to the script passed using the env key `MLC_INPUT` | | `` |
49+
| `--output` | Output from the script passed using the env key `MLC_OUTPUT` | | `` |
50+
| `--outdirname` | The directory to store the script output | | `cache directory ($HOME/MLC/repos/local/cache/<>) if the script is cacheable or else the current directory` |
51+
| `--outbasename` | The output file/folder name | | `` |
52+
| `--name` | | | `` |
53+
| `--extra_cache_tags` | Extra cache tags to be added to the cached entry when the script results are saved | | `` |
54+
| `--skip_compile` | Skip compilation | | `False` |
55+
| `--skip_run` | Skip run | | `False` |
56+
| `--accept_license` | Accept the required license requirement to run the script | | `False` |
57+
| `--skip_system_deps` | Skip installing any system dependencies | | `False` |
58+
| `--git_ssh` | Use SSH for git repos | | `False` |
59+
| `--gh_token` | Github Token | | `` |
60+
| `--hf_token` | Huggingface Token | | `` |
61+
| `--verify_ssl` | Verify SSL | | `False` |
62+
## Variations
63+
64+
### Version
65+
66+
- `version.4.0` (default)
File renamed without changes.

script/get-intel-pin-tool/meta.yaml renamed to script/get-tool-intel-pin/meta.yaml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
alias: get-intel-pin-tool
1+
alias: get-tool-intel-pin
22
automation_alias: script
33
automation_uid: 5b4e0237da074764
44
cache: true
@@ -29,12 +29,6 @@ post_deps: []
2929
posthook_deps: []
3030
tags:
3131
- get-intel-pin-tool
32-
- get-intel-pintool
33-
- get
34-
- intel
35-
- pintool
36-
- pin
37-
- tool
3832
tests:
3933
run_inputs:
4034
- {}
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)