intel mkl - Can I use MKL functions with user allocated data? -


is there problem using mkl user (non 64 bit aligned) allocated data ?

i'm trying use mkl function

vcmulbyconj(...) 

with continues memory allocated using opencv mat object. (with believe it's implemented using "new" c++ operation)

i receive access violation exception.

i'm aware mkl work 64 bit aligned allocation

void* datta = mkl_malloc(n*n*sizeof(double),64); 

i'm aware of performance vulnerability, albeit, can use own unaligned memory use mkl functions?

is there problem memory model ?

i ask same question ipp functions


update:

both mkl , ipp aligned 64 bit, can use same memory allocation mechanize both mkl , ipp library calls ?

(lets using ippimalloc() both libraries)

best

yes, can.

using aligned memory recommendation may improve performance, not requirement. mkl functions work correctly on both aligned , unaligned data.

https://software.intel.com/en-us/node/528558

for ipp, true. see last q&a in following link.

https://software.intel.com/en-us/articles/performance-tools-for-software-developers-memory-function-faq


Comments