Hi Tyler,

Tyler Hardin <[email protected]> writes:
> Hi all, I'm writing an opencl kernel to find maximal cliques. The kernel
> selects a node by the thread gid and finds the max subgraph containing that
> node. Unfortunately, around 10000 nodes, I get an out of memory error. The
> program is for one of my math professors and tests a conjecture of his, so
> I can't post the code in it's entirety, but I'll give a simplified example.
>
> I've tried cutting down the size of the static arrays in the functions that
> have them. Is there anything else I can do other than get a card with more
> memory?

where is your out-of-memory error occurring? From your description, it
sounds like it is happening when you call your kernel. Note that OpenCL
implementations may (and do) defer memory allocation until the first use
of the memory, so your kernel likely has little to do with this. (You
can see this by zero-filling the arrays, or even small parts of them.)

So, while this is not what what you wanted to hear, if the buffers you
allocate do not fit onto the GPU that you have, you may need to buy a
bigger card.

If you're using an AMD GPU, note that there are some environment
variables that control how much graphics memory is available (see the
AMD developer guide).

HTH,
Andreas

Attachment: pgp4eORbEhGUr.pgp
Description: PGP signature

_______________________________________________
PyOpenCL mailing list
[email protected]
http://lists.tiker.net/listinfo/pyopencl

Reply via email to