Tensile icon indicating copy to clipboard operation
Tensile copied to clipboard

undefined symbol: Tensile::TypedContractionInputs<Tensile::Half>::TypedContractionInputs()

Open xiakubaobaore opened this issue 2 years ago • 2 comments

cmake libTensileHost.a by -DTensile_LIBRARY_FORMAT="msgpack" -DCMAKE_CXX_COMPILER="hipcc". at datatype=half problem, use "TypedContractionInputs<Half> deviceInputs;" init input, then fill data with "deviceInputs.a = reinterpret_castTensile::Half*(d_A);" and "d_A"is "half *". then error occur: ld.lld: error: undefined symbol: Tensile::TypedContractionInputs<Tensile::Half, Tensile::Half, Tensile::Half, Tensile::Half, Tensile::Half, Tensile::Half>::TypedContractionInputs() ld.lld: error: undefined symbol: Tensile::TypedContractionInputs<Tensile::Half, Tensile::Half, Tensile::Half, Tensile::Half, Tensile::Half, Tensile::Half>::~TypedContractionInputs() assume it means the "TypedContractionInputs<Half>" has no Constructor? but the non-parameter constructor is default generated?

xiakubaobaore avatar Nov 30 '23 02:11 xiakubaobaore

I encountered the same problem, changing TypedContractionInputs to <_Float16, _Float16, _Float16, _Float16, float, float> will pass compilation, but errors are still reported at run time: Segmentation fault (core dumped).

sparklesea avatar Nov 30 '23 09:11 sparklesea

@xiakubaobaore Apologies for the lack of response. Can you please test with the latest ROCm 6.1.2? If issue is resolved, please close the ticket. Thanks!

ppanchad-amd avatar Jul 17 '24 14:07 ppanchad-amd