Tag Info

New answers tagged

1

Here is another try, this time more close to what you actually wanted: It generates a list of buttons for the largest cells (button is labeled with size in kB). If you press a button, the corresponding cell will be selected. You can change the number of rows to show if you wish. The code needs the CellIDs to be set, so it has buttons to create and delete ...


2

The code below does not exactly what you have asked for, but it should contain the relevant stuff. To create an index ordered by cell sizes I think it would be easiest to set CreateCellID to True for your notebook. To create ids for the existing cells you'd have to "Cut" and "Paste" all of them once, new cells will automatically get an unique CellID. Then ...


2

One way to think about it that explains why it isn't a problem is to consider how setting a variable works in Mathematica. var = value is a shorthand syntax for Set[var, value]. Set has the attribute HoldFirst. This means that if var = 10 and value = 5 then the first thing that will happen as you write Set[var,value] is that it will be rewritten as Set[var, ...


1

This is likely primarily due to array unpacking. See here: What is a Mathematica packed array? list1 takes only ByteCount[list1] (* 200000144 *) space when packed, but this increases to ByteCount@Developer`FromPackedArray[list1] (* 600000080 *) when unpacking. It's the same for list2, so the total rises to 1.2 GB. Make a rule list out of these ...


2

I believe that CUDALink uses cuBLAS from NVIDIA. cuBLAS has a memory leak when a handle is free'd. When running some code that I wrote which calls cuBLAS directly, I need to do a device reset about every 5 to 10 times that I free a handle to force the memory to be free'd. This problem has been documented on the NVIDIA forums.



Top 50 recent answers are included