Skip to content

Instantly share code, notes, and snippets.

@majosm
Created February 15, 2021 21:24
Show Gist options
  • Save majosm/dbe725d9852e985b43e2bc9e8c366f26 to your computer and use it in GitHub Desktop.
Save majosm/dbe725d9852e985b43e2bc9e8c366f26 to your computer and use it in GitHub Desktop.
tracemalloc output w/ zero RHS
/path/to/misc/tools/miniconda3/envs/emirge-diffusion-memory-issue/lib/python3.8/site-packages/numpy/__init__.py:287: size=1286 KiB, count=25806, average=51 B
File "/path/to/misc/tools/miniconda3/envs/emirge-diffusion-memory-issue/lib/python3.8/site-packages/numpy/__init__.py", line 287
warnings.warn(msg, DeprecationWarning, stacklevel=2)
/path/to/misc/tools/miniconda3/envs/emirge-diffusion-memory-issue/lib/python3.8/warnings.py:405: size=906 KiB, count=12877, average=72 B
File "/path/to/misc/tools/miniconda3/envs/emirge-diffusion-memory-issue/lib/python3.8/warnings.py", line 405
self.message = message
/path/to/misc/tools/miniconda3/envs/emirge-diffusion-memory-issue/lib/python3.8/warnings.py:412: size=425 KiB, count=6500, average=67 B
File "/path/to/misc/tools/miniconda3/envs/emirge-diffusion-memory-issue/lib/python3.8/warnings.py", line 412
self._category_name = category.__name__ if category else None
/path/to/misc/tools/miniconda3/envs/emirge-diffusion-memory-issue/lib/python3.8/warnings.py:112: size=53.2 KiB, count=1, average=53.2 KiB
File "/path/to/misc/tools/miniconda3/envs/emirge-diffusion-memory-issue/lib/python3.8/warnings.py", line 112
_showwarnmsg_impl(msg)
/path/to/misc/tools/miniconda3/envs/emirge-diffusion-memory-issue/lib/python3.8/site-packages/pyopencl/array.py:417: size=1315 B, count=2, average=658 B
File "/path/to/misc/tools/miniconda3/envs/emirge-diffusion-memory-issue/lib/python3.8/site-packages/pyopencl/array.py", line 417
def __init__(self, cq, shape, dtype, order="C", allocator=None,
/path/to/emirge/emirge-diffusion-memory-issue/meshmode/meshmode/dof_array.py:242: size=1089 B, count=2, average=544 B
File "/path/to/emirge/emirge-diffusion-memory-issue/meshmode/meshmode/dof_array.py", line 242
def _bop(self, f, op1, op2):
<generated code>:6: size=707 B, count=4, average=177 B
File "<generated code>", line 6
/path/to/misc/tools/miniconda3/envs/emirge-diffusion-memory-issue/lib/python3.8/site-packages/numpy/__init__.py:266: size=416 B, count=2, average=208 B
File "/path/to/misc/tools/miniconda3/envs/emirge-diffusion-memory-issue/lib/python3.8/site-packages/numpy/__init__.py", line 266
def __getattr__(attr):
/path/to/misc/tools/miniconda3/envs/emirge-diffusion-memory-issue/lib/python3.8/site-packages/pyopencl/array.py:50: size=410 B, count=2, average=205 B
File "/path/to/misc/tools/miniconda3/envs/emirge-diffusion-memory-issue/lib/python3.8/site-packages/pyopencl/array.py", line 50
def _get_common_dtype(obj1, obj2, queue):
/path/to/misc/tools/miniconda3/envs/emirge-diffusion-memory-issue/lib/python3.8/site-packages/pyopencl/array.py:507: size=360 B, count=4, average=90 B
File "/path/to/misc/tools/miniconda3/envs/emirge-diffusion-memory-issue/lib/python3.8/site-packages/pyopencl/array.py", line 507
self.queue = queue
/path/to/misc/tools/miniconda3/envs/emirge-diffusion-memory-issue/lib/python3.8/site-packages/pyopencl/array.py:167: size=281 B, count=2, average=140 B
File "/path/to/misc/tools/miniconda3/envs/emirge-diffusion-memory-issue/lib/python3.8/site-packages/pyopencl/array.py", line 167
def kernel_runner(*args, **kwargs):
/path/to/misc/tools/miniconda3/envs/emirge-diffusion-memory-issue/lib/python3.8/warnings.py:96: size=242 B, count=2, average=121 B
File "/path/to/misc/tools/miniconda3/envs/emirge-diffusion-memory-issue/lib/python3.8/warnings.py", line 96
def _showwarnmsg(msg):
/path/to/emirge/emirge-diffusion-memory-issue/meshmode/meshmode/dof_array.py:135: size=222 B, count=2, average=111 B
File "/path/to/emirge/emirge-diffusion-memory-issue/meshmode/meshmode/dof_array.py", line 135
def __init__(self, actx: Optional[ArrayContext], data: Tuple[Any]):
/path/to/misc/tools/miniconda3/envs/emirge-diffusion-memory-issue/lib/python3.8/site-packages/pyopencl/array.py:611: size=209 B, count=2, average=104 B
File "/path/to/misc/tools/miniconda3/envs/emirge-diffusion-memory-issue/lib/python3.8/site-packages/pyopencl/array.py", line 611
def _get_sizes(self, queue, kernel_specific_max_wg_size=None):
/path/to/misc/tools/miniconda3/envs/emirge-diffusion-memory-issue/lib/python3.8/site-packages/pyopencl/array.py:1019: size=207 B, count=2, average=104 B
File "/path/to/misc/tools/miniconda3/envs/emirge-diffusion-memory-issue/lib/python3.8/site-packages/pyopencl/array.py", line 1019
def __add__(self, other):
/path/to/emirge/emirge-diffusion-memory-issue/meshmode/meshmode/dof_array.py:191: size=192 B, count=4, average=48 B
File "/path/to/emirge/emirge-diffusion-memory-issue/meshmode/meshmode/dof_array.py", line 191
return DOFArray(self.array_context, tuple(data))
/path/to/emirge/emirge-diffusion-memory-issue/meshmode/meshmode/dof_array.py:142: size=168 B, count=3, average=56 B
File "/path/to/emirge/emirge-diffusion-memory-issue/meshmode/meshmode/dof_array.py", line 142
self.array_context = actx
/path/to/misc/tools/miniconda3/envs/emirge-diffusion-memory-issue/lib/python3.8/site-packages/pyopencl/tools.py:76: size=161 B, count=2, average=80 B
File "/path/to/misc/tools/miniconda3/envs/emirge-diffusion-memory-issue/lib/python3.8/site-packages/pyopencl/tools.py", line 76
@decorator
/path/to/misc/tools/miniconda3/envs/emirge-diffusion-memory-issue/lib/python3.8/site-packages/pyopencl/array.py:850: size=160 B, count=2, average=80 B
File "/path/to/misc/tools/miniconda3/envs/emirge-diffusion-memory-issue/lib/python3.8/site-packages/pyopencl/array.py", line 850
@staticmethod
/path/to/misc/tools/miniconda3/envs/emirge-diffusion-memory-issue/lib/python3.8/site-packages/pyopencl/array.py:534: size=144 B, count=2, average=72 B
File "/path/to/misc/tools/miniconda3/envs/emirge-diffusion-memory-issue/lib/python3.8/site-packages/pyopencl/array.py", line 534
self.base_data = cl.Buffer(
/path/to/misc/tools/miniconda3/envs/emirge-diffusion-memory-issue/lib/python3.8/site-packages/pyopencl/__init__.py:1358: size=126 B, count=2, average=63 B
File "/path/to/misc/tools/miniconda3/envs/emirge-diffusion-memory-issue/lib/python3.8/site-packages/pyopencl/__init__.py", line 1358
def result(self):
/path/to/misc/tools/miniconda3/envs/emirge-diffusion-memory-issue/lib/python3.8/site-packages/pyopencl/array.py:839: size=124 B, count=2, average=62 B
File "/path/to/misc/tools/miniconda3/envs/emirge-diffusion-memory-issue/lib/python3.8/site-packages/pyopencl/array.py", line 839
@staticmethod
/path/to/misc/tools/miniconda3/envs/emirge-diffusion-memory-issue/lib/python3.8/site-packages/pytools/__init__.py:633: size=114 B, count=2, average=57 B
File "/path/to/misc/tools/miniconda3/envs/emirge-diffusion-memory-issue/lib/python3.8/site-packages/pytools/__init__.py", line 633
@my_decorator
<generated code>:29: size=104 B, count=1, average=104 B
File "<generated code>", line 29
/path/to/misc/tools/miniconda3/envs/emirge-diffusion-memory-issue/lib/python3.8/site-packages/pyopencl/array.py:1564: size=101 B, count=2, average=50 B
File "/path/to/misc/tools/miniconda3/envs/emirge-diffusion-memory-issue/lib/python3.8/site-packages/pyopencl/array.py", line 1564
def add_event(self, evt):
<generated code>:33: size=88 B, count=1, average=88 B
File "<generated code>", line 33
<generated code>:35: size=80 B, count=1, average=80 B
File "<generated code>", line 35
<decorator-gen-11>:1: size=73 B, count=2, average=36 B
File "<decorator-gen-11>", line 1
<decorator-gen-10>:1: size=72 B, count=2, average=36 B
File "<decorator-gen-10>", line 1
/path/to/emirge/emirge-diffusion-memory-issue/meshmode/meshmode/dof_array.py:190: size=72 B, count=2, average=36 B
File "/path/to/emirge/emirge-diffusion-memory-issue/meshmode/meshmode/dof_array.py", line 190
def _like_me(self, data):
<decorator-gen-11>:2: size=72 B, count=1, average=72 B
File "<decorator-gen-11>", line 2
<decorator-gen-36>:1: size=69 B, count=2, average=34 B
File "<decorator-gen-36>", line 1
/path/to/misc/tools/miniconda3/envs/emirge-diffusion-memory-issue/lib/python3.8/site-packages/pyopencl/__init__.py:866: size=67 B, count=2, average=34 B
File "/path/to/misc/tools/miniconda3/envs/emirge-diffusion-memory-issue/lib/python3.8/site-packages/pyopencl/__init__.py", line 866
def kernel_get_work_group_info(self, param, device):
/path/to/misc/tools/miniconda3/envs/emirge-diffusion-memory-issue/lib/python3.8/site-packages/pyopencl/array.py:1125: size=64 B, count=2, average=32 B
File "/path/to/misc/tools/miniconda3/envs/emirge-diffusion-memory-issue/lib/python3.8/site-packages/pyopencl/array.py", line 1125
def __rmul__(self, scalar):
/path/to/misc/tools/miniconda3/envs/emirge-diffusion-memory-issue/lib/python3.8/site-packages/pyopencl/array.py:190: size=64 B, count=1, average=64 B
File "/path/to/misc/tools/miniconda3/envs/emirge-diffusion-memory-issue/lib/python3.8/site-packages/pyopencl/array.py", line 190
return knl(queue, gs, ls, *args, wait_for=wait_for)
/path/to/misc/tools/miniconda3/envs/emirge-diffusion-memory-issue/lib/python3.8/site-packages/pyopencl/array.py:556: size=48 B, count=2, average=24 B
File "/path/to/misc/tools/miniconda3/envs/emirge-diffusion-memory-issue/lib/python3.8/site-packages/pyopencl/array.py", line 556
@property
/path/to/misc/tools/miniconda3/envs/emirge-diffusion-memory-issue/lib/python3.8/site-packages/pyopencl/array.py:977: size=48 B, count=1, average=48 B
File "/path/to/misc/tools/miniconda3/envs/emirge-diffusion-memory-issue/lib/python3.8/site-packages/pyopencl/array.py", line 977
return self.__class__(queue, self.shape, dtype,
/path/to/emirge/emirge-diffusion-memory-issue/meshmode/meshmode/dof_array.py:270: size=40 B, count=2, average=20 B
File "/path/to/emirge/emirge-diffusion-memory-issue/meshmode/meshmode/dof_array.py", line 270
def __rmul__(self, arg): return self._bop(op.mul, arg, self) # noqa: E704
/path/to/emirge/emirge-diffusion-memory-issue/meshmode/meshmode/dof_array.py:265: size=40 B, count=2, average=20 B
File "/path/to/emirge/emirge-diffusion-memory-issue/meshmode/meshmode/dof_array.py", line 265
def __add__(self, arg): return self._bop(op.add, self, arg) # noqa: E704
/path/to/emirge/emirge-diffusion-memory-issue/meshmode/meshmode/dof_array.py:177: size=37 B, count=2, average=18 B
File "/path/to/emirge/emirge-diffusion-memory-issue/meshmode/meshmode/dof_array.py", line 177
def __len__(self):
/path/to/misc/tools/miniconda3/envs/emirge-diffusion-memory-issue/lib/python3.8/abc.py:96: size=37 B, count=2, average=18 B
File "/path/to/misc/tools/miniconda3/envs/emirge-diffusion-memory-issue/lib/python3.8/abc.py", line 96
def __instancecheck__(cls, instance):
/path/to/misc/tools/miniconda3/envs/emirge-diffusion-memory-issue/lib/python3.8/site-packages/pyopencl/array.py:1571: size=32 B, count=1, average=32 B
File "/path/to/misc/tools/miniconda3/envs/emirge-diffusion-memory-issue/lib/python3.8/site-packages/pyopencl/array.py", line 1571
self.events.append(evt)
/path/to/emirge/emirge-diffusion-memory-issue/mirgecom/test/test_diffusion_tracemalloc.py:302: size=28 B, count=1, average=28 B
File "/path/to/emirge/emirge-diffusion-memory-issue/mirgecom/test/test_diffusion_tracemalloc.py", line 302
for istep in range(nsteps):
/path/to/misc/tools/miniconda3/envs/emirge-diffusion-memory-issue/lib/python3.8/site-packages/pyopencl/array.py:517: size=28 B, count=1, average=28 B
File "/path/to/misc/tools/miniconda3/envs/emirge-diffusion-memory-issue/lib/python3.8/site-packages/pyopencl/array.py", line 517
alloc_nbytes = self.nbytes = self.dtype.itemsize * self.size
/path/to/misc/tools/miniconda3/envs/emirge-diffusion-memory-issue/lib/python3.8/site-packages/pyopencl/array.py:461: size=28 B, count=1, average=28 B
File "/path/to/misc/tools/miniconda3/envs/emirge-diffusion-memory-issue/lib/python3.8/site-packages/pyopencl/array.py", line 461
size *= dim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment