-
Notifications
You must be signed in to change notification settings - Fork 12
Fix verify tests #281
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
base: main
Are you sure you want to change the base?
Fix verify tests #281
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -11,6 +11,8 @@ | |||||||||
from typing import Optional, Protocol, Union | ||||||||||
|
||||||||||
from consts import CUDA_FLAGS, ExitCode, Timeout | ||||||||||
import logging | ||||||||||
logger = logging.getLogger(__name__) | ||||||||||
|
||||||||||
|
||||||||||
@dataclasses.dataclass | ||||||||||
|
@@ -390,6 +392,8 @@ def run_cuda_script( # # noqa: C901 | |||||||||
""" | ||||||||||
start = datetime.datetime.now() | ||||||||||
try: | ||||||||||
for source in sources: | ||||||||||
logger.info(f"Source file: {source}") | ||||||||||
# Write submission files to directory | ||||||||||
_create_files(sources) | ||||||||||
_create_files(headers) | ||||||||||
|
@@ -448,7 +452,9 @@ def run_pytorch_script( # noqa: C901 | |||||||||
start = datetime.datetime.now() | ||||||||||
try: | ||||||||||
assert main in sources.keys() | ||||||||||
|
||||||||||
print("sources are ") | ||||||||||
print(sources) | ||||||||||
Comment on lines
+455
to
+456
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [nitpick] Replace this print statement with a logging call (e.g.,
Suggested change
Copilot uses AI. Check for mistakes. Positive FeedbackNegative Feedback |
||||||||||
logging.info(f"sources are {sources}") | ||||||||||
Comment on lines
+455
to
+457
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [nitpick] Replace this print statement with a logging call (e.g.,
Suggested change
Copilot uses AI. Check for mistakes. Positive FeedbackNegative Feedback |
||||||||||
# Write submission files to directory | ||||||||||
_create_files(sources) | ||||||||||
|
||||||||||
|
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.
[nitpick] This debug logging statement may not be needed in production. Consider removing it or lowering its log level.
Copilot uses AI. Check for mistakes.