related: how do I use dlpackrs with apache TVM for zero-copy?
I’ve been trying to use dlpackrs, but kept getting segfaults when I tried to access items inside ArrayViewD converted from tvm’s NDArray.
trying to dig further, I noticed that when I run
python 3rdparty/dlpack/apps/numpy_dlpack/test.py
inside my tvm build folder+venv, I get:
InternalError: Check failed: (IsAligned(tensor->dl_tensor)) is false: Data in DLManagedTensor is not aligned as required by NDArray
is this related to some build configuration settings? (eg. cmakelist) or is it something broken inside tvm source code? thank you!