So, I'm not sure if I did something wrong, but this code https://gist.github.com/TimseineLPs/fad00f7a8ade87fbe141a161439dd703 always crashes when using more than 4GiB of RAM. (4,4GiB when compiled with debug, 4GiB with -d:release) I have 16GB of RAM installed, so that shouldn't be the issue.
I tried compiling both with the nim version supplied by the manjaro repositories and the latest version from github, the issue remains in both cases.
Traceback (most recent call last)
autoencoder.nim(94) autoencoder
autoencoder.nim(54) genAutoencoder
gc.nim(586) growObj
gc.nim(531) growObj
alloc.nim(785) rawAlloc
alloc.nim(590) getBigChunk
alloc.nim(569) splitChunk
alloc.nim(217) addChunkToMatrix
SIGSEGV: Illegal storage access. (Attempt to read from nil?)