Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fdt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FSL
fdt
Commits
cc63a32d
Commit
cc63a32d
authored
12 years ago
by
Moises Fernandez
Browse files
Options
Downloads
Patches
Plain Diff
added the possibility of compile Bedpostx CUDA version
parent
0fa305c9
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Makefile
+27
-3
27 additions, 3 deletions
Makefile
with
27 additions
and
3 deletions
Makefile
+
27
−
3
View file @
cc63a32d
include
$(FSLCONFDIR)/default.mk
include
$(FSLCONFDIR)/default.mk
ifeq
($(COMPILE_GPU), 1)
COMPILE_WITH_GPU
=
libbedpostx_cuda.so xfibres_gpu.o splitter_gpu splitter_multigpu
SCRIPTS_GPU
=
CUDA/bedpostx_gpu CUDA/bedpostx_multigpu_SGE CUDA/bedpostx_multigpu_LSF
endif
PROJNAME
=
fdt
PROJNAME
=
fdt
USRINCFLAGS
=
-I
${
INC_NEWMAT
}
-I
${
INC_NEWRAN
}
-I
${
INC_CPROB
}
-I
${
INC_PROB
}
-I
${
INC_BOOST
}
-I
${
INC_ZLIB
}
USRINCFLAGS
=
-I
${
INC_NEWMAT
}
-I
${
INC_NEWRAN
}
-I
${
INC_CPROB
}
-I
${
INC_PROB
}
-I
${
INC_BOOST
}
-I
${
INC_ZLIB
}
...
@@ -28,6 +33,10 @@ DTIGEN=dtigen
...
@@ -28,6 +33,10 @@ DTIGEN=dtigen
RARNG
=
rearrange
RARNG
=
rearrange
XPRED
=
xfibres_pred
XPRED
=
xfibres_pred
RUBIX
=
rubix
RUBIX
=
rubix
LIBBEDPOSTX_CUDA
=
libbedpostx_cuda.so
XFIBRES_GPU
=
xfibres_gpu
SPLITTERGPU
=
splitter_gpu
SPLITTERMULTIGPU
=
splitter_multigpu
DTIFITOBJS
=
dtifit.o dtifitOptions.o diffmodels.o Bingham_Watson_approx.o
DTIFITOBJS
=
dtifit.o dtifitOptions.o diffmodels.o Bingham_Watson_approx.o
...
@@ -51,14 +60,17 @@ DTIGENOBJS=dtigen.o
...
@@ -51,14 +60,17 @@ DTIGENOBJS=dtigen.o
RARNGOBJS
=
rearrange.o
RARNGOBJS
=
rearrange.o
XPREDOBJS
=
xfibres_pred.o
XPREDOBJS
=
xfibres_pred.o
RUBIXOBJS
=
rubix.o diffmodels.o rubixvox.o rubixoptions.o Bingham_Watson_approx.o
RUBIXOBJS
=
rubix.o diffmodels.o rubixvox.o rubixoptions.o Bingham_Watson_approx.o
XFIBRES_GPUOBJS
=
xfibres_gpu.o xfibresoptions.o
SPLITTERGPUOBJS
=
splitter_gpu.o xfibres_gpu.o xfibresoptions.o diffmodels.o Bingham_Watson_approx.o
SPLITTERMULTIGPUOBJS
=
splitter_multigpu.o xfibres_gpu.o xfibresoptions.o diffmodels.o Bingham_Watson_approx.o
SGEBEDPOST
=
bedpost
SGEBEDPOST
=
bedpost
SGEBEDPOSTX
=
bedpostx bedpostx_postproc.sh bedpostx_preproc.sh bedpostx_single_slice.sh bedpostx_datacheck
SGEBEDPOSTX
=
bedpostx bedpostx_postproc.sh bedpostx_preproc.sh bedpostx_single_slice.sh bedpostx_datacheck
SCRIPTS
=
eddy_correct zeropad maskdyads probtrack fdt_rotate_bvecs
${
SGEBEDPOST
}
${
SGEBEDPOSTX
}
SCRIPTS
=
eddy_correct zeropad maskdyads probtrack fdt_rotate_bvecs
${
SGEBEDPOST
}
${
SGEBEDPOSTX
}
${
SCRIPTS_GPU
}
FSCRIPTS
=
correct_and_average ocmr_preproc
FSCRIPTS
=
correct_and_average ocmr_preproc
XFILES
=
dtifit ccops medianfilter make_dyadic_vectors vecreg xfibres probtrackx pvmfit dtigen
XFILES
=
dtifit ccops medianfilter make_dyadic_vectors vecreg xfibres probtrackx pvmfit dtigen
${
COMPILE_WITH_GPU
}
FXFILES
=
reord_OM sausages replacevols fdt_matrix_ops indexer rearrange xfibres_pred
FXFILES
=
reord_OM sausages replacevols fdt_matrix_ops indexer rearrange xfibres_pred
...
@@ -138,4 +150,16 @@ ${XPRED}: ${XPREDOBJS}
...
@@ -138,4 +150,16 @@ ${XPRED}: ${XPREDOBJS}
${
CXX
}
${
CXXFLAGS
}
${
LDFLAGS
}
-o
$@
${
XPREDOBJS
}
${
DLIBS
}
${
CXX
}
${
CXXFLAGS
}
${
LDFLAGS
}
-o
$@
${
XPREDOBJS
}
${
DLIBS
}
${RUBIX}
:
${RUBIXOBJS}
${RUBIX}
:
${RUBIXOBJS}
${
CXX
}
${
CXXFLAGS
}
${
LDFLAGS
}
-o
$@
${
RUBIXOBJS
}
${
DLIBS
}
${
CXX
}
${
CXXFLAGS
}
${
LDFLAGS
}
-o
$@
${
RUBIXOBJS
}
${
DLIBS
}
\ No newline at end of file
${LIBBEDPOSTX_CUDA}
:
${
CUDA
}
/bin/nvcc
--shared
--compiler-options
'-fPIC'
-o
CUDA/libbedpostx_cuda.so CUDA/init_gpu.cu CUDA/samples.cu CUDA/diffmodels.cu CUDA/runmcmc.cu CUDA/xfibres_gpu.cu
-O3
-arch
sm_20
-lcudart
-lcuda
-lcurand
-I
.
-L
${
CUDA
}
/lib64
-L
${
CUDA
}
/lib
-ICUDA
/options
-I
${
FSLDIR
}
/extras/include/newmat
-I
${
FSLDIR
}
/include
-I
${
CUDA
}
/include/thrust
-I
${
FSLDIR
}
/include
${XFIBRES_GPU}
:
${XFIBRES_GPUOBJS}
${
CXX
}
${
CXXFLAGS
}
${
LDFLAGS
}
-o
$@
${
XFIBRES_GPUOBJS
}
${
DLIBS
}
-lbedpostx_cuda
-LCUDA
-I
${
FSLDIR
}
/extras/include/newmat
-I
${
FSLDIR
}
/include
${SPLITTERGPU}
:
${SPLITTERGPUOBJS}
${
CXX
}
${
CXXFLAGS
}
${
LDFLAGS
}
-o
$@
${
SPLITTERGPUOBJS
}
${
DLIBS
}
-lcudart
-lcuda
-lcurand
-lbedpostx_cuda
-LCUDA
-L
${
CUDA
}
/lib64
-L
${
CUDA
}
/lib
${SPLITTERMULTIGPU}
:
${SPLITTERMULTIGPUOBJS}
${
CXX
}
${
CXXFLAGS
}
${
LDFLAGS
}
-o
$@
${
SPLITTERMULTIGPUOBJS
}
${
DLIBS
}
-lcudart
-lcuda
-lcurand
-lbedpostx_cuda
-LCUDA
-L
${
CUDA
}
/lib64
-L
${
CUDA
}
/lib
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment