m**c 发帖数: 90 | 1
What don't you use nested tag to solve the problem:
You need to implement BodyTagSupport (cannot remember if it is correct name)
for tag2. tag2 can "communicate" tag1.
attribute |
|
m*****7 发帖数: 67 | 2 tag必须一样才能收到
现在只有rank1能收到是因为:tag2初始值是0,
rank0发给rank1的msg tag也是0,
所以碰巧match上了
这个程序就是想测试一下ISEND和IRECV。启动四个线程,每个把一个数字发到rank+1的
下一个thread上,最后一个rank为3的发回到rank=0的线程,用WAIT_ALL等待,然后把
结果打印出来,已经编译成功,发现四个线程也都启动,但却不能通讯。测试条件为
quad-core, linux, openMP
程序:
program hello
USE mpi
integer rank, size, ierror, status(MPI_STATUS_SIZE)
integer dest,tag, ierr,tag2, req(2), src
REAL*8 res, msg, ans,sout
integer status_array(MPI_STATUS_SIZE,2)
call MPI_INIT(ierror)
cal |
|
r*u 发帖数: 436 | 3 I know this is not doable, any suggestions for workarounds:
Basically I want to use the result of tag2, which is a string, as an attribute
value of tag1. Due to design restrictions, I can't use scriptlets. :(
Any help is appreciated. |
|
L**********g 发帖数: 15 | 4 找工总算告一段落了,从精华版中获得不少帮助,也想把自己的经验教训与大家分享一
下。
背景
如果不算实习,我有国内两年这里一年工作经验 + master。毕业工作后,在组里越做
越没劲,遂开始准备跳槽。
准备
我前后断断续续共准备了4个月吧,也走了些弯路。最初,我粗略地过了一下
programming interview exposed,CLRS。话说CLRS真是精髓,值得一读再读。然后,
我就开始零零散散地做一些题目,从 careercup,glassdoor,code jam上找些题目来
写。后来,我才发现了mit这个版和leetcode,其中题目的质量和针对性都高很多,后
悔没有早点知道。
面试
1. G
这是我最后悔的一次了。。。当时准备的很不充分,有recuriter来搭讪,就apply了,
结果是电面就挂了。题目是实现大整数的乘法和加法,我虽然最后实现了,但是用了不
必要的递归,思路也有点混乱,于是挂掉。
2. L
在g悲剧之后,奋发了一阵,经朋友推荐,拿到了他家的电面。总共两轮电面 +
onsite (5面),还记得的题目有:
1. two sum
2. design to... 阅读全帖 |
|
发帖数: 1 | 5 来自主题: JobHunting版 - FB 面经 Jedi:
go through背景
light coding: clone a graph
Ninjia:
给一个task序列ABBABBC, 和相同task的最小interval. 例如interval=3, 则BB运行
时间为5. 写一个函数输入task序列和interval, 输出运行时间。
followup: 写一个调度函数,输入task序列和interval,输出task最优执行序列
Pirate:
设计一个大型在线多人视频系统,支持FB的scale
NinJia:
Best Time to Buy and Sell Stock
followup: 返回买入和卖出时间的Index
Search in Rotated Sorted Array
Pirate:
设计一个系统。输入为FB用户的status流, 每个status的组成为多个tags, 用户可通
过 tag1 and tag2 or
tag3之类的查询语句, 查出满足这些条件的status list.
Pirate:
设计一个google maps
Ninjia:
leetcode Mov... 阅读全帖 |
|
r*******g 发帖数: 1335 | 6 来自主题: JobHunting版 - FB 面经 设计一个大型在线多人视频系统,支持FB的scale
这个怎么答,完全没有头绪
设计一个系统。输入为FB用户的status流, 每个status的组成为多个tags, 用户可通
过 tag1 and tag2 or tag3之类的查询语句, 查出满足这些条件的status list.
这个好像就是回答如何search如何做inverted index吧
设计一个google maps
这个怎么答?似乎需要图形学知识?
thanks |
|
s******h 发帖数: 691 | 7 我记得某个大师MM说bogo现在tag2瓶了哦 所以用好bogo可能不能用off了 |
|
c*h 发帖数: 33018 | 8 【 以下文字转载自 JobHunting 讨论区 】
发信人: LeonardoWang (coeus), 信区: JobHunting
标 题: 报一报最近面试流水账
发信站: BBS 未名空间站 (Fri Oct 12 01:43:25 2012, 美东)
找工总算告一段落了,从精华版中获得不少帮助,也想把自己的经验教训与大家分享一
下。
背景
如果不算实习,我有国内两年这里一年工作经验 + master。毕业工作后,在组里越做
越没劲,遂开始准备跳槽。
准备
我前后断断续续共准备了4个月吧,也走了些弯路。最初,我粗略地过了一下
programming interview exposed,CLRS。话说CLRS真是精髓,值得一读再读。然后,
我就开始零零散散地做一些题目,从 careercup,glassdoor,code jam上找些题目来
写。后来,我才发现了mit这个版和leetcode,其中题目的质量和针对性都高很多,后
悔没有早点知道。
面试
1. G
这是我最后悔的一次了。。。当时准备的很不充分,有recuriter来搭讪,就apply了,
结果是电面就挂了。题目是实... 阅读全帖 |
|
|
|
c**********w 发帖数: 1746 | 10 这个程序就是想测试一下ISEND和IRECV。启动四个线程,每个把一个数字发到rank+1的
下一个thread上,最后一个rank为3的发回到rank=0的线程,用WAIT_ALL等待,然后把
结果打印出来,已经编译成功,发现四个线程也都启动,但却不能通讯。测试条件为
quad-core, linux, openMP
程序:
program hello
USE mpi
integer rank, size, ierror, status(MPI_STATUS_SIZE)
integer dest,tag, ierr,tag2, req(2), src
REAL*8 res, msg, ans,sout
integer status_array(MPI_STATUS_SIZE,2)
call MPI_INIT(ierror)
call MPI_COMM_SIZE(MPI_COMM_WORLD, size, ierror)
call MPI_COMM_RANK(MPI_CO |
|
c**********w 发帖数: 1746 | 11 这个程序就是想测试一下ISEND和IRECV。启动四个线程,每个把一个数字发到rank+1的
下一个thread上,最后一个rank为3的发回到rank=0的线程,用WAIT_ALL等待,然后把
结果打印出来,已经编译成功,发现四个线程也都启动,但却不能通讯。测试条件为
quad-core, linux, openMP
程序:
program hello
USE mpi
integer rank, size, ierror, status(MPI_STATUS_SIZE)
integer dest,tag, ierr,tag2, req(2), src
REAL*8 res, msg, ans,sout
integer status_array(MPI_STATUS_SIZE,2)
call MPI_INIT(ierror)
call MPI_COMM_SIZE(MPI_COMM_WORLD, size, ierror)
call MPI_COMM_RANK(M |
|
S*********t 发帖数: 78 | 12 redis key value pair 当数据库用也可以的. 只要key 定义的好.
比如两个table: article, tag
在 redis里头
article:123 = "{article json}"
artlcle:123:tag = ['tag1', 'tag2']
这样就实现了 join |
|
c**********w 发帖数: 1746 | 13 发信人: chairmanmeow (chairmanmeow), 信区: Programming
标 题: 哪位帮忙看一个极为简单的 MPI 程序,感谢拉!
发信站: BBS 未名空间站 (Sat Jul 17 13:59:56 2010, 美东)
这个程序就是想测试一下ISEND和IRECV。启动四个线程,每个把一个数字发到rank+1的
下一个thread上,最后一个rank为3的发回到rank=0的线程,用WAIT_ALL等待,然后把
结果打印出来,已经编译成功,发现四个线程也都启动,但却不能通讯。测试条件为
quad-core, linux, openMP
程序:
program hello
USE mpi
integer rank, size, ierror, status(MPI_STATUS_SIZE)
integer dest,tag, ierr,tag2, req(2), src
REAL*8 res, msg, ans,sout
integer status_array(MPI_STATUS |
|
m********v 发帖数: 11 | 14 The tag for the same message must be the same on both the sender and the
receiver. I don't see that happen in the code. tag2 is not assigned a value. |
|
c**********w 发帖数: 1746 | 15 把TAG2改成TAG了,现在程序仍然是stuck,连
what I send out 110.000000000000
what I received 0.000000000000000E+000
这两句也不出现了。奇怪阿,没法理解
value. |
|
c**********w 发帖数: 1746 | 16 这个程序就是想测试一下ISEND和IRECV。启动四个线程,每个把一个数字发到rank+1的
下一个thread上,最后一个rank为3的发回到rank=0的线程,用WAIT_ALL等待,然后把
结果打印出来,已经编译成功,发现四个线程也都启动,但却不能通讯。测试条件为
quad-core, linux, openMP
程序:
program hello
USE mpi
integer rank, size, ierror, status(MPI_STATUS_SIZE)
integer dest,tag, ierr,tag2, req(2), src
REAL*8 res, msg, ans,sout
integer status_array(MPI_STATUS_SIZE,2)
call MPI_INIT(ierror)
call MPI_COMM_SIZE(MPI_COMM_WORLD, size, ierror)
call MPI_COMM_RANK(MPI_CO |
|