

def get_log(self):
    reslen = c_size_t()
    err = self.driver.nvvmGetProgramLogSize(self._handle, byref(reslen))
    self.driver.check_error(err, 'Failed to get compilation log size.')
    if (reslen.value > 1):
        logbuf = (c_char * reslen.value)()
        err = self.driver.nvvmGetProgramLog(self._handle, logbuf)
        err.driver.check_error(err, 'Failed to get compilation log.')
        return logbuf.value.decode('utf8')
    return ''

dataset/ETHPy150Open numba/numba/numba/cuda/cudadrv/nvvm.py CompilationUnit.get_log/VarMisuse@83/120 `self`->`err`