I am an experienced matlab user but new at CUDA.
I have spent hours trying to resolve an error that occurs when compiling example code from a book “Accelerating Matlab with GPC Computing” (Jung W Suh / Youngmin Kim). The error is from example / chapter 2.5.
When compiling the code I receive a notice saying that “fPIC” is required.
The suggested code is:
mex AddVectorsCuda.cpp AddVectors.o -lcudart -L"/usr/local/cuda"
I have installed cuda. I can compile other examples. My question is – how can I recompile with fPIC ?
All help is greatly appreciated - this error has become very frustrating.