Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call Py_DECREF after using PyObject_GetAttrString in intel driver #3077

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

anmyachev
Copy link
Contributor

@anmyachev anmyachev commented Dec 28, 2024

I'm not sure that the whole problem is in the use of this particular function, but I haven't found any other problem areas yet.

@anmyachev anmyachev linked an issue Dec 28, 2024 that may be closed by this pull request
int num_ctas = PyLong_AsLong(PyObject_GetAttrString(kernel_metadata, "num_ctas"));
int shared_memory = PyLong_AsLong(PyObject_GetAttrString(kernel_metadata, "shared"));
int threads_per_warp = PyLong_AsLong(PyObject_GetAttrString(kernel_metadata, "threads_per_warp"));
PyObject *num_warps_attr = PyObject_GetAttrString(kernel_metadata, "num_warps");
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

// return None
Py_INCREF(Py_None);
return Py_None;
Py_RETURN_NONE;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to align with nvidia

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Flaky runtime/test_launch.py::test_memory_leak
1 participant