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

example program running error #46

Closed
ZhaoZelin2000 opened this issue Jun 13, 2024 · 1 comment
Closed

example program running error #46

ZhaoZelin2000 opened this issue Jun 13, 2024 · 1 comment

Comments

@ZhaoZelin2000
Copy link

python examples/CFD/cavity2d.py
'rm' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
WARNING:absl:Configured CheckpointManager using deprecated legacy API. Please follow the instructions at https://orbax.readthedocs.io/en/latest/api_refactor.html to migrate by August 1st, 2024.
**** Simulation Parameters for Cavity ****
Parameter | Value

            Omega | 1.2523481527864746
 Grid Points in X | 200
 Grid Points in Y | 200
 Grid Points in Z | 0
   Dimensionality | 2
 Precision Policy | f32/f32
     Lattice Type | D2Q9
  Checkpoint Rate | 1000

Checkpoint Directory | C:\Users\ZZL\Desktop\temp\XLB\checkpoints
Downsampling Factor | 1
Print Info Rate | 100
I/O Rate | 100
Compute MLUPS | False
Restore Checkpoint | False
Backend | cpu
Number of Devices | 1
Time to create the grid mask: 0.11803746223449707
Time to create the local masks and normal arrays: 0.3295261859893799
WARNING: Default initial conditions assumed: density = 1, velocity = 0
To set explicit initial density and velocity, use self.initialize_macroscopic_fields.
Timestep 0 of 5000 completed
Saving data at timestep 0/5000
Saved .\fields_0000000.vtk in 0.003017 seconds.
Saved .\BCs_0000000.vtk in 0.000519 seconds.
Saving checkpoint at timestep 0/5000
WARNING:absl:Attempted to create temporary directory C:\Users\ZZL\Desktop\temp\XLB\checkpoints\0.orbax-checkpoint-tmp-0 which already exists. Removing existing directory since it is not finalized.
Traceback (most recent call last):
File "C:\Users\ZZL\Desktop\temp\XLB\examples\CFD\cavity2d.py", line 96, in
sim.run(5000)
File "C:\Users\ZZL\Desktop\temp\XLB\src\base.py", line 928, in run
self.mngr.save(timestep, state)
File "D:\aruanjian\Python311\Lib\site-packages\orbax\checkpoint\checkpoint_manager.py", line 1110, in save
self._checkpointer.save(save_directory, args=args)
File "D:\aruanjian\Python311\Lib\site-packages\orbax\checkpoint\checkpointer.py", line 186, in save
self._handler.finalize(tmpdir)
File "D:\aruanjian\Python311\Lib\site-packages\orbax\checkpoint\composite_checkpoint_handler.py", line 514, in finalize
handler.finalize(self._get_item_directory(directory, item_name))
File "D:\aruanjian\Python311\Lib\site-packages\orbax\checkpoint\pytree_checkpoint_handler.py", line 759, in finalize
self._handler_impl.finalize(directory)
File "D:\aruanjian\Python311\Lib\site-packages\orbax\checkpoint\base_pytree_checkpoint_handler.py", line 1064, in finalize
type_handlers.merge_ocdbt_per_process_files(directory)
File "D:\aruanjian\Python311\Lib\site-packages\orbax\checkpoint\type_handlers.py", line 670, in merge_ocdbt_per_process_files
asyncio.run(open_and_copy())
File "D:\aruanjian\Python311\Lib\site-packages\nest_asyncio.py", line 30, in run
return loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\aruanjian\Python311\Lib\site-packages\nest_asyncio.py", line 98, in run_until_complete
return f.result()
^^^^^^^^^^
File "D:\aruanjian\Python311\Lib\asyncio\futures.py", line 203, in result
raise self._exception.with_traceback(self._exception_tb)
File "D:\aruanjian\Python311\Lib\asyncio\tasks.py", line 279, in __step
result = coro.throw(exc)
^^^^^^^^^^^^^^^
File "D:\aruanjian\Python311\Lib\site-packages\orbax\checkpoint\type_handlers.py", line 667, in open_and_copy
await asyncio.gather(*copy_ops)
File "D:\aruanjian\Python311\Lib\asyncio\tasks.py", line 349, in __wakeup
future.result()
File "D:\aruanjian\Python311\Lib\asyncio\tasks.py", line 279, in __step
result = coro.throw(exc)
^^^^^^^^^^^^^^^
File "D:\aruanjian\Python311\Lib\asyncio\tasks.py", line 694, in _wrap_awaitable
return (yield from awaitable.await())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\aruanjian\Python311\Lib\asyncio\futures.py", line 287, in await
yield self # This tells Task to wait for completion.
^^^^^^^^^^
File "D:\aruanjian\Python311\Lib\asyncio\tasks.py", line 349, in __wakeup
future.result()
File "D:\aruanjian\Python311\Lib\asyncio\futures.py", line 203, in result
raise self._exception.with_traceback(self._exception_tb)
NotImplementedError: CopyRange not supported

@ZhaoZelin2000 ZhaoZelin2000 changed the title Sample program running error example program running error Jun 13, 2024
@mehdiataei
Copy link
Contributor

You must use the version in the requirements.txt for the orbax. In the refactoring of the codebase we will update the orbax version.

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

2 participants