-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
58 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,32 @@ | ||
% compile mex files once from Matlab running this script | ||
|
||
cd ../ | ||
fsep = filesep; | ||
UpPath = sprintf(['..' fsep], 1i); | ||
cd(UpPath); | ||
|
||
mkdir compiled | ||
cd ../functions/ | ||
|
||
PathFunc = sprintf(['..' fsep 'functions' fsep], 1i); | ||
cd(PathFunc); | ||
|
||
Pathmove = sprintf(['..' fsep 'matlab' fsep 'compiled' fsep], 1i); | ||
|
||
fprintf('%s \n', 'Building functions...'); | ||
mex TomoP2DModel.c TomoP2DModel_core.c utils.c CFLAGS="\$CFLAGS -fopenmp -Wall -std=c99" LDFLAGS="\$LDFLAGS -fopenmp" | ||
movefile TomoP2DModel.mex* ../matlab/compiled/ | ||
movefile('TomoP2DModel.mex*',Pathmove); | ||
mex TomoP2DObject.c TomoP2DModel_core.c utils.c CFLAGS="\$CFLAGS -fopenmp -Wall -std=c99" LDFLAGS="\$LDFLAGS -fopenmp" | ||
movefile TomoP2DObject.mex* ../matlab/compiled/ | ||
movefile('TomoP2DObject.mex*',Pathmove); | ||
mex TomoP2DModelSino.c TomoP2DModelSino_core.c utils.c CFLAGS="\$CFLAGS -fopenmp -Wall -std=c99" LDFLAGS="\$LDFLAGS -fopenmp" | ||
movefile TomoP2DModelSino.mex* ../matlab/compiled/ | ||
movefile('TomoP2DModelSino.mex*',Pathmove); | ||
mex TomoP2DObjectSino.c TomoP2DModelSino_core.c utils.c CFLAGS="\$CFLAGS -fopenmp -Wall -std=c99" LDFLAGS="\$LDFLAGS -fopenmp" | ||
movefile TomoP2DObjectSino.mex* ../matlab/compiled/ | ||
movefile('TomoP2DObjectSino.mex*',Pathmove); | ||
mex TomoP3DModel.c TomoP3DModel_core.c utils.c CFLAGS="\$CFLAGS -fopenmp -Wall -std=c99" LDFLAGS="\$LDFLAGS -fopenmp" | ||
movefile TomoP3DModel.mex* ../matlab/compiled/ | ||
movefile('TomoP3DModel.mex*',Pathmove); | ||
mex TomoP3DObject.c TomoP3DModel_core.c utils.c CFLAGS="\$CFLAGS -fopenmp -Wall -std=c99" LDFLAGS="\$LDFLAGS -fopenmp" | ||
movefile TomoP3DObject.mex* ../matlab/compiled/ | ||
mex BackProjCPU.c CFLAGS="\$CFLAGS -fopenmp -Wall -std=c99" LDFLAGS="\$LDFLAGS -fopenmp" | ||
movefile BackProjCPU.mex* ../matlab/compiled/ | ||
movefile('TomoP3DObject.mex*',Pathmove); | ||
% mex BackProjCPU.c CFLAGS="\$CFLAGS -fopenmp -Wall -std=c99" LDFLAGS="\$LDFLAGS -fopenmp" | ||
% movefile BackProjCPU.mex* ../matlab/compiled/ | ||
fprintf('%s \n', 'All compiled!'); | ||
|
||
cd ../ | ||
cd matlab | ||
cd(UpPath); | ||
cd matlab |