comparison util/ksvd utils/ompbox utils/make.m @ 137:9207d56c5547 ivand_dev

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