Skip to content

Fix asan failure in CUDA backend - #7206

Merged
ThomasRaoux merged 1 commit into
iree-org:mainfrom
ThomasRaoux:fix_asan
Sep 29, 2021
Merged

ThomasRaoux merged 1 commit into
iree-org:mainfrom
ThomasRaoux:fix_asan

Conversation

@ThomasRaoux

Copy link
Copy Markdown
Contributor

No description provided.

static void populateTilingToInvocationPatterns(
MLIRContext *context, OwningRewritePatternList &patterns,
ArrayRef<int64_t> workgroupSize, ArrayRef<int64_t> workloadPerWorkgroup) {
SmallVector<int64_t, 4> &workgroupSize,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Are you sure this works. THis is just taking a reference, and the lambda is also taking a reference. The lambda needs to capture by value IIUC

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.

I don't think so, the SmallVector is still live when the patterns are run

@ThomasRaoux
ThomasRaoux enabled auto-merge (squash) September 29, 2021 17:46
@ThomasRaoux
ThomasRaoux merged commit 4247e98 into iree-org:main Sep 29, 2021
copybara-service Bot pushed a commit that referenced this pull request Sep 29, 2021
* eed0432 benchmark: Update iree-translate flag for dylib-sync (#7207)
* 4247e98 Fix asan failure in CUDA backend (#7206)
* 5c49556 [NFC] Tidy elementwise op fusion control function a bit (#7204)
* a547965 Separate HAL driver registration with the threading (#7184)
* 3523ed2 Roll benchmark to fix compile warnings in clang-13 (#7202)
* d3ef446 missing #include <limits> (#7193)
* 46fca30 Update docs requirements to include IREE.
* 48a4330 Remove old bindings/python/iree/compiler API. (#7201)
* 6f61506 [CUDA] Refactor op configuration (#7199)
* 5cd678d Merge pull request #7200 from google/google-to-main
* 5ece918 Revert "[CUDA] Refactor op configuration (#7167)" (#7196)
* 0189f9f [CUDA] Refactor op configuration (#7167)

COPYBARA_INTEGRATE_REVIEW=#7209 from MaheshRavishankar:main-to-google eed0432
PiperOrigin-RevId: 399797756
iree-github-actions-bot pushed a commit that referenced this pull request Sep 29, 2021
* eed0432 benchmark: Update iree-translate flag for dylib-sync (#7207)
* 4247e98 Fix asan failure in CUDA backend (#7206)
* 5c49556 [NFC] Tidy elementwise op fusion control function a bit (#7204)
* a547965 Separate HAL driver registration with the threading (#7184)
* 3523ed2 Roll benchmark to fix compile warnings in clang-13 (#7202)
* d3ef446 missing #include <limits> (#7193)
* 46fca30 Update docs requirements to include IREE.
* 48a4330 Remove old bindings/python/iree/compiler API. (#7201)
* 6f61506 [CUDA] Refactor op configuration (#7199)
* 5cd678d Merge pull request #7200 from google/google-to-main
* 5ece918 Revert "[CUDA] Refactor op configuration (#7167)" (#7196)
* 0189f9f [CUDA] Refactor op configuration (#7167)

PiperOrigin-RevId: 399797756
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