Answered
How to print in cuda kernel when writing mex files
For convenience, printf is redirected by mex.h so that output will appear in the command window. You can use printf, but you sho...

7 Monate ago | 0

| accepted

Answered
For indexing in gpuArray, how can I improve my code?
Firstly, use pdist2. Secondly, say no to loops: Y = reshape(obj.x_train',1,[],num_train); delta = X-Y; dists = squeeze(sqrt(...

7 Monate ago | 0

| accepted

Answered
Why doesn't my CNN fit into the memory of the GPU?
VGG16 is a 1GB model, if you inflate it to 3-D you're going to have very serious memory pressure. More to the point, the error y...

7 Monate ago | 0

| accepted

Answered
large training dataset leads to error "out of memory. Type "help memory" for your options. caused by: out of memory. Type "help memory " for your options".
Have you followed the following advice from the example?: "The images in the CamVid data set are 720 by 960 in size. Image size...

7 Monate ago | 0

Answered
How can we train using gpu instead of cpu ?
By default your GPU will be used if you have one. To force it, set the ExecutionEnvironment training option to 'gpu'.

8 Monate ago | 0

| accepted

Answered
mexcuda in ubuntu error
Try mexcuda -lcublas GEMM_GPU.cu

8 Monate ago | 0

| accepted

Answered
mexcuda in ubuntu error
Your declaration const mwSize dims[] = {numCRows,numCCols,batch_count}; Is casting away the signed-ness of your variable numCR...

8 Monate ago | 0

Answered
Inconsistent results when using a Cuda Kernel in Matlab
You are overwriting the contents of wReal and wImag inside your kernel, but every thread with the same x grid position is readin...

8 Monate ago | 0

| accepted

Answered
Could I use the `mxGPUArray` format data in the cuda kernel function?
No. You have to get the GPU data pointer using the mxGPUGetData function.

9 Monate ago | 0

Answered
How `gpuArray` save sparse matrix when running Preconditioned conjugated gradient?
gpuArray currently stores sparse matrices internally in CSR format. This matches the NVIDIA cusparse routines that are used for ...

9 Monate ago | 1

| accepted

Answered
Using CUDA mex files interoperably with gpuArray
A third party CUDA MEX file could be built with a different version of the CUDA toolkit, and thus a different version of the CUD...

9 Monate ago | 1

| accepted

Answered
GPU arrays support only fundamental numeric or logical data types
It looks distinctly like one of your custom functions, preprocessData or augmentData, is doing something illegal with gpuArray o...

9 Monate ago | 1

| accepted

Answered
Code optimization with GPU
I = reshape(gpuArray.eye(q),q,1,q); U = I.*my_line_vector;

9 Monate ago | 0

| accepted

Answered
GPU GTX 1650 TI support
MathWorks does not list every single supported device, instead the documentation shows which device compute capabilities are sup...

9 Monate ago | 0

| accepted

Answered
Runing code with matlab on the GPU restarts the PC
Almost always the only way the GPU can cause your PC to restart is a power supply issue. You should check that your PC's power s...

10 Monate ago | 1

| accepted

Answered
deeplearning Matlab is not compatible with graphics card
As explained in the documentation, both for CUDA support and for the enableForwardCompatibility function, "Enabling forward comp...

10 Monate ago | 0

Answered
The CUDA driver must recompile the GPU libraries
There isn't really much to say. This 'forward compatibility' is explained in the CUDA support by release documentation. As it sa...

10 Monate ago | 0

| accepted

Answered
gpuArray/imresize Input array has too many elements
There is a size limitation for gpuArray/imresize of <= 2^27 elements which is only documented in help text. >> help gpuArray/im...

10 Monate ago | 0

| accepted

Answered
GPU vs. CPU in training time
Use the DispatchInBackground training option to improve throughput when your data access and preprocessing is costly.

11 Monate ago | 0

| accepted

Answered
Background Data Dispatch with Custom Training Loop
Use a minibatchqueue with the DispatchInBackground option.

11 Monate ago | 0

| accepted

Answered
The function trainNetwork is slow during startup - what is the cause?
Your validation set is huge. I suspect that what's taking time is the computation of the first validation accuracy metric. If fi...

11 Monate ago | 0

| accepted

Answered
GPU error + Working with total XTrain data in custom training loop
The error is telling you you can't process all your data at once because you don't have enough GPU memory. You either have to us...

12 Monate ago | 1

Answered
Is there any work around the error "Array concatenation is not supported"?
Yeah, you can't do anything with arrays in GPU arrayfun, only scalars. You have some options: Reimplement with a loop instead o...

12 Monate ago | 0

Answered
Error using gpuArray Maximum variable size allowed on the device is exceeded.
The NVIDIA libraries that MATLAB uses to do GPU computation store array lengths as 32-bit integers and therefore MATLAB cannot u...

12 Monate ago | 1

Answered
I have problem with clear GPU memory
MATLAB does not clear all GPU memory unless all variables are released because allocating memory is a performance bottleneck. So...

12 Monate ago | 1

Answered
RTX 3080 recompiling issue in Matlab 2020a
Does MATLAB support NVIDIA Ampere cards for GPU computation? You should follow the advice on the GPU support by release page ca...

12 Monate ago | 0

Answered
How to execute several backslash operations in parallel on GPU?
Try using gpuArray/pagefun before you resort to code generation.

12 Monate ago | 0

Answered
Where does the file"mex_CUDA_win64.xml " exist in Matlab2020a?
The correct method for compiling GPU MEX functions for many years now has been to use the utility mexcuda, which does not requir...

etwa ein Jahr ago | 0

Answered
How do I substitute all the activation functions of a neural network?
It looks as though you've replaced every relu layer with multiple other layers. This will make your network deeper. The deeper t...

etwa ein Jahr ago | 0

Answered
Using mex with CUDA
Hi Jack. I expect the answer to this question is that you have installed a more recent version of the CUDA toolkit, specifically...

etwa ein Jahr ago | 0

Load more