2012-05-15 59 views
2

IPP對它處理的數據有什麼要求嗎?比如對齊等等。IPP - 英特爾性能集成基元

+0

一般情況下,如果你正確地調整你的數據,那麼你會從IPP獲得更好的性能,但它不是強制性的。 –

+1

關於內存對齊 - 僅對緩衝區的「標題」和「尾隨」部分產生影響,其餘所有內容都在對齊的內存上工作,還是影響整個處理? – Dany

+0

這取決於該功能的功能 - 例如如果你想添加兩個向量,那麼兩者之間的相對對齊可能對所有數據點都很重要,而不僅僅是開始和結束。 –

回答

2

在Windows上,使用x86二進制文件(這是我迄今使用的所有內容),您不需要對齊內存,但userguide_win_ia32.pdf文檔在第7章中簡要提及了對齊方式(來自IPP v6.1) :

Memory Alignment 

The performance of Intel IPP functions can be significantly different 
when operating on aligned or misaligned data. Access to memory is faster 
if pointers to the data are aligned. Use the following Intel IPP 
functions for pointer alignment, memory allocation and deallocation: 

隨着一些引用的函數:[見ippMalloc,ippAlignPtr,ippFree,等等。

底線是,對齊可以幫助您提高性能,但直到您使用和不使用對齊方式進行配置時,您纔會知道程度如何。

相關問題