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
Hi, I had some issue to run devito, please see below codes:
(Looks like once I added from devito.checkpointing import *, the error will come out.
Error:
`
Trying to allocate more memory for symbol u than available on physical device, this will start swapping
TypeError Traceback (most recent call last)
/tmp/ipykernel_82665/464761434.py in
43
44 # For illustrative purposes, assuming that there is enough memory
---> 45 op_imaging = ImagingOperator(model, geometry, image, space_order)
46
47 vv = TimeFunction(name='vv', grid=model.grid, staggered=None, time_order=2, space_order=space_order)
/tmp/ipykernel_82665/2604718868.py in ImagingOperator(model, geometry, image, space_order, save)
23 image_update = Eq(image, image - u * v)
24
---> 25 op = Operator(([stencil] + res_term + [image_update]), subs=model.spacing_map)
26 return op
27
TypeError: Operator() takes no arguments
`
Here are all codes related to this:
Hi, I had some issue to run devito, please see below codes:
(Looks like once I added
from devito.checkpointing import *
, the error will come out.Error:
`
Trying to allocate more memory for symbol u than available on physical device, this will start swapping
TypeError Traceback (most recent call last)
/tmp/ipykernel_82665/464761434.py in
43
44 # For illustrative purposes, assuming that there is enough memory
---> 45 op_imaging = ImagingOperator(model, geometry, image, space_order)
46
47 vv = TimeFunction(name='vv', grid=model.grid, staggered=None, time_order=2, space_order=space_order)
/tmp/ipykernel_82665/2604718868.py in ImagingOperator(model, geometry, image, space_order, save)
23 image_update = Eq(image, image - u * v)
24
---> 25 op = Operator(([stencil] + res_term + [image_update]), subs=model.spacing_map)
26 return op
27
TypeError: Operator() takes no arguments
`
Here are all codes related to this:
`def ImagingOperator(model, geometry, image, space_order, save=True):
`
then
op_imaging = ImagingOperator(model, geometry, image, space_order, save=False)
Thanks.
The text was updated successfully, but these errors were encountered: