Dear Manish, MANISH AGRAWAL <manishagrawal.iit...@gmail.com> writes: > I am trying to implement electromagnetic simulations using PyOpenCl. The > memory that is used by the program varies and depends on user inputs. I was > looking for a way of profiling memory usage using PyOpenCl. There are tools > for querying the memory status for CUDA enabled devices but I am looking > for something which can be opted in general (AMD gpus or CPUs too).
There's nothing built in as of yet, but you could build something yourself, e.g. by monkeypatching the cl.Buffer constructor to instrument it. Or, if you're only interested in PyOpenCL's arrays, then you could simply use a custom allocator to instrument memory allocation. If you come up with some with something you think is worth sharing, please do submit a PR. Andreas
signature.asc
Description: PGP signature
_______________________________________________ PyOpenCL mailing list -- pyopencl@tiker.net To unsubscribe send an email to pyopencl-le...@tiker.net