EnzymeAD / EnzymeAD/Enzyme-JAX
RSBench raising bug
- Dominant language
- MLIR
- Stars
- 131
- Forks
- 53
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 193
Description
This MWE segfaults when removeAtomics is turned on in RSBench
```
// RUN: enzymexlamlir-opt %s --affine-cfg
module {
gpu.module @kernels {
gpu.func @select_index(%buffer: memref, %index: index,
%enter: i1, %choose_doubled: i1,
%value: i64) kernel {
scf.if %enter {
%doubled = arith.addi %index, %index : index
%selected = arith.select %choose_doubled, %doubled, %index : index
memref.store %value, %buffer[%selected] : memref
}
gpu.return
}
}
}
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by running the supplied MWE with enzymexlamlir-opt and --affine-cfg while removeAtomics is enabled, then investigate where the segfault occurs in the RSBench path. Done means this configuration no longer segfaults and the reproducer is covered by a regression test.
Written by the indexing model from the issue text.
Assessment
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100