Displaying a struct containing gpuArray fields takes an extremely long time
I find that when I create a struct (or object) whose fields are large gpuArrays, it takes an extremely long time (1-2 minutes) to display the struct at the command line. Example:
>> c.data=gpuArray.rand(266,354,894,’single’);
>> tic; c, toc
c =
struct with fields:
data: [266×354×894 gpuArray]
Elapsed time is 100.266106 seconds.
I have observed this in R2024b on two platforms,
(1) Windows 10; NVIDIA GeForce RTX 4080 SUPER
(2) Windows 11; NVIDIA RTX 5000 Ada Generation
Does anyone know why this might be happening?I find that when I create a struct (or object) whose fields are large gpuArrays, it takes an extremely long time (1-2 minutes) to display the struct at the command line. Example:
>> c.data=gpuArray.rand(266,354,894,’single’);
>> tic; c, toc
c =
struct with fields:
data: [266×354×894 gpuArray]
Elapsed time is 100.266106 seconds.
I have observed this in R2024b on two platforms,
(1) Windows 10; NVIDIA GeForce RTX 4080 SUPER
(2) Windows 11; NVIDIA RTX 5000 Ada Generation
Does anyone know why this might be happening? I find that when I create a struct (or object) whose fields are large gpuArrays, it takes an extremely long time (1-2 minutes) to display the struct at the command line. Example:
>> c.data=gpuArray.rand(266,354,894,’single’);
>> tic; c, toc
c =
struct with fields:
data: [266×354×894 gpuArray]
Elapsed time is 100.266106 seconds.
I have observed this in R2024b on two platforms,
(1) Windows 10; NVIDIA GeForce RTX 4080 SUPER
(2) Windows 11; NVIDIA RTX 5000 Ada Generation
Does anyone know why this might be happening? struct, gpuarray, display MATLAB Answers — New Questions