Skip to content
This repository was archived by the owner on Jul 13, 2026. It is now read-only.

Fix regression in spirv generator - #412

Closed
akharche wants to merge 3 commits into
mainfrom
akharche/fix_regression
Closed

akharche wants to merge 3 commits into
mainfrom
akharche/fix_regression

Conversation

@akharche

Copy link
Copy Markdown
Contributor

Flag for debug was removed in previous prs

@PokhodenkoSA

PokhodenkoSA commented Jun 1, 2021 •

Copy link
Copy Markdown
Contributor

Code around is hard to read. Need refactoring. In separate PR?

@PokhodenkoSA

PokhodenkoSA commented Jun 1, 2021 •

Copy link
Copy Markdown
Contributor

Is it possible to make test for it?
Manual reproducer?

@PokhodenkoSA PokhodenkoSA mentioned this pull request Jun 1, 2021
1 task done
Comment thread numba_dppy/tests/test_debug.py Resolved
if llvm_spirv_args is not None:
llvm_spirv_call_args += llvm_spirv_args
llvm_spirv_call_args += ["-o", opath, ipath + ".bc"]
llvm_spirv_call_args += [*llvm_spirv_flags, "-o", opath, ipath + ".bc"]

@PokhodenkoSA PokhodenkoSA Jun 2, 2021 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I have reverted this change and test_function_with_debuginfo PASSED. Why it could be?
Could you check it too?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Because (as I said earlier) this flag only fixes error in spirv-val mode.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

spirv-val mode

Could you enable this mode in test?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes, I can, but checking spirv (spirv-val mode) is blocked by a set of problems. This flag fixes only one problem connected to appropriate Debug name in spirv

@PokhodenkoSA PokhodenkoSA left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The test does not test changes.

@akharche

akharche commented Jun 2, 2021

Copy link
Copy Markdown
Contributor Author

The test does not test changes.

Yes. It tests calling function with debug in general. Currently it is hardly possible to write a test on checking failing in spirv-val mode because there are lots of other problems.

@PokhodenkoSA

Copy link
Copy Markdown
Contributor

@akharche what is the status now?

@diptorupd
diptorupd deleted the akharche/fix_regression branch February 5, 2023 16:40
@diptorupd
diptorupd restored the akharche/fix_regression branch February 5, 2023 16:40
@diptorupd
diptorupd deleted the akharche/fix_regression branch March 6, 2023 06:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug Something isn't working debug Related to #149 spirv validation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants