Answered

gpu limit on 3070 with a simple CNN

You have 2-D data so you can't use a resize3dLayer. Use a resize2dLayer. But actually it doesn't look like that's what you want....

gpu limit on 3070 with a simple CNN

You have 2-D data so you can't use a resize3dLayer. Use a resize2dLayer. But actually it doesn't look like that's what you want....

4 months ago | 0

| accepted

Answered

Indexing after knnsearch with GPU is slow

wait just asks the GPU to finish executing any pending operations, in this case, the call to knnsearch. Your previous timing cod...

Indexing after knnsearch with GPU is slow

wait just asks the GPU to finish executing any pending operations, in this case, the call to knnsearch. Your previous timing cod...

5 months ago | 0

| accepted

Answered

How to fix the GPU warning?

It's all pretty clear from the documentation. Ampere cards are not supported in R2019a. You are using forward compatibility, whi...

How to fix the GPU warning?

It's all pretty clear from the documentation. Ampere cards are not supported in R2019a. You are using forward compatibility, whi...

5 months ago | 0

| accepted

Answered

ExecutionEnviroment problem on optimizer at traininOptions

It looks like you typed ExecutionEnviroment instead of ExecutionEnvironment (ie. you missed the second 'n').

ExecutionEnviroment problem on optimizer at traininOptions

It looks like you typed ExecutionEnviroment instead of ExecutionEnvironment (ie. you missed the second 'n').

5 months ago | 0

Answered

augmentedImageDatastore, understanding the flow of how it works

1) Yes 2) What is that 3rd dimension? Is this an index image? I think augmentedImageDatastore only understands grayscale and RG...

augmentedImageDatastore, understanding the flow of how it works

1) Yes 2) What is that 3rd dimension? Is this an index image? I think augmentedImageDatastore only understands grayscale and RG...

5 months ago | 1

| accepted

Answered

What is different between AvailableMemory and FreeMemory?

Both are valid and supported, but FreeMemory was replaced many years ago by AvailableMemory as the documented way to determine h...

What is different between AvailableMemory and FreeMemory?

Both are valid and supported, but FreeMemory was replaced many years ago by AvailableMemory as the documented way to determine h...

6 months ago | 0

Answered

Loadlibrary C library (dll) changing Matrix in place?

MATLAB is being exception safe and preserving your workspace by not silently modifying variables as a side effect. The only cert...

Loadlibrary C library (dll) changing Matrix in place?

MATLAB is being exception safe and preserving your workspace by not silently modifying variables as a side effect. The only cert...

6 months ago | 0

| accepted

Answered

gpu memory cannot be released

This memory contains device binaries, i.e. program code, as well as workspace set aside for the CUDA libraries and not available...

gpu memory cannot be released

This memory contains device binaries, i.e. program code, as well as workspace set aside for the CUDA libraries and not available...

6 months ago | 0

| accepted

Answered

sparse in cuda matlab shows bad performance

It is often slower. The problem is that sparse factorizations create dense matrices...basically, it's hard to parallelize. We...

sparse in cuda matlab shows bad performance

It is often slower. The problem is that sparse factorizations create dense matrices...basically, it's hard to parallelize. We...

6 months ago | 0

| accepted

Answered

Using multi-gpu in minibatchqueue

https://uk.mathworks.com/help/deeplearning/ug/train-network-in-parallel-with-custom-training-loop.html will show you how to use ...

Using multi-gpu in minibatchqueue

https://uk.mathworks.com/help/deeplearning/ug/train-network-in-parallel-with-custom-training-loop.html will show you how to use ...

7 months ago | 0

Answered

How to use multiple gpu on CGAN?

SPMD wraps the whole epoch loop. After you open it you partition the data and then start looping. See https://uk.mathworks.com/h...

How to use multiple gpu on CGAN?

SPMD wraps the whole epoch loop. After you open it you partition the data and then start looping. See https://uk.mathworks.com/h...

7 months ago | 0

Answered

Memory increases on GPU while performing modification inplace

MATLAB cannot perform this operation in place because |data| is a workspace variable. MATLAB has no way of knowing there won't b...

Memory increases on GPU while performing modification inplace

MATLAB cannot perform this operation in place because |data| is a workspace variable. MATLAB has no way of knowing there won't b...

7 months ago | 0

Answered

Frame per second computingfor GPU code generation

This is a smoothing filter to eliminate noise, to ensure it gives a good result from the first frame you could set it to |1/newt...

Frame per second computingfor GPU code generation

This is a smoothing filter to eliminate noise, to ensure it gives a good result from the first frame you could set it to |1/newt...

7 months ago | 0

| accepted

Answered

Error Message: Brace indexing is not supported for variables of this type. during TrainNetwork

You can definitely use your GPU on multiple MATLAB workers in an SPMD block. You should show your code, looks like you have a sy...

Error Message: Brace indexing is not supported for variables of this type. during TrainNetwork

You can definitely use your GPU on multiple MATLAB workers in an SPMD block. You should show your code, looks like you have a sy...

7 months ago | 0

Answered

Doesn't the GPU Coder support singleton expansion of ARRAYFUN?

Support for dimension expansion is actually restricted to the GPU version of arrayfun, and GPU Coder supports the CPU version's ...

Doesn't the GPU Coder support singleton expansion of ARRAYFUN?

Support for dimension expansion is actually restricted to the GPU version of arrayfun, and GPU Coder supports the CPU version's ...

8 months ago | 0

| accepted

Answered

From CPU code to GPU

You need to vectorize your code. The GPU is not intended for performing this kind of looping series of operations on scalar vari...

From CPU code to GPU

You need to vectorize your code. The GPU is not intended for performing this kind of looping series of operations on scalar vari...

8 months ago | 0

Answered

I have a problem about " out of memory" for running VGG16 for image classification

It doesn't look as though you're setting the MiniBatchSize on the call to activations which means it's using the default value o...

I have a problem about " out of memory" for running VGG16 for image classification

It doesn't look as though you're setting the MiniBatchSize on the call to activations which means it's using the default value o...

8 months ago | 0

Answered

Error using gpuArray/subsasgn An unexpected error occurred during CUDA execution. The CUDA error was: CUDA_ERROR_LAUNCH_FAILED

What version of MATLAB are you using, what GPU and what platform? This sounds like a problem seen before with workstation 'Slee...

Error using gpuArray/subsasgn An unexpected error occurred during CUDA execution. The CUDA error was: CUDA_ERROR_LAUNCH_FAILED

What version of MATLAB are you using, what GPU and what platform? This sounds like a problem seen before with workstation 'Slee...

8 months ago | 0

Answered

predict fucntion in deep learning toolbox does not use gpu

That is the documentation for DAGNetwork, not dlnetwork. dlnetwork does not have an ExecutionEnvironment, it chooses its environ...

predict fucntion in deep learning toolbox does not use gpu

That is the documentation for DAGNetwork, not dlnetwork. dlnetwork does not have an ExecutionEnvironment, it chooses its environ...

9 months ago | 0

Answered

What algorithm does matlab use when solving linear system A\b on GPU?

The same as for the CPU, MATLAB uses LU with pivoting for general square matrices and QR for general rectangular matrices. Perfo...

What algorithm does matlab use when solving linear system A\b on GPU?

The same as for the CPU, MATLAB uses LU with pivoting for general square matrices and QR for general rectangular matrices. Perfo...

9 months ago | 0

| accepted

Answered

How to use lsqr with GPU?

solution = lsqr(@afun,gpuArray(b)); Or alternatively, move the data to the GPU inside your afun operation. The problem is, usin...

How to use lsqr with GPU?

solution = lsqr(@afun,gpuArray(b)); Or alternatively, move the data to the GPU inside your afun operation. The problem is, usin...

10 months ago | 0

Answered

Compatibility Matlab & GPU coder Compute Capability 8.6 RTX 3070

Regarding the gpuBench results: no, MATLAB is definitely not only using half the cores! What you are seeing is the raw performan...

Compatibility Matlab & GPU coder Compute Capability 8.6 RTX 3070

Regarding the gpuBench results: no, MATLAB is definitely not only using half the cores! What you are seeing is the raw performan...

10 months ago | 0

Answered

How much can a graphics card make a difference in neural networks?

Yes, it could make things run 10x faster maybe.

How much can a graphics card make a difference in neural networks?

Yes, it could make things run 10x faster maybe.

10 months ago | 0

| accepted

Answered

Can MATLAB ResNet50 be run on Google Colab Pro?

I'm not sure how in-guidelines it is to be asking about running Octave as a substitute for MATLAB on this forum! I'm pretty sure...

Can MATLAB ResNet50 be run on Google Colab Pro?

I'm not sure how in-guidelines it is to be asking about running Octave as a substitute for MATLAB on this forum! I'm pretty sure...

10 months ago | 1

Answered

BiCGStab is slower on R2021a using GPUs

There is a MATLAB bug report on this known issue: https://www.mathworks.com/support/bugreports/details/2438221 You should make...

BiCGStab is slower on R2021a using GPUs

There is a MATLAB bug report on this known issue: https://www.mathworks.com/support/bugreports/details/2438221 You should make...

11 months ago | 0

Answered

Optimization of loops with deep learning functions

dlconv is designed to work in batch with multiple input channels, multiple filters, and multiple input observations in a single ...

Optimization of loops with deep learning functions

dlconv is designed to work in batch with multiple input channels, multiple filters, and multiple input observations in a single ...

11 months ago | 0

| accepted

Answered

Is R2021a configured to automatically use Apple M1 chip for GPU and Neural Engine?

No. MATLAB only supports NVIDIA GPUs for computation.

Is R2021a configured to automatically use Apple M1 chip for GPU and Neural Engine?

No. MATLAB only supports NVIDIA GPUs for computation.

12 months ago | 1

| accepted

Answered

Why is pagemtimes slower on GPU than a CPU?

This might be simply because you are running double-precision math on a device designed for single precision operations. gpuBenc...

Why is pagemtimes slower on GPU than a CPU?

This might be simply because you are running double-precision math on a device designed for single precision operations. gpuBenc...

12 months ago | 0

Answered

Problems in defining a custom Neural network layer

Your custom layer doesn't work for input sequences, and it needs to. So the particular error that is happening (which you can se...

Problems in defining a custom Neural network layer

Your custom layer doesn't work for input sequences, and it needs to. So the particular error that is happening (which you can se...

1 year ago | 0

Answered

Cellarray in a dlarray

dlCell = cellfun(@dlarray, myCell, 'UniformOutput', false);

Cellarray in a dlarray

dlCell = cellfun(@dlarray, myCell, 'UniformOutput', false);

1 year ago | 0