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
运行代码其中一个节点如下:
`import os
import sys
import time
import logging
import multiprocess
from absl import app
import spu
import secretflow as sf
logging.basicConfig(stream=sys.stdout, level=logging.DEBUG)
运行代码其中一个节点如下:
`import os
import sys
import time
import logging
import multiprocess
from absl import app
import spu
import secretflow as sf
logging.basicConfig(stream=sys.stdout, level=logging.DEBUG)
cluster_config ={
'parties': {
'alice': {
'address': '10.200.3.32:8002',
'listen_addr': '0.0.0.0:8002'
},
'bob': {
'address': '10.200.3.33:8012',
'listen_addr': '0.0.0.0:8012'
},
'carol': {
'address': '10.200.3.34:8022',
'listen_addr': '0.0.0.0:8022'
},
},
'self_party': 'bob'
}
cluster_def = {
'nodes': [
{'party': 'alice', 'id': 'local:0', 'address': '10.200.3.32:12945'},
{'party': 'bob', 'id': 'local:1', 'address': '10.200.3.33:12946'},
{'party': 'carol', 'id': 'local:2', 'address': '10.200.3.34:12947'},
],
'runtime_config': {
'protocol': spu.spu_pb2.SEMI2K,
'field': spu.spu_pb2.FM128,
},
}
link_desc = {
'recv_timeout_ms': 3600000,
}
def main(_):
sf.init(address='10.200.3.33:8011', log_to_driver=True, cluster_config=cluster_config, omp_num_threads=multiprocess.cpu_count())
if name == 'main':
app.run(main)
`
运行卡在计算界面未出结果,其中两个节点的日志如下:
The text was updated successfully, but these errors were encountered: