-
Notifications
You must be signed in to change notification settings - Fork 38
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
rename Json Files #315
base: main
Are you sure you want to change the base?
rename Json Files #315
Conversation
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.
Hi @codeamic! Thanks for the PR.
The renaming looks correct to me. But there are some more changes apart from the four file renames mentioned, could you look into why they show up please?
You will also need to propagate the renaming to other places it is used at. Let's take run_config.json
for example; doing git grep run_config.json
shows this:
Makefile:RUN_CONFIG_JSON ?= run_config.json
README.md:benchmarks as defined in the `run_config.json`
README.md: `run_config.json`. This config file is used to generate dune files
README.md: `run_config.json` and specified via the `RUN_BENCH_TARGET` variable
README.md:and the default value is `run_config.json`. This file lists the executable to
README.md:The `run_config.json` file may be filtered based on the tag. For example,
README.md:filters the `run_config.json` file to only contain the benchmarks tagged as
README.md: `run_config.json` for sequential benchmarks and
README.md: `multicore_parallel_run_config.json` for parallel benchmarks.
README.md: - **run_config.json** : Runs sequential benchmarks with stock OCaml variants in CI and sandmark-nightly on the IITM machine(turing)
README.md: - **multicore_parallel_run_config.json** : Runs parallel benchmarks with multicore OCaml in CI and sandmark-nightly on the IITM machine(turing)
README.md: - **multicore_parallel_navajo_run_config.json** : Runs parallel benchmarks with multicore OCaml in sandmark-nightly on Navajo (AMD EPYC 7551 32-Core Processor) machine
README.md:| RUN_CONFIG_JSON | Input file selection that contains the list of benchmarks | `run_config.json` | executing benchmark |
All these instances of run_config.json
need to be renamed to sequential.json
. Similarly for the other three files.
Hi Sudha, i just did the changes, thank you for the support, |
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.
Hi Sudha, I just reviewed the files i made changes one, waiting for it to be merged
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.
This is great, the spurious diff has disappeared now. Just some minor bits before we merge.
README.md
Outdated
@@ -177,13 +177,13 @@ current tags are: | |||
The benchmarking machine `turing` is an Intel Xeon Gold 5120 CPU with 64GB of | |||
RAM housed at IITM. | |||
|
|||
The `run_config.json` file may be filtered based on the tag. For example, | |||
The `sequential.json` file may be filtered based on the tag. For example, | |||
|
|||
```bash | |||
$ TAG='"macro_bench"' make run_config_filtered.json |
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.
$ TAG='"macro_bench"' make run_config_filtered.json | |
$ TAG='"macro_bench"' make sequential_filtered.json |
The filtered files should also be changed to their new names. Leave the filtered
as such and edit the name. This needs to be updated in the run_all*
scripts too.
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.
Hi Sudha, thank you for the support, i just did the new changes but couldn't find the run_config_filtered.json file itself.
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.
Nice work! You're right, run_config_filtered.json
is created only after we run TAG='"macro_bench"' make run_config_filtered.json
, so no need to modify that file.
Are you able to repeat this process for the other three files, like for example run_all_parallel.sh
has multicore_parallel_run_config_filtered.json
. git grep
command should help here too. :)
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.
Yeah i did git grep run_config.json, you could see the changes in all the files. i made sure i changed that in all files. could you please check?
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.
Sorry if it was unclear; what I meant is the same process of replacing *_filtered.json
with the new file name needs to be done for multicore_parallel_run_config_filtered.json
, i.e it will be called parallel_turing_filtered.json
and multicore_parallel_navajo_run_config_filtered.json
will be parallel_navajo_filtered.json
.
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.
Hi Sudha, no worries i just made the changes
could you please review?
Also, there is this file multicore_parallel_run_config_filtered_filtered_2domains, does it need renaming?
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.
Also, there is this file multicore_parallel_run_config_filtered_filtered_2domains, does it need renaming?
Good point. Yes, we can call it parallel_turing_filtered_filtered_2domains.json
. You can see how it's generated here: https://github.com/ocaml-bench/sandmark/blob/main/Makefile#L347-L348. This should make the CI happy I think. You might also want to edit the drone.yml
file with the latest names.
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.
Hi Sudha, thank you so much for your endless support, i just did the changes and modified the drone.yml file too. please review for merge or correction of errors, thank you.
Hello Sudha
Hope you had a good weekend, please i will be waiting for your reply on
what to do next
Regards.
Sango Pascal.
…On Fri, 1 Apr 2022, 10:13 Sudha Parimala, ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In README.md
<#315 (comment)>:
> @@ -177,13 +177,13 @@ current tags are:
The benchmarking machine `turing` is an Intel Xeon Gold 5120 CPU with 64GB of
RAM housed at IITM.
-The `run_config.json` file may be filtered based on the tag. For example,
+The `sequential.json` file may be filtered based on the tag. For example,
```bash
$ TAG='"macro_bench"' make run_config_filtered.json
Also, there is this file
multicore_parallel_run_config_filtered_filtered_2domains, does it need
renaming?
Good point. Yes, we can call it
parallel_turing_filtered_filtered_2domains.json. You can see how it's
generated here:
https://github.com/ocaml-bench/sandmark/blob/main/Makefile#L347-L348.
This should make the CI happy I think. You might also want to edit the
drone.yml file with the latest names.
—
Reply to this email directly, view it on GitHub
<#315 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AP663VIAJPYPC3I2VAA76ZTVC2435ANCNFSM5R7HVQZQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
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.
Some final bits in the CI before we can merge. The CI should ideally turn green after the changes.
.drone.yml
Outdated
@@ -46,8 +46,8 @@ steps: | |||
- export OPAM_DISABLE_SANDBOXING=true | |||
- TAG='"run_in_ci"' make multicore_parallel_run_config_filtered.json |
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.
- TAG='"run_in_ci"' make multicore_parallel_run_config_filtered.json | |
- TAG='"run_in_ci"' make parallel_turing_filtered.json |
.drone.yml
Outdated
@@ -46,8 +46,8 @@ steps: | |||
- export OPAM_DISABLE_SANDBOXING=true | |||
- TAG='"run_in_ci"' make multicore_parallel_run_config_filtered.json | |||
- TAG='"macro_bench"' make multicore_parallel_run_config_filtered_filtered.json |
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.
- TAG='"macro_bench"' make multicore_parallel_run_config_filtered_filtered.json | |
- TAG='"macro_bench"' make parallel_turing_filtered_filtered.json |
.drone.yml
Outdated
- TAG='"run_in_ci"' make multicore_parallel_run_config_filtered.json | ||
- TAG='"macro_bench"' make multicore_parallel_run_config_filtered_filtered.json |
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.
Same as above.
Hi Sudha, i commited the changes already . |
If the filename is changed to
Similarly,
|
Hi @shakthimaan , please I don't understand you. do you wand me to add the invocation in the README.md file? |
No. You need to update the Line 21 in 4fa2829
|
Ok, i will do that immediately |
Hi @shakthimaan , i did the changes already, ould you please review |
The parallel run is failing, and that needs to be fixed.
The above is fine, and it produces a
This should be updated to:
|
Ok |
Hi @shakthimaan, i made the changes, could you please check . |
The change is required for |
Ohh, sorry about that, i just maade the changes. But facing little problem to push |
You need to revert the changes for The |
All done, could you please check if it is ok now? |
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 CI changes look fine, just a couple more updates should make it green.
ok |
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.
LGTM! Are you able to rebase your branch to latest main, so we can merge it please? Please also note that there could be conflicts with #316 depending on which on is merged first.
Hi @Sudha247 |
The GitHub interface tells me these files have merge-conflicts:
|
this command does not work git pull main. and i don't have files with those names in my branch. i tried git pull from the main branch, moved to my branch and did git merge main and everything works well |
Please how do i resolve this issue? |
The merge conflicts are still present unfortunately. Can you try to do
This should fetch the latest |
…enameJsonFile "rename of json files and updated this rename in all files that it is been referenced in"
Hi Sudha, thank you for the help. I think it is all good for merging now. |
Sandmark has been updated to build for 5.1.0+trunk. @ElectreAAS Please review the conflicting files and update the same for the CI. |
The only conflict is the |
Renamed the following files
run_config.json -> sequential.json
multicore_parallel_run_config.json -> parallel_turing.json
multicore_parallel_navajo_run_config.json -> parallel_navajo.json
micro_multicore.json -> micro.json