multik icon indicating copy to clipboard operation
multik copied to clipboard

c fun doesn't work via cinterop

Open devcrocod opened this issue 2 years ago • 1 comments

Native functions from math, linalg don't work in multik-openblas for native targets via cinterop wrapper

devcrocod avatar Jul 28 '22 16:07 devcrocod

Need use Pinned<T>, because CValues copy arrays. https://kotlinlang.org/api/latest/jvm/stdlib/kotlinx.cinterop/-pinned/ https://kotlinlang.org/docs/native-c-interop.html#object-pinning

But frequent use pin can lead to a lot of problems with performance.

devcrocod avatar Aug 15 '22 12:08 devcrocod