Skip to content

Fix fp16 mma SIGSEGV: bit pattern dereferenced as pointer in mma_impl - #142

Open
Elio-yang wants to merge 1 commit into
accel-sim:devfrom
Elio-yang:fix/fp16-mma-pointer-deref
Open

Fix fp16 mma SIGSEGV: bit pattern dereferenced as pointer in mma_impl#142
Elio-yang wants to merge 1 commit into
accel-sim:devfrom
Elio-yang:fix/fp16-mma-pointer-deref

Conversation

@Elio-yang

Copy link
Copy Markdown

mma_impl reinterpreted the extracted 16-bit fp16 value as a pointer and dereferenced it (instructions.cc:1952), crashing any PTX-mode fp16 mma/wmma with nonzero data (e.g. fp16 1.0 = 0x3C00 -> load from address 0x3C00). Take the address of the storage instead. Includes a minimal reproduce folder/ (SM7_QV100 config + gdb backtrace).

mma_impl reinterpreted the extracted 16-bit fp16 value as a pointer and
dereferenced it (instructions.cc:1952), crashing any PTX-mode fp16
mma/wmma with nonzero data (e.g. fp16 1.0 = 0x3C00 -> load from address
0x3C00). Take the address of the storage instead. Includes a minimal
reproducer under reproduce/ (stock SM7_QV100 config + gdb backtrace).

Co-authored-by: Lars Christensen <1lbchristensen1@gmail.com>
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.

1 participant