annotate solvers/SMALL_ompGabor/make.m @ 140:31d2864dfdd4 ivand_dev

Audio Impainting additional constraints with cvx added
author Ivan Damnjanovic lnx <ivan.damnjanovic@eecs.qmul.ac.uk>
date Mon, 25 Jul 2011 17:27:05 +0100
parents
children
rev   line source
ivan@140 1 function make
ivan@140 2 %MAKE Build the OMPBox package.
ivan@140 3 % MAKE compiles all OMPBox MEX functions, using Matlab's default MEX
ivan@140 4 % compiler. If the MEX compiler has not been set-up before, please run
ivan@140 5 %
ivan@140 6 % mex -setup
ivan@140 7 %
ivan@140 8 % before using this MAKE file.
ivan@140 9
ivan@140 10 % Ron Rubinstein
ivan@140 11 % Computer Science Department
ivan@140 12 % Technion, Haifa 32000 Israel
ivan@140 13 % ronrubin@cs
ivan@140 14 %
ivan@140 15 % August 2009
ivan@140 16
ivan@140 17
ivan@140 18 % detect platform
ivan@140 19
ivan@140 20 compstr = computer;
ivan@140 21 is64bit = strcmp(compstr(end-1:end),'64');
ivan@140 22
ivan@140 23
ivan@140 24 % compilation parameters
ivan@140 25
ivan@140 26 compile_params = cell(0);
ivan@140 27 if (is64bit)
ivan@140 28 compile_params{1} = '-largeArrayDims';
ivan@140 29 end
ivan@140 30
ivan@140 31
ivan@140 32 % Compile files %
ivan@140 33
ivan@140 34 ompsources = {'mexutils.c','ompcoreGabor.c','omputils.c','myblas.c','ompprof.c'};
ivan@140 35
ivan@140 36 disp('Compiling ompmex...');
ivan@140 37 mex('ompmexGabor.c', ompsources{:},compile_params{:});
ivan@140 38
ivan@140 39 disp('Compiling omp2mex...');
ivan@140 40 mex('omp2mexGabor.c',ompsources{:},compile_params{:});
ivan@140 41