Closed robintw closed 8 years ago
Just for reference, this works fine with smaller array sizes, so I suspect it is due to my rubbish graphics card (I know very little about GPUs, but apparently a GeForce 320M is not good!)
Yes, that is essentially an out of memory error. You can find out about the maximal allocatable memory of the used by printing the device info like so
gputools.get_device().print_info()
I've been testing
convolve
and comparing it to thendimage
implementation. Running the following code:import gputools import numpy as np img = np.random.rand(10000, 10000) kernel = np.ones((3, 3)) res = gputools.convolve(img, kernel)
Gives the error below. I assume this is due to my GPU not having enough space to store this array - is that correct? The array is around 762Mb, so I guess that might be too large?