I suspect that it didn't work. You can check if CUDA acceleration
is included in the executable by looking for these lines during compile:
Building NVCC (Device) object
src/plastimatch/./cuda_compile_generated_bspline_cuda.cu.o Building NVCC
(Device) object
src/plastimatch/./cuda_compile_generated_cuda_kernel_util.cu.o
[ 11%] Building NVCC (Device) object
src/plastimatch/./cuda_compile_generated_cuda_mem.cu.o
You can check if CUDA is used at runtime by looking for lines
like these:
Allocating GPU Memory..................done.
GPU Memory: 330 MB
You can also look at CPU usage, which will be low if GPU is being used.
Greg
> > The other "slick command" is: $ *exec bash --login -i*
> >
> > I suppose you could run cuda-enabled programs now... but I didn't try
> > without installing the SDK as well.
> > Like I said earlier, the SDK is optional. The rest here just
> > describes installing the example projects and compiling them. This
> > tests two things: 1) if the cuda toolkit is compiling correctly, and
> > 2) that the cuda driver is running the compiled programs correctly.
> >
> > ####### Install CUDA SDK ################################
> >
> > As a regular user:
> >
> > $ sh gpucomputingsdk_4.0.17_linux.run
> >
> > The example cuda programs need the following:
> >
> > # yum install freeglut freeglut.i686 freeglut-devel
> > freeglut-devel.i686 libXi-devel libXi-devel.i686 libXmu libXmu.i686
> > libXmu-devel libXmu-devel.i686
> >
> > NOTE: you probably don't need the i686 versions...
> >
> > ####### Test #########################################
> >
> > If you actually ran ldconfig as root and updated your $PATH, then the
> > cuda examples should compile
> >
> > $ cd ~/NVIDIA_GPU_Computing_SDK/C
> > $ make clean
> > $ make
> > $ cd bin/linux/release
> > $ ./randomFog
> > *-----<SNIP>-----<SNIP>-----<SNIP>-----*
> >
> >
> >
> > Hope this helps and good luck!
> >
> > Let us know if you run into any problems.
> > *
> > *
> > *--Tony*
>
--
Greg Sharp, PhD
Department of Radiation Oncology
Massachusetts General Hospital
The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.
Yes, I think that there is a problem with CUDA (all the CPUs work if I
run a registration).
I attached the warning that cmake (version 2.6.4) returns.
I don't understand why cmake doesn't show me the CUDA flags.
As soon as possible I'll recompile plastimatch and I'll check if I get
those lines (but I'm pretty sure that they don't appear).
Thank you very much.
Regards.
Paolo