#NEWLINE# def culaGetExecutingDevice( ) : #NEWLINE# #INDENT# '\n    Reports the id of the GPU device used by CULA.\n\n    Returns\n    -------\n    dev : int\n       Device id.\n\n    ' #NEWLINE# dev = ctypes . c_int ( ) #NEWLINE# status = _libcula . culaGetExecutingDevice ( ctypes . byref ( dev ) ) #NEWLINE# culaCheckStatus ( dev ) #NEWLINE# return dev . value