You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which triggers unless the program crashes or is interrupted. The streams should be deleted between Runtime start/stops.
My best guess here would be that there is another memory leak happening elsewhere.
When enough memory is leaked and with Parla() is called, it attempts to create 8*num_gpus streams but fails to find space and crashes.
(ParlaDemo) c196-011rtx$ python sample_sort.py -r 10 -w 5 -n 1000000 -gpu 2 -check 1 -m parla
USE_PYTHON_RUNAHEAD: True
CUPY_ENABLED: True
PREINIT_THREADS: True
DEFAULT SYNC: 0
Namespace(n=1000000, gpu=2, warm_up=5, runs=10, mode='parla', check=1)
[warmup] sample sort passed : True
[warmup] sample sort passed : True
[warmup] sample sort passed : True
[warmup] sample sort passed : True
[warmup] sample sort passed : True
Exception ignored in: <object repr() failed>
Traceback (most recent call last):
File "cupy/cuda/stream.pyx", line 481, in cupy.cuda.stream.Stream.del
AttributeError: 'Stream' object has no attribute 'ptr'
Traceback (most recent call last):
File "/home1/03727/tg830270/Research/parla-experimental/miniapps/samplesort/sample_sort.py", line 427, in
y = sort_func(x)
^^^^^^^^^^^^
File "/home1/03727/tg830270/Research/parla-experimental/miniapps/samplesort/sample_sort.py", line 281, in parla_sample_sort
with Parla():
^^^^^^^
File "/home1/03727/tg830270/miniconda3/envs/ParlaDemo/lib/python3.11/site-packages/parla/init.py", line 61, in init
self._device_manager = DeviceManager(dev_config_file)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "device_manager.pyx", line 151, in parla.cython.device_manager.PyDeviceManager.init
File "device_manager.pyx", line 90, in parla.cython.device_manager.StreamPool.init
File "device_manager.pyx", line 92, in parla.cython.device_manager.StreamPool.init
File "device.pyx", line 501, in parla.cython.device.CupyStream.init
File "device.pyx", line 503, in parla.cython.device.CupyStream.init
File "cupy/cuda/stream.pyx", line 471, in cupy.cuda.stream.Stream.init
File "cupy_backends/cuda/api/runtime.pyx", line 840, in cupy_backends.cuda.api.runtime.streamCreateWithFlags
File "cupy_backends/cuda/api/runtime.pyx", line 144, in cupy_backends.cuda.api.runtime.check_status
cupy_backends.cuda.api.runtime.CUDARuntimeError: cudaErrorMemoryAllocation: out of memory
The text was updated successfully, but these errors were encountered: