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

add pytorch test #41

Merged
merged 10 commits into from
Sep 24, 2024
Merged

add pytorch test #41

merged 10 commits into from
Sep 24, 2024

Conversation

zhaoguochun1995
Copy link
Collaborator

@zhaoguochun1995 zhaoguochun1995 commented Sep 19, 2024

  1. 自动发现(discovery)pytorch测例,并生成测例清单 , 类似 test_unary_ufuncs.py.json
  2. 根据测例清单在子进程中并行运行pytorch测例,最终生成测试报告
    summary_test_result.csv

在国产设备上,很多测例无法跑通甚至会segmantfalut。有些测例失败还会导致设备状态异常导致其他测例无法正常跑通。因此在子进程中单独跑测例,一个进程只跑部分测例。这就需要把测例能罗列出来,再按需跑需要的测例。
截屏2024-09-23 下午8 44 23

result_test_autograd.py.TestAutograd.test_return_duplicate.json
result_test_autograd.py.TestAutograd.test_dep_nograd.json
result_test_autograd.py.TestAutogradDeviceTypeCUDA.test_gradcheck_input_output_different_device_cuda.json
summary_test_result.csv

@zhaoguochun1995 zhaoguochun1995 force-pushed the zgc/ditorch_add_pytorch_test branch from c0f1380 to 78dd837 Compare September 19, 2024 12:49
@zhaoguochun1995 zhaoguochun1995 force-pushed the zgc/ditorch_add_pytorch_test branch from fab34fb to 65e296b Compare September 21, 2024 03:45
… run pytorch test cases in parallel in a sub-process based on the test case list, and finally generate a test report
@zhaoguochun1995 zhaoguochun1995 force-pushed the zgc/ditorch_add_pytorch_test branch from 8bdd78c to 8737aba Compare September 23, 2024 08:10
@zhaoguochun1995 zhaoguochun1995 force-pushed the zgc/ditorch_add_pytorch_test branch 3 times, most recently from 029ccd2 to 96c5ca2 Compare September 24, 2024 01:41
@zhaoguochun1995 zhaoguochun1995 force-pushed the zgc/ditorch_add_pytorch_test branch from 96c5ca2 to 84802cc Compare September 24, 2024 06:16
@yangbofun yangbofun merged commit a639e77 into main Sep 24, 2024
20 of 21 checks passed
@yangbofun yangbofun deleted the zgc/ditorch_add_pytorch_test branch September 24, 2024 11:51
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