基于 MPI 的多服务器时间校准(C++

人工智能 智能硬件 案例ID:204934
Catherine喜洋洋
3 年经验· 德州仪器
微信扫码沟通,客服可协助直接对接工程师;如当前档期不合,也可继续推荐相似案例作者。

案例介绍

there is a server A 10.10.70.200 and server tb 10.10.70.201:

1. record current timestamp TA[n-1](use RDTSC time counter), call GstRouterSend(GstRouterSend is actually MPI_Send with some wrapper) in GstRouterOMPI.cpp to send timestamp data to server tb 10.10.70.201
2. after sending successfully, call GstRouterRecv in GstRouterOMPI.cpp to receive the timestamp data sent by server tb(use RDTSC time counter)
3. after receiving successfully, resolve and record the timestamp Ttb[n-1](RDTSC counter) of server tb to record current timestamp(RDTSC counter) TA[n]
4. when the above steps are done, loop back to step 1, do the operaton N times according to the loop number N
when the aboves are done, server A could get all the data in {TA[n]} and {Ttb[n]}, thus get the estimation value of C. the equation for estimating C is as below:
d= (sum of (TA[n]-TA[n-1]) from n=1 to n=N)/2N;
C= (sum of (TA[n] - Ttb[n-1]) from n=1 to n=N)/N - d;
5. dump nodename.dat files to record the following information

基于 MPI 的多服务器时间校准(C++

人工智能 · 智能硬件 案例ID:204934
联系该工程师
微信扫码,建群沟通
作者: Catherine喜洋洋 - 3年经验- 德州仪器

案例介绍

there is a server A 10.10.70.200 and server tb 10.10.70.201:

1. record current timestamp TA[n-1](use RDTSC time counter), call GstRouterSend(GstRouterSend is actually MPI_Send with some wrapper) in GstRouterOMPI.cpp to send timestamp data to server tb 10.10.70.201
2. after sending successfully, call GstRouterRecv in GstRouterOMPI.cpp to receive the timestamp data sent by server tb(use RDTSC time counter)
3. after receiving successfully, resolve and record the timestamp Ttb[n-1](RDTSC counter) of server tb to record current timestamp(RDTSC counter) TA[n]
4. when the above steps are done, loop back to step 1, do the operaton N times according to the loop number N
when the aboves are done, server A could get all the data in {TA[n]} and {Ttb[n]}, thus get the estimation value of C. the equation for estimating C is as below:
d= (sum of (TA[n]-TA[n-1]) from n=1 to n=N)/2N;
C= (sum of (TA[n] - Ttb[n-1]) from n=1 to n=N)/N - d;
5. dump nodename.dat files to record the following information

相似案例推荐

发布任务

企业点击发布任务,工程师会在任务下报名,招聘专员也会在 1 小时内与您联系确认。

1小时精推人才

需求方专属客服,免费梳理匹配

需求方客服微信二维码
扫码加微信 · 客服人工对接
更多案例
微信沟通 客服 看中这位工程师了?客服帮你 1 小时对接沟通 → ×