Réponse apportée
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...

plus de 5 ans il y a | 1

| A accepté

Réponse apportée
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(...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 5 ans il y a | 0

Réponse apportée
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'.

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
mexcuda in ubuntu error
Try mexcuda -lcublas GEMM_GPU.cu

plus de 5 ans il y a | 0

| A accepté

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

plus de 5 ans il y a | 0

Réponse apportée
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...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
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.

plus de 5 ans il y a | 0

Réponse apportée
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 ...

plus de 5 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 5 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 5 ans il y a | 1

| A accepté

Réponse apportée
Code optimization with GPU
I = reshape(gpuArray.eye(q),q,1,q); U = I.*my_line_vector;

plus de 5 ans il y a | 0

| A accepté

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

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 5 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 5 ans il y a | 0

Réponse apportée
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...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
GPU vs. CPU in training time
Use the DispatchInBackground training option to improve throughput when your data access and preprocessing is costly.

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Background Data Dispatch with Custom Training Loop
Use a minibatchqueue with the DispatchInBackground option.

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 6 ans il y a | 1

Réponse apportée
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...

presque 6 ans il y a | 0

Réponse apportée
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...

presque 6 ans il y a | 2

Réponse apportée
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...

presque 6 ans il y a | 2

Réponse apportée
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...

presque 6 ans il y a | 0

Réponse apportée
How to execute several backslash operations in parallel on GPU?
Try using gpuArray/pagefun before you resort to code generation.

presque 6 ans il y a | 0

Réponse apportée
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...

environ 6 ans il y a | 0

Réponse apportée
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...

environ 6 ans il y a | 0

Réponse apportée
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...

environ 6 ans il y a | 0

Charger plus