- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
Hi,
I'm working on windows platform.
I have one application (process) that generate data to a second application (different process). The second app is doing some heavy signal processing computation using the ipp functions. I would like to pre-allocate the shared memory with ippMalloc. Can anyone please help my understand how i do such thing ?
Thanks.
Enlace copiado
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
Hi,
There's no need to use ippMalloc for the shared memory, no magic in ippMalloc. For IPP needs you can use any memory, obtained by any way. ippMalloc is just a wrapper for system malloc to create aligned - 64 bit alignment - pointer.
It's like
void* my_ptr = malloc(my_size + 64) & (~63);
The only problem here is that you may not pass my_ptr to system's free function. 'Free' function requires original pointer:
void* orig_ptr = malloc(my_size + 64);
void* ptr_for_ipp = orig_ptr & (~63);
...
free(orig_ptr);
- Suscribirse a un feed RSS
- Marcar tema como nuevo
- Marcar tema como leído
- Flotar este Tema para el usuario actual
- Favorito
- Suscribir
- Página de impresión sencilla