Community Profile

photo

James Lebak


MathWorks

14 total contributions since 2012

Contact

James Lebak's Badges

  • 3 Month Streak
  • Knowledgeable Level 2
  • First Answer

View details...

Contributions in
View by

Answered
How can I avoid this error when creating a MEX file? "Error: Link of 'mexGPUexample.mex64' failed."
Hi Edward, You stated you were using CUDA 5.5 and VS 2012. When you build MEX files for the GPU, you must use the same versio...

6 years ago | 3

| accepted

Answered
gpuDevice command very slow
MATLAB R2012a doesn't include code for the Kepler series GPUs. This means that the very first time you call any GPU command afte...

6 years ago | 3

| accepted

Answered
BLAS or LAPACK in CUDA kernel
You're correct that you can't call DGETRS and SGETRS directly, as that's CPU-side code. The CUDA 5 version of CUBLAS has a batch...

6 years ago | 0

| accepted

Answered
making the cuda volume renderer included in the sdk work with matlab
Yes, you can use these in a GPU MEX file in R2013a. You will have to compile the MEX file for the GPU as detailed in the <http:/...

6 years ago | 2

| accepted

Answered
"MATLAB was unable to initialize the GPU FFT library" ??
You are correct that the symptoms you mention indicate a memory problem. The GPU FFT requires memory not only for the input and ...

6 years ago | 0

| accepted

Answered
IFFT slow down with using gpuArray
The GeForce GT630M is a mobile graphics card. Frequently, these cards don't perform as well in double-precision as they do in si...

6 years ago | 1

Answered
mex CUDA code to calculate Coulomb field
Mike, I'm glad to hear that you're using the GPU MEX API. Below are my answers to your questions, which you can accept or re...

6 years ago | 0

Answered
two - loop with GPU
Yes, 1:gpuArray(N) for scalar N doesn't work in MATLAB R2013a. Try the following: x=gpuArray.colon(1,N)*ds-L/2; y=gpuArr...

6 years ago | 0

Answered
Help Choosing a GPU?
Obviously, it's going to depend on your problem, but the amount of memory on the card is a very important consideration. Estimat...

6 years ago | 0

Answered
Using multiple GPUs in a parfor type of loop
In R2012b and later, in a matlabpool on a single machine with two GPUs, each worker will use a different GPU by default. You can...

6 years ago | 1

Answered
gather takes really long after using ptx file /CUDA
In MATLAB R2012a and later, GPU functions execute asynchronously in MATLAB. To get accurate timings, you need to call the wait f...

7 years ago | 1

Answered
MATLAB Parallel Computing Toolbox + (2) NVIDIA GeForce GTX 690's in SLI
As far as I can tell, this is not possible, because SLI and CUDA don't interact. The CUDA C Programming Guide makes little menti...

7 years ago | 0

| accepted

Answered
What is the best way to determine if a usable GPU is available?
Hi Joe, There is not presently a function called 'canUseGPU' in Parallel Computing Toolbox. Matt's answer will work. You coul...

7 years ago | 1

Answered
Allocate page locked memory for output array in mex?
Justin, Unfortunately this isn't possible in MATLAB today. The function mxCreateDoubleMatrix returns an mxArray, not a raw po...

7 years ago | 0

| accepted