Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jerrrrry
infinicore
Commits
3f042fd3
Unverified
Commit
3f042fd3
authored
Nov 20, 2025
by
pengcheng888
Committed by
GitHub
Nov 20, 2025
Browse files
Merge pull request #643 from InfiniTensor/issue/642
issue/642 - added a breakpoint in run.py debug
parents
685b6e03
36b94a18
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletion
+17
-1
test/infinicore/run.py
test/infinicore/run.py
+17
-1
No files found.
test/infinicore/run.py
View file @
3f042fd3
import
os
import
os
import
sys
import
sys
import
argparse
import
argparse
import
traceback
from
pathlib
import
Path
from
pathlib
import
Path
import
importlib.util
import
importlib.util
...
@@ -110,7 +111,12 @@ def import_operator_test(test_file_path):
...
@@ -110,7 +111,12 @@ def import_operator_test(test_file_path):
def
run_all_op_tests
(
def
run_all_op_tests
(
ops_dir
=
None
,
specific_ops
=
None
,
bench
=
False
,
bench_mode
=
"both"
,
verbose
=
False
ops_dir
=
None
,
specific_ops
=
None
,
bench
=
False
,
bench_mode
=
"both"
,
verbose
=
False
,
debug
=
False
,
):
):
"""
"""
Run all operator test scripts in the ops directory using direct import.
Run all operator test scripts in the ops directory using direct import.
...
@@ -370,6 +376,10 @@ def run_all_op_tests(
...
@@ -370,6 +376,10 @@ def run_all_op_tests(
print
(
f
"
{
'!'
*
60
}
"
)
print
(
f
"
{
'!'
*
60
}
"
)
break
break
if
debug
:
traceback
.
print_exc
()
break
return
results
,
cumulative_timing
return
results
,
cumulative_timing
...
@@ -645,6 +655,11 @@ def main():
...
@@ -645,6 +655,11 @@ def main():
action
=
"store_true"
,
action
=
"store_true"
,
help
=
"Enable verbose mode to stop on first error with full traceback"
,
help
=
"Enable verbose mode to stop on first error with full traceback"
,
)
)
parser
.
add_argument
(
"--debug"
,
action
=
"store_true"
,
help
=
"Enable debug mode to debug value mismatches"
,
)
parser
.
add_argument
(
parser
.
add_argument
(
"--bench"
,
"--bench"
,
nargs
=
"?"
,
nargs
=
"?"
,
...
@@ -729,6 +744,7 @@ def main():
...
@@ -729,6 +744,7 @@ def main():
bench
=
bool
(
args
.
bench
),
bench
=
bool
(
args
.
bench
),
bench_mode
=
args
.
bench
if
args
.
bench
else
"both"
,
bench_mode
=
args
.
bench
if
args
.
bench
else
"both"
,
verbose
=
args
.
verbose
,
verbose
=
args
.
verbose
,
debug
=
args
.
debug
,
)
)
# Print summary and exit with appropriate code
# Print summary and exit with appropriate code
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment