2013년 7월 17일 수요일

Intel C++ Composer XE 2013 빌드하기


1. header file 경로와 lib 경로를 잡아준다.

   header: /opt/intel/ipp/include
   lib: /opt/intel/ipp/lib


2. 라이브러리를 링크한다.


3. 샘플 코드

MyView.mm

#import "MyTest.h"
#import "ippi.h"

@implementation MyTest

- (id)initWithFrame:(NSRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code here.
        IppiSize size;
        size.width  = 100;
        size.height = 100;
        Ipp8u * pSrc = new Ipp8u[100 * 100];
        for(int i=0;i<100 * 100;i++)
            pSrc[i] = 200;
        Ipp8u * pDst = new Ipp8u[100 * 100];
        
        ippiCopy_8u_C1R(pSrc, 100, pDst, 100, size);
        
        delete[] pSrc;
        delete[] pDst;
    }
    
    return self;
}

댓글 없음:

댓글 쓰기