Skip to content

fix a stk-topology unit-test failure on gpu.

James Willenbring requested to merge alanw0:fix_topo_gpu into develop

Created by: alanw0

A couple of stk-topology unit-test functions were using new and delete on device. Surprisingly this failed only on some GPUs, not all... Very difficult to track down, manifested as memory corruption. Finally found it with cuda-memcheck which provided a clue which led us to replace the dynamically allocated array with a stack array.



Motivation and Context

How Has This Been Tested?


  • My commit messages mention the appropriate GitHub issue numbers.
  • My code follows the code style of the affected package(s).
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the code contribution guidelines for this project.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • No new compiler warnings were introduced.
  • These changes break backwards compatibility.

Merge request reports