Skip to content
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

Yugao/fix moreh microbenchmark #3214

Merged
merged 4 commits into from
Oct 17, 2023
Merged

Yugao/fix moreh microbenchmark #3214

merged 4 commits into from
Oct 17, 2023

Conversation

yugaoTT
Copy link
Contributor

@yugaoTT yugaoTT commented Oct 17, 2023

fixed the device hang problem

@yugaoTT yugaoTT requested a review from tt-rkim as a code owner October 17, 2023 14:32
@tt-rkim
Copy link
Collaborator

tt-rkim commented Oct 17, 2023

Please rebase to latest main.

@yugaoTT yugaoTT force-pushed the yugao/fix-moreh-microbenchmark branch from 8427b57 to 3590105 Compare October 17, 2023 15:28
pytest $TT_METAL_HOME/tests/scripts/test_moreh_microbenchmark.py::test_noc -k $ARCH_NAME
pytest $TT_METAL_HOME/tests/scripts/test_moreh_microbenchmark.py::test_matmul_dram -k $ARCH_NAME
pytest $TT_METAL_HOME/tests/scripts/test_moreh_microbenchmark.py::test_matmul_l1 -k $ARCH_NAME
for ((i = 0; i < 1; i++)); do
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 for loop? Should we just get rid of this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah I'll delete that

@@ -266,7 +266,10 @@ def test_pcie_h2d_l1(iteration, test_vector):
header = ['Transfer Size', 'WriteToDeviceL1', 'WriteToBuffer', 'EnqueueWriteBuffer']
data = []
for test_point in test_vector:
bw_wdd = test_write_device_l1(iteration, 1, test_point)
if test_point < 1048576:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there a better way than using a hard-coded number?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, the test vector should be smaller than L1 size, I think I should pass it in as pytest parameter?

@yugaoTT yugaoTT force-pushed the yugao/fix-moreh-microbenchmark branch from 49159df to f1bc5fd Compare October 17, 2023 21:54
@yugaoTT yugaoTT temporarily deployed to dev October 17, 2023 21:56 — with GitHub Actions Inactive
@yugaoTT yugaoTT temporarily deployed to dev October 17, 2023 21:56 — with GitHub Actions Inactive
@yugaoTT yugaoTT merged commit 8101d64 into main Oct 17, 2023
2 checks passed
yugaoTT added a commit that referenced this pull request Oct 17, 2023
yugaoTT added a commit that referenced this pull request Oct 17, 2023
@tt-rkim
Copy link
Collaborator

tt-rkim commented Oct 18, 2023

@TT-billteng I told @yugaoTT he can merge in because he addressed my comment, but I didn't notice your comment.

Normally, all conversations should be resolved before merging per our contributing standards. Yu showed me his passing u benchmarks pipeline, so I hope it's not a huge problem this time. sorry about that Bill

@tt-rkim tt-rkim deleted the yugao/fix-moreh-microbenchmark branch October 18, 2023 00:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants