Answered
Problems with multi-gpus
I can reproduce your issue. It seems the issue is your use of an anonymous function to call a nested function for your datastore...

8 years ago | 2

Answered
how to run "detectMSERFeatures" on a GPU or how to accelerate it?
Why don't you inspect the function <https://uk.mathworks.com/help/vision/ref/detectharrisfeatures.html |gpuArray/detectHarrisFea...

8 years ago | 0

| accepted

Answered
How does Matlab allocate GPU memory ?
MATLAB allocates memory when necessary using the driver API. But it maintains a memory pool and avoids raw allocation if possibl...

8 years ago | 0

Answered
GPU multiplication slowdown after ~500 ops. (Image Attached)
This is just because you are not accounting for the asynchronous behaviour of the GPU in your timing. This question is asked reg...

8 years ago | 1

Answered
Convolutional neural networks: What is the best practice training approach using graphics cards?
You needn't worry too much about the efficiency of file i/o. Even with a file-path table, data is prefetched in the background d...

8 years ago | 0

| accepted

Answered
GPU enabled functions react slow on first call
MATLAB R2016b is built with CUDA 7.5. The first time you load the GPU libs they have to be just-in-time compiled to match your P...

8 years ago | 1

| accepted

Answered
can any body help me how to use "arrayfun" to update parameter with in "for loop"? is it possible?
That's not the way |arrayfun| works. |arrayfun| passes each element of your input arrays to the function, so you cannot then ind...

8 years ago | 1

| accepted

Answered
k-means clustering using CUDA gpu with MATLAB programming
<https://uk.mathworks.com/matlabcentral/answers/356143-calculating-kmeans-on-a-gpu>

8 years ago | 0

Answered
Speed of looped operation on a GPU depending on number of iterations in loop?
You're just doing the timing in an invalid way. Most GPU operations run asynchronously, so all you were timing for the first 100...

8 years ago | 2

| accepted

Answered
how can i fix this error Error using gpuArray/arrayfun Out of memory on device. To view more detail about available memory on the GPU, use 'gpuDevice()'. If the problem persists, reset the GPU by calling 'gpuDevice(1)'.
Try reducing the number of digits you are trying to classify at once, to reduce the amount of memory needed to process them. See...

8 years ago | 0

Answered
CUDA Error - Semantic Segmentation
This is almost guaranteed to be due to a kernel time-out - your GPU is also driving your graphics, and Windows imposes a time-ou...

8 years ago | 0

Answered
Is there a Convolutional Neural Network implementation for 3D images?
There are many 3D image processing algorithms in MATLAB. However, there is currently no support for 3D volumetric data in the De...

8 years ago | 1

Answered
Using a system with multiple gpus and multiple users, how can we share resources?
This is difficult to answer fully without a lot more information about your system and environment. Probably the best way to dea...

8 years ago | 0

Answered
Resize images in ImageDataStore on GPU
A ReadFcn is fine for classifying one image at a time. For classifying large batches of images it will slow things down consider...

8 years ago | 2

Answered
Calculating kmeans on a GPU
|gpuArray| support for |kmeans| was added to MATLAB in R2016a >> help gpuArray/kmeans kmeans K-means clustering for GPU...

8 years ago | 3

| accepted

Answered
How to plot training loss for Covolutional Neural Nets?
The issue is that |addpoints| only takes double values and in R2017a |info.TrainingLoss| is a single |gpuArray|. This is essenti...

8 years ago | 2

| accepted

Answered
Pass a Matlab Function handle to mex file in GPU computing
Hi Qun. What you appear to be trying to do is have a GPU run a MATLAB function. This, I'm afraid, is impossible. MATLAB is runni...

8 years ago | 0

Answered
Compiling CUDA files with mex -v mexGPUExample.cu
You can't compile this file with |mex|, it must be compiled with <https://uk.mathworks.com/help/distcomp/mexcuda.html |mexcuda|>...

8 years ago | 0

Answered
please suggest GeForce Card for GPU computing in Matlab 2016b
What makes you think that Pascal is not supported in R2016b? It is supported. Deep Learning is not supported, and there are a co...

8 years ago | 0

Answered
What functions does pagefun support?
|sum| already supports batch operations, and with |accumarray| you can sum arbitrary data partitions. |pagefun| supports all ...

8 years ago | 0

Answered
Why does norm(gpuArray) return a double in Matlab 2015b?
The debate over this could go round the houses 100 times! The logic was that scalars should always be returned on the CPU becaus...

8 years ago | 5

| accepted

Answered
Entry-wise multiplication of a sparse matrix on GPU
Is the sparsity the same for both matrices? [I, J, VA] = find(Asparse); [~, ~, VB] = find(Bsparse); C = sparse(I, J, ...

8 years ago | 1

Answered
Selecting specific GPUs for parpool
Start your pool, select the devices, then run |trainNetwork|. It will use the pool you already have open and won't change the se...

8 years ago | 3

| accepted

Answered
Whether NVIDIA Quadro K620 is enough to run the deep learning codes smoothly with less time in Matlab?
The K620 is capable of doing Deep Learning in MATLAB but it only has 2GB of memory. This limits what you can do, in particular, ...

8 years ago | 0

| accepted

Answered
How to pass a user-defined function as a argument to mex file?
Simple advice for a newbie to GPU programming - don't write a custom MEX function or CUDAKernel until you've tried using the GPU...

8 years ago | 0

| accepted

Answered
exp function on single gpuArray vs exp function on single normal array precision difference
Your test does not do a fair comparison, since both the host and GPU versions should be compared against the double-precision ve...

8 years ago | 1

Answered
Matlab CUDA feval interfacing problem
You are just writing off the end of your array. Your logic says that when you have 2000 rows, launch two blocks each with 1024 t...

8 years ago | 0

Answered
ptxas fatal : Unresolved extern function 'cudaGetParameterBufferV2' with matlab 2017a on GTX1080
Dynamic parallelism is not supported in MATLAB |CUDAKernel| objects. You need to use a MEX function instead. Sorry.

8 years ago | 1

| accepted

Answered
how to convert this code into gpuArray
A blanket change would be z=gpuArray.colon(1,0.5,10); a=gpuArray.colon(1,0.5,5); num=kron(z,ones(1,length(a),'gpuArra...

8 years ago | 0

| accepted

Answered
Computing the distance between a grid of points and N points with arrayfun and GPU
Well, the normal way is to use scalar expansion: Xdist = X(:) - XP(:)'; Ydist = YX(:) - YP(:)'; Zdist = ZX(:) - ZP(:)...

8 years ago | 0

| accepted

Load more