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

Unable to allocate 381. MiB for an array with shape #1

Open
wane406 opened this issue May 27, 2020 · 0 comments
Open

Unable to allocate 381. MiB for an array with shape #1

wane406 opened this issue May 27, 2020 · 0 comments

Comments

@wane406
Copy link

wane406 commented May 27, 2020

Traceback (most recent call last):
File "C:\Users\wane\Downloads\negative-mass-simulator-master\negative-mass-simulator-master\pipe.py", line 26, in
run_nbody()
File "C:\Users\wane\Downloads\negative-mass-simulator-master\negative-mass-simulator-master\negmass_nbody\simulate\sim.py", line 164, in run_nbody
velocity = update_velocities(position, velocity, mass, G, epsilon)
File "C:\Users\wane\Downloads\negative-mass-simulator-master\negative-mass-simulator-master\negmass_nbody\simulate\sim.py", line 98, in update_velocities
velocity = np.column_stack((velocity_x.compute(), velocity_y.compute(), velocity_z.compute()))
File "C:\Users\wane\AppData\Local\Programs\Python\Python37\lib\site-packages\dask\base.py", line 166, in compute
(result,) = compute(self, traverse=False, **kwargs)
File "C:\Users\wane\AppData\Local\Programs\Python\Python37\lib\site-packages\dask\base.py", line 444, in compute
results = schedule(dsk, keys, **kwargs)
File "C:\Users\wane\AppData\Local\Programs\Python\Python37\lib\site-packages\dask\threaded.py", line 84, in get
**kwargs
File "C:\Users\wane\AppData\Local\Programs\Python\Python37\lib\site-packages\dask\local.py", line 486, in get_async
raise_exception(exc, tb)
File "C:\Users\wane\AppData\Local\Programs\Python\Python37\lib\site-packages\dask\local.py", line 316, in reraise
raise exc
File "C:\Users\wane\AppData\Local\Programs\Python\Python37\lib\site-packages\dask\local.py", line 222, in execute_task
result = _execute_task(task, data)
File "C:\Users\wane\AppData\Local\Programs\Python\Python37\lib\site-packages\dask\core.py", line 121, in _execute_task
return func((_execute_task(a, cache) for a in args))
File "C:\Users\wane\AppData\Local\Programs\Python\Python37\lib\site-packages\dask\optimization.py", line 988, in call
return core.get(self.dsk, self.outkey, dict(zip(self.inkeys, args)))
File "C:\Users\wane\AppData\Local\Programs\Python\Python37\lib\site-packages\dask\core.py", line 151, in get
result = _execute_task(task, cache)
File "C:\Users\wane\AppData\Local\Programs\Python\Python37\lib\site-packages\dask\core.py", line 121, in _execute_task
return func(
(_execute_task(a, cache) for a in args))
MemoryError: Unable to allocate 381. MiB for an array with shape (10000, 10000) and data type float32

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

No branches or pull requests

1 participant