You can do this sort of thing but you can't use SODIMM slots because that places the actual memory chips too far away from the GPU. Instead what you need is something like BGA sockets (
https://www.nxp.com/design/design-center/development-boards/... ) which are
stupidly expensive (e.g. $600 per socket).