# PTX miscompiled to SASS in a specific case (shared memory buffer index)?

**URL:** <https://forums.developer.nvidia.com/t/ptx-miscompiled-to-sass-in-a-specific-case-shared-memory-buffer-index/245964>\
**Category:** CUDA Programming and Performance\
**Created:** [March 13, 2023, 11:05pm UTC](https://forums.developer.nvidia.com/t/ptx-miscompiled-to-sass-in-a-specific-case-shared-memory-buffer-index/245964 "2023-03-13T23:05:22Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![Robert\_Crovella](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/robert_crovella/32/14043_2.png) [@Robert\_Crovella](https://forums.developer.nvidia.com/u/Robert_Crovella)\
**Post date:** [March 14, 2023, 1:33pm UTC](https://forums.developer.nvidia.com/t/ptx-miscompiled-to-sass-in-a-specific-case-shared-memory-buffer-index/245964/13 "2023-03-14T13:33:53Z")

</div>

splendid.

If you want to [file a bug](https://forums.developer.nvidia.com/t/how-to-report-a-bug/67911), I think you’ll be better off. I doubt I would spend much time with it, because although I can navigate PTX, its much less familiar to me compared to CUDA C++. And given that it seems to work or not based on ptxas optimization level, that certainly is a possible indicator (not a guarantee) of a toolchain problem.

---

_[View the full topic](https://forums.developer.nvidia.com/t/ptx-miscompiled-to-sass-in-a-specific-case-shared-memory-buffer-index/245964)._
