title: PyCUDA: Querying Device Status (Memory specifically)
body: <p>PyCUDA's documentation mentions <a href="http://documen.tician.de/pycuda/driver.html" rel="noreferrer">Driver Interface</a> calls in passing, but I'm a bit think and can't see how to get information such as 'SHARED_SIZE_BYTES' out of my code. </p>
  
  <p>Can anyone point me to any examples of querying the device in this way? </p>
  
  <p>Is it possible to / How do I check the device state (eg between malloc/memcpy and kernel launch) to implement some machine-dynamic operations? (I want to be able to deal with devices that support multiple kernels in a 'friendly' way.</p>