Respondida
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...

más de 5 años hace | 1

| aceptada

Respondida
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(...

más de 5 años hace | 0

| aceptada

Respondida
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...

más de 5 años hace | 0

| aceptada

Respondida
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...

más de 5 años hace | 0

Respondida
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'.

más de 5 años hace | 0

| aceptada

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

más de 5 años hace | 0

| aceptada

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

más de 5 años hace | 0

Respondida
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...

más de 5 años hace | 0

| aceptada

Respondida
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.

más de 5 años hace | 0

Respondida
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 ...

más de 5 años hace | 1

| aceptada

Respondida
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...

más de 5 años hace | 1

| aceptada

Respondida
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...

más de 5 años hace | 1

| aceptada

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

más de 5 años hace | 0

| aceptada

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

más de 5 años hace | 0

| aceptada

Respondida
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...

más de 5 años hace | 1

| aceptada

Respondida
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...

más de 5 años hace | 0

Respondida
The CUDA driver must recompile the GPU libraries
There isn't really much to say. This 'forward compatibility' is explained in the GPU Computing Requirements documentation. As it...

más de 5 años hace | 0

| aceptada

Respondida
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...

más de 5 años hace | 0

| aceptada

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

más de 5 años hace | 0

| aceptada

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

más de 5 años hace | 0

| aceptada

Respondida
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...

más de 5 años hace | 0

| aceptada

Respondida
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...

más de 5 años hace | 1

Respondida
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...

más de 5 años hace | 0

Respondida
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...

más de 5 años hace | 2

Respondida
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...

más de 5 años hace | 2

Respondida
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...

más de 5 años hace | 0

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

más de 5 años hace | 0

Respondida
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...

casi 6 años hace | 0

Respondida
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...

casi 6 años hace | 0

Respondida
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...

casi 6 años hace | 0

Cargar más