apt-get install lib32z1 如果libz.so.1: cannot open shared object file: No such file or directory在/etc/ld.so.conf中加入/usr/lib 增加类库所有路径 /sbin/ldconfig –v」来...
分类:
其他好文 时间:
2014-06-23 07:44:47
阅读次数:
306
chapter5里重要的例子是dot,来解释一个block内多个thread的共享内存和同步。__shared__共享内存:“对于在GPU上启动的每个线程块,cuda c编译器都将创建该变量的一个副本。线程块中的每个线程都共享这块内存,并和其他线程块无关,这使一个线程块中多个线程能够在计算上进行通信...
分类:
其他好文 时间:
2014-06-23 00:32:59
阅读次数:
289
SELECT id FROM tran WHERE state = 'F' AND TIMESTAMPDIFF(SECOND,DATE_ADD(create_date,INTERVAL 10 DAY_MINUTE),"2014-06-18 10:30:29")>0
如果create_date加10分钟大于等于当前的时间("2014-06-18 10:30:29")...
分类:
数据库 时间:
2014-06-22 22:42:25
阅读次数:
284
题目:
Given a set of distinct integers, S, return all possible subsets.
Note:
Elements in a subset must be in non-descending order.The solution set must not contain duplicate subsets.
...
分类:
其他好文 时间:
2014-06-22 17:51:54
阅读次数:
196
1、
??
Subsets
Given a set of distinct integers, S, return all possible subsets.
Note:
Elements in a subset must be in non-descending order.The solution set must not contain duplicate subset...
分类:
其他好文 时间:
2014-06-22 17:08:53
阅读次数:
179
from:unix高级环境编程
unix/linux中共享内存是最高效的ipc方式。
有几种使用方式:
1)mmap /dev/zero设备:
fd = open("/dev/zero", O_RDWR);
area = mmap(0, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
close(fd);
加入MAP_SHARE...
分类:
其他好文 时间:
2014-06-22 06:21:16
阅读次数:
215
主要是在研究访问共享内存会产生bank conflict时,自己产生的疑惑。对于这...
分类:
其他好文 时间:
2014-06-22 00:39:19
阅读次数:
477
Convert Sorted List to Binary Search Tree
Total Accepted: 12283 Total
Submissions: 45910My Submissions
Given a singly linked list where elements are sorted in ascending order, convert it...
分类:
其他好文 时间:
2014-06-21 23:57:00
阅读次数:
351
$ sudo mount.cifs //windows-ip/shared /media/ -o user=username password=password
该命令挂载Windows下的shared共享目录到本地/media目录下.
Windows的用户名是username, 密码是password (作相应的修改)
这里的CIFS(Common Internet File Syste...
微软近期Open的职位:Title: Principal Dev ManagerLocation: BeijingThe R&D of Shared Data Platform at Search Technology Center Asia aims to build a unified data...
分类:
其他好文 时间:
2014-06-21 16:13:42
阅读次数:
241