Skip to main content
edited tags
Link
Michael E2
  • 244.8k
  • 18
  • 351
  • 774
added 61 characters in body
Source Link
ilian
  • 25.5k
  • 4
  • 117
  • 187

Bug introduced in 10.0.0 and fixed in 10.2.0.


I wrote a routine that convolves an impulse response array with a test array and checks for the RMS difference between that convolution and a data array. I do this iteratively so that I can modify the test array to obtain an improved fit to the data and eventually generate a good prediction of the test array required to produce the data.

I noticed that my memory in use increases steadily (I've narrowed it down to the ListConvolve function) and I'm hoping someone knows how to mitigate this memory drain.

Here is a simplified code to demonstrate this effect:

z = 1;
herp = Table[1, {i, 1, 10^2}];
derp = Table[0, {i, 1, 10^2}];
Monitor[
 While[z < 10^6,

  ListConvolve[derp, herp, 1];

  z++;
  blurg = MemoryInUse[];
  ClearSystemCache[];
  $HistoryLength = 0;
 ];
,{z, blurg}];

Removing the ListConvolve part of the code leaves the memory in use flat.

Any help is greatly appreciated!

I wrote a routine that convolves an impulse response array with a test array and checks for the RMS difference between that convolution and a data array. I do this iteratively so that I can modify the test array to obtain an improved fit to the data and eventually generate a good prediction of the test array required to produce the data.

I noticed that my memory in use increases steadily (I've narrowed it down to the ListConvolve function) and I'm hoping someone knows how to mitigate this memory drain.

Here is a simplified code to demonstrate this effect:

z = 1;
herp = Table[1, {i, 1, 10^2}];
derp = Table[0, {i, 1, 10^2}];
Monitor[
 While[z < 10^6,

  ListConvolve[derp, herp, 1];

  z++;
  blurg = MemoryInUse[];
  ClearSystemCache[];
  $HistoryLength = 0;
 ];
,{z, blurg}];

Removing the ListConvolve part of the code leaves the memory in use flat.

Any help is greatly appreciated!

Bug introduced in 10.0.0 and fixed in 10.2.0.


I wrote a routine that convolves an impulse response array with a test array and checks for the RMS difference between that convolution and a data array. I do this iteratively so that I can modify the test array to obtain an improved fit to the data and eventually generate a good prediction of the test array required to produce the data.

I noticed that my memory in use increases steadily (I've narrowed it down to the ListConvolve function) and I'm hoping someone knows how to mitigate this memory drain.

Here is a simplified code to demonstrate this effect:

z = 1;
herp = Table[1, {i, 1, 10^2}];
derp = Table[0, {i, 1, 10^2}];
Monitor[
 While[z < 10^6,

  ListConvolve[derp, herp, 1];

  z++;
  blurg = MemoryInUse[];
  ClearSystemCache[];
  $HistoryLength = 0;
 ];
,{z, blurg}];

Removing the ListConvolve part of the code leaves the memory in use flat.

Any help is greatly appreciated!

edited tags
Link
Oleksandr R.
  • 23.1k
  • 4
  • 87
  • 126
Tweeted twitter.com/#!/StackMma/status/585993169789136896
edited tags
Link
Daniel Lichtblau
  • 60.3k
  • 2
  • 105
  • 201
Loading
Source Link
Loading