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

Print traceback when DPPY lowering failed. #353

Merged
merged 1 commit into from
May 13, 2021

Conversation

diptorupd
Copy link
Contributor

Currently, when parfor lowering fails and we fall back to the default CPU lowerer for a parfor a very skimpy message is printed. The PR adds the traceback to get some more information on why and where DPPY lowering failed.

Copy link
Contributor

@reazulhoque reazulhoque left a comment

Choose a reason for hiding this comment

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

The more information the better, do we want to envelope it inside a debug flag?

@diptorupd
Copy link
Contributor Author

The more information the better, do we want to envelope it inside a debug flag?

Open to suggestions. Even bare minimum information is wrapped in the debug flag.

@diptorupd diptorupd force-pushed the fix/print_tb_when_lowering_fails branch from 4b28486 to 59184fd Compare May 12, 2021 03:09
@diptorupd
Copy link
Contributor Author

Open to suggestions. Even bare minimum information is wrapped in the debug flag.

I added the exact device filter string based off dpctl.get_current_queue to the warning message that gets printed.

  - Print the traceback when parfor offload fails to give
    developers a better idea of what went wrong.
  - Improve user-facing messages. The message now includes
    the device filter string where offload was desired.
    Additional message added to ask users to open issues
    tickets and directions on how to generate traceback.
@diptorupd diptorupd force-pushed the fix/print_tb_when_lowering_fails branch from 59184fd to ec73ed1 Compare May 12, 2021 03:12
@diptorupd diptorupd requested a review from reazulhoque May 12, 2021 15:54
@diptorupd
Copy link
Contributor Author

Merging as no opposition. We can further improve the error reporting in future.

@diptorupd diptorupd merged commit d9dd9cc into main May 13, 2021
@diptorupd diptorupd deleted the fix/print_tb_when_lowering_fails branch May 13, 2021 15:37
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.

2 participants