Skip to content

Commit

Permalink
flush octave compilation command
Browse files Browse the repository at this point in the history
  • Loading branch information
Qianqian Fang committed Apr 4, 2020
1 parent 5d3df36 commit 66b8f4f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions src/buildmmc.m
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,13 @@ function buildmmc(varargin)
linkflags=regexprep(linkflags,['[\\]*\$' linkvar],'');
for i=1:length(filelist)
cmd=sprintf('mex %s -c ''%s'' ',cflags,filelist{i});
disp(cmd);
fprintf(stdout,'%s\n',cmd);
fflush(stdout);
eval(cmd);
end
fn=dir('*.o');
eval(sprintf('mex %s -o ../%slab/%s %s ',strjoin({fn.name}),pname,pname,linkflags));
cmd=sprintf('mex %s -o ../%slab/%s %s ',strjoin({fn.name}),pname,pname,linkflags);
fprintf(stdout,'%s\n',cmd);
fflush(stdout);
eval(cmd);
end
2 changes: 1 addition & 1 deletion src/mmclab.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,7 @@ void mmc_set_field(const mxArray *root,const mxArray *item,int idx, mcconfig *cf
mexErrMsgTxt("the workload list can not be longer than 256");
for(dimtype i=0;i<arraydim[0]*arraydim[1];i++)
cfg->workload[i]=val[i];
printf("mmc.workload=<<%zu>>;\n",arraydim[0]*arraydim[1]);
printf("mmc.workload=<<%zu>>;\n",(size_t)arraydim[0]*arraydim[1]);
}else if(strcmp(name,"isreoriented")==0){
/*internal flag, don't need to do anything*/
}else{
Expand Down

0 comments on commit 66b8f4f

Please sign in to comment.