NumSharp icon indicating copy to clipboard operation
NumSharp copied to clipboard

Memory Limitations

Open Nucs opened this issue 6 years ago • 2 comments

Allocation currently supports up to 2^32 bytes due to using int and not IntPtr and long.

Nucs avatar Aug 08 '19 15:08 Nucs

Unit test

[TestMethod]
public void MyTestMethod()
{
    NDArray x = np.zeros(new Shape(600, 1000, 1000), np.float32);
}

Nucs avatar Aug 08 '19 15:08 Nucs

Ported UnmanagedMemoryBlock and ArraySlice to use long in commit https://github.com/SciSharp/NumSharp/commit/539683f23af53a8b1e31023f8472880cbcc69517 . Next is to port Shape to use long and all the algorithms with it. Mainly refactoring job

Nucs avatar Aug 12 '19 13:08 Nucs