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
RuntimeError: (Unavailable) The parsing of ProcessMesh is not supported in the current PaddlePaddle, please recompile and installPaddlePaddle with the option of WITH_DISTRIBUTE=ON. (at /paddle/paddle/fluid/pybind/eager_utils.cc:694)
bug描述 Describe the Bug
跑一个小demo代码如下:
import paddle
import paddle.distributed as dist
mesh = dist.ProcessMesh([[2, 4, 5], [0, 1, 3]], dim_names=['x', 'y'])#这里是对设备的处理,定义了x,y两个维度
dense_tensor = paddle.to_tensor([[1,2,3],
[4,5,6],
[7,8,9],
[10,11,12]])
placements = [dist.Shard(0), dist.Shard(1)]#先按行切分,再按列切分
dist_tensor = dist.shard_tensor(dense_tensor, mesh, placements)
报错
RuntimeError: (Unavailable) The parsing of
ProcessMesh
is not supported in the current PaddlePaddle, please recompile and installPaddlePaddle with the option ofWITH_DISTRIBUTE=ON
. (at /paddle/paddle/fluid/pybind/eager_utils.cc:694)尝试
尝试过重新编译,加上WITH_DISTRIBUTE=ON,还是没有效果,也尝试过加上DWITH_DISTRIBUTE=ON,也没有效果,仍然报错,Paddle装的是dev版,Linux下源码编译
其他补充信息 Additional Supplementary Information
No response
The text was updated successfully, but these errors were encountered: