Skip to content

Allow DIY to compile under ROCm HIP compiler

Robert Maynard requested to merge (removed):update_vtkm_for_hip into for/vtk-m

The ROCm HIP compiler ( a clang based compiler ) has issues compiling DIY via VTK-m. In general the issue is a compiler bug where it incorrectly presumes that the diy/master constructor is being invoked from a device side function.

This is a problem as HIP doesn't support allocations or frees ( so no keyword new / delete ) in device side functions. We work around the compiler bug by making the allocation happen in the definition instead of the declaration.

Edited by Robert Maynard

Merge request reports