自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

并行时代

Do better, Do more.

  • 博客(63)
  • 资源 (9)
  • 收藏
  • 关注

原创 判定程序属于计算密集和访存密集的方法

分析程序是计算密集(compute intensive)还是访存密集(Memory intensive)1)算出机器的单核峰值性能主频*SIMD宽度*2(如果存在乘加指令), CpuPeak2)测出机器峰值带宽用streaming测出实际带宽峰值,但是该峰值是所有处理器核的总和,需要除以实际物理核数(超线程不算),算出峰值带宽,MemPeak3)分析算法的计算访存比加减乘除

2017-01-04 17:00:50 4067

原创 NVIDIA OpenACC 在线课程 (一) 学习笔记

1. pragma acc kernels[]{}表示可能存在并行性,由编译器分析并行性,并根据分析结果决定是否生成GPU kernels2. #pragma acc parallel loop 开发者已经知道该循环可以并行化,不用编译器再来分析并行性;只并行化当前修饰的循环且该循环可以是嵌套的;Independent clause开发者知道循环迭代间不

2016-12-29 16:31:44 2476

原创 在caffe中添加自定义层

Caffe中添加自定义层[6,7]1)头文件路径:py-faster-rcnn/caffe-fast-rcnn/include/caffe/layers2)CPP或者CU文件fasterrcnn_huawei/py-faster-rcnn/caffe-fast-rcnn/src/caffe/layers3)caffe.proto定义该层的参数py-faste

2016-12-22 11:34:54 4363 1

原创 ubuntu 14.04 配置samba账户

1)安装samba相关软件;2)添加用户smbpasswd -a zhaotianwang3)修改/etc/samba/smb.conf在里面添加如下内容,就可以让每个用户访问默认目录[zhaotianwang]comment = user for zhaotianwangpath = /home/zhaotianwangvalid user = zhaotianw

2016-10-20 10:43:49 4098

翻译 CMake使用说明

How can I add a dependency to a source file which is generated in a subdirectory?Rules created with ADD_CUSTOM_COMMAND as above have scope only in the directory in which they are specified. If t

2015-09-14 02:21:18 1294

原创 C++ STL编程

1. map1.1 insert和mp[] = value有什么区别

2015-08-13 14:23:07 493

原创 gdb tips 总结

1) 在gdb中能够调用STL的size()等接口https://sourceware.org/ml/gdb/2008-02/msg00064/stl-views.gdb

2015-08-12 16:32:14 642

原创 (centos)安装latex及使用技巧说明

1)安装latextexlive版本中只有tex和pdftex命令,并没有latex和pdflatex命令。但是,后者似乎前者的符号链接而已。要想安装latex等,可以安装yum install texlive-latex2)安装tabu.dtx, tabu.ins(需要生成tabu.sty)下载这两个文件;3)有时候可能某些sty文件找不到,最好的方法是自己下载安

2015-06-19 12:11:14 9954

原创 用clang编译SPEC2006 过程中的问题(与gcc,ld相关)

1. 重复定义__strcspn_c1编译401.bzip2时错误/usr/include/bits/string2.h:972: multiple definition of `__strcspn_c1'bgm.o:/usr/include/bits/string2.h:972: first defined heredinkini.o: In function `__strcsp

2015-04-16 14:16:40 3143

原创 centos 安装软件

查找软件仓库中是否有现成的安装包,yum list | grep ***1)安装gcc工具集yum install gcc yum install gcc-c++yum install gcc-c++yum install gcc-gfortran.x86_64gdb的较新版本可以直接下载源代码进行编译,比较简单。2)安装Rscript环境

2015-03-31 11:26:44 2680

原创 git 使用技巧总结

消除某次已经push的commit某些时候错误提交或者提交了错误的代码,可以撤回该次提交。首先保证当前目录下没有未提交的修改。$git revert 78246899f020b0d5cad7ee0d27f8ff12571eef5c$git push但是还想在本地保留这些修改,有两个方法:1)如果已经生成patch的情况下,可以直接打patch实现,在这种方法下,如果库代码已经被

2015-03-26 14:19:29 489

转载 windows7下,使得excel能否在不同窗口中打开多个文件

这是WINDOWS 7下的方法,该方法在win7下,office2010版本中验证是有效的。1、打开REGEDIT2、在HKEY_CLASSES_ROOT\Excel.Sheet.8\shell\Open目录下删除ddeexec这个目录和command下的那个command的键值。3、将command文件夹下的默认数据改为 C:\Program Files\Microsof

2015-03-24 09:07:24 2001

原创 svn 使用指南(经验总结版)

提交数据当在本地修改 完程序后,需要提交,这时候命令是$ svn ci -m"fixup, finish...."  ./*.cpp ./*.h ......通常在提交的时候,需要给一些标注或者解释信息,便于以后查看该版本所做的主要修改,但是通过-m” ”或者 -message" "给出信息时,不妨便进行编辑,那么用户可以在提交时,不添加该项$svn ci ./xxx.cpp这

2015-01-24 12:14:55 684

原创 搭建samba服务 centos

在centos搭建samba的过程,应该同样适用于ubuntu。1)安装sambayum install samba2) 启动samba服务#service smb start#service nmb start设置开启自启动该服务chkconfig  --level 35 smb onchkconfig --level 35 nmb on3)关闭防火墙

2015-01-21 14:04:38 514

原创 ubuntu上搭建工作环境

版本ubuntu desktop, v12.4, v13.10.优点:1)绚丽易用的可视化环境;2)丰富的可用package,在这点上比centos强太多,后者更新较慢;不足:1)在笔记本上运行较慢,笔记本很快温度变高;(特别是ThinkPad上)2)是桌面端系统,所以作为一个用来进行程序开发的人来说需要装一些其他软件,但是方便易用的package安装方式减轻了这一过程的负

2014-08-22 07:41:18 5306

转载 任正非谈:华为会怎么失败,华为会怎么垮掉?

虎嗅注:该文节选自任正非四月中旬与上研专家座谈会上的讲话。在座谈会上,任正非就技术创新、华为的发展方向以及潜在的风险谈了自己的看法。我们会怎么失败,华为会怎么垮掉?历史上多少大公司是在非常成功之后走向大衰弱。70年代日本电子工业很成功,钱多到可以把美国买下了。日本在模拟电子很成功,但在数字转型的时候保守了,让美国超越了。美国CT领域也保守了被华为超越了,但后来,美国又从IT领域重新

2014-05-25 17:59:38 1054

原创 SPEC CPU2006的执行命令

The execution command options for SPEC CPU2006 C/C++ benchmark. 另外也有针对每个程序的Makefile,如果需要可以给我发邮件。1) 400.perlbenchrunspec --config linux-amd64-gcc470.cfg -T base -i test --noreportable 400.perlb

2014-03-03 09:29:41 11185 13

原创 安装SpecCPU2006 on Linux of CentOS6.3, gcc4.4.7

由于在tools/bin目录中只有ia64-linux,所以在直接运行./install.sh脚本时,系统会提示直接重新安装tools工具集。该过程如1.1.1 所示。另外一个做法就是指定可用的现成的工具集,例如linux-suse101-AMD64,首先在CPU2006/tools/bk_bin目录中选择合适的工具集并拷贝到CPU2006/tools/bin目录中,(当前以 linux-suse

2014-02-12 10:21:12 5136 10

转载 How to identify a research problem

说明:转载 计算所包云岗博士的博文。【这是自己在2012年5月16日随手记录的,一直没想过与大家分享。一方面觉得自己研究水平还比较初级,似乎都是大牛才有资格介绍这种话题;另一方面,觉得自己的很多见解也是比较肤浅,而英语写作水平也不高,公开出来很可能会贻笑大方。但昨天看到一篇文章,忽然心中顿悟,觉得自己这个阶段更需要与其他人交流分享。】My Story at

2013-09-02 18:43:03 2356

转载 Compiler developer position available at Qualcomm

Qualcomm CDMA Technologies (QCT) is the largest provider of 3G chipset and software technology in the world, with chipsets shipped to more than 50 customers and powering the majority of all 3G devices

2013-08-22 10:29:26 993

转载 对David Kuck的一个电话访谈

About the InterviewDAVID KUCK: An Interview Conducted by Andrew Goldstein, Center for the History of Electrical Engineering, August 15, 1991Interview #132 for the Center for the History of Ele

2013-07-17 22:00:16 1337

原创 安装gcc/c++/fortran, centos6.3 rpm

rpm -ivh mpfr-2.4.1-6.el6.x86_64.rpm;rpm -ivh cpp-4.4.6-4.el6.x86_64.rpm ;rpm -ivh kernel-headers-2.6.32-279.el6.x86_64.rpm;rpm -ivh glibc-headers-2.12-1.80.el6.x86_64.rpm ;rpm -ivh glibc-deve

2013-05-13 15:22:32 1858

转载 JOB AD: PathScale's compiler frontend/GPGPU team

== JOB POSTING == PathScale's compiler team is looking for individuals interested in GPGPU, C++, Visual Studio compatibility and compiler frontend (clang) work. Most of the work will be on o

2013-05-13 09:44:55 722

转载 Summer of code proposal: add directive to uniquely identify loops of interest

Dear all,I would like to propose an average technical project that might have a great use in many parts/derivatives of LLVM, including ours.Consider you have dozens of regression tests in high

2013-05-13 08:59:53 739

转载 JOB: Compiler engineering positions @ AMD Sunnyvale, CA

1. Senior Compiler Engineer, Stream Compute Team - AMD, Sunnyvale, CaliforniaWe are currently looking for a senior software engineer to join the core team developing our OpenCL compiler stack for

2013-05-13 08:38:51 874

原创 part of PLDI 2013 accepted papers

I collcet these data through Google (21 papers now), so maybe there are some errors on the data. There 2 papers from IBM realted, 3 papers related Microsoft, 2 papers from colorado, 1 paper from Pur

2013-03-01 10:29:03 1496

转载 世纪图灵纪念

同事写的非常好的一片文章,转载在此以共享。http://blog.sciencenet.cn/blog-414166-628109.html -----------------------------------------------------世纪图灵纪念包云岗 中科院计算技术研究所 1912年“计算机科学之父”阿伦.图灵(AlanTuring)诞生。1930年代,

2012-11-06 12:39:47 1944

转载 Technical Perspective: Proving Programs Continuous

By Andreas Zeller Communications of the ACM, Vol. 55 No. 8, Page 10610.1145/2240236.2240261Proving a program's correctness is usually an all-or-nothing game. Either a program is correct with

2012-10-25 09:15:05 584

原创 N个数中,选取M个数

从N个数中选取M个不同的数,共有多少种选法?并将结果打印出来。解法:采用divide-conquer方法。f(N,M) = f(N-1,M-1) + f(N-1, M); 具体代码如下:#include#define N  100#define M  5int total = 0;int func(int n, int m, int *sta

2012-10-24 20:17:36 1706

翻译 centos 6.2 安装chrome

<!--@page {margin:0.79in}p {margin-bottom:0.08in}pre.ctl {font-family:"Lohit Devanagari",monospace}a:link {}-->Install chrome on CentOSEnableAdd following to/etc/

2012-09-01 21:49:43 2284

原创 thinkpad t420 centos 配置无线网

1) check which wireless network card03:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8188CE 802.11b/g/n WiFi Adapter (rev 01)RTL8188CE and RTL8192CE shared the same driver2) downlo

2012-06-02 17:42:30 4309

原创 intel 2012 roadmap

2011-12-27 04:53:45 1095

转载 Cloud Computing Pioneer Dies

John McCarthy, creator of the Lisp programming language and pioneer in utility computing—the forerunner of today's cloud computing—died Sunday in Stanford, California. He was 84.McCarthy was a

2011-10-26 01:40:42 620

转载 关于自动并行化的访谈

When I started my PhD.-thesis a couple of years ago, I took some time to look at auto-parallelizing compilers and research. After all, I wanted to work on making parallel programming easier, and the b

2011-10-01 12:56:27 627

转载 世界最小晶体管问世:仅由7个原子构成

新浪科技讯北京时间5月26日消息据物理学家组织网报道,美国与澳大利亚科学家成功制造出世界上最小的晶体管——由7个原子在单晶硅表面构成的一个“量子点”,标志着我们向计算能力的新时代迈出了重要一步。  量子点(quantum dot)是纳米大小的发光晶体,有时也被称为“人造原子”。虽

2011-07-19 12:42:52 824

转载 东芝科学家向量子计算机迈进一大步

6月3日消息,据外电报道,来自东芝在英国剑桥设立的研究中心的科学家周三称,他们研制出的纠缠态发光二极管(Entangled Light Emitting Diode,ELED)为制造出超级强大的半导体芯片开辟了道路。量子计算机在理论上可以同时用各种方法解决同一个问题,而如今速度最

2011-07-19 12:42:11 671

转载 量子计算机首次正式投入商用

加拿大量子计算公司D-Wave近日正式发布了全球第一款商用型量子计算机“D-Wave One”,量子电脑的梦想距离我们又近了一大步。其实早在2007年初,D-Wave公司就展示了全球第一台商用实用型量子计算机“Orion”(猎户座),不过严格来说当时那套系统还算不上真正意义的量子

2011-07-19 12:38:32 1076

转载 磁微处理器挑战计算机最低能耗极限

根据加州大学伯克利分校电力工程师的研究,未来计算机可能使用一种由纳米磁铁制作的处理器,仅消耗物理定律所限的最低能量,这就是磁微处理器计算机。目前的硅基微处理器芯片依赖于电流,也就是运动电子,会产生大量的废热。如果用纳米磁铁,就像微型的冰箱磁铁那样,用来进行存储、逻辑运算与开关操作

2011-07-19 12:35:34 760

原创 perl中简单printf操作

在perl程序中,读入下面一行c代码:printf("%d", number);将其保存到到变量$line中,然后将其输出到文件句柄$out中,下面两种做法会有什么差异呢?1)printf $out $line;2)printf $out ("%s", $line);如果第一种做

2011-07-14 21:59:42 4723

转载 what is first-order language

A language in which the quantifiers contain only variables ranging over individuals and the functions have as their arguments only individual variables or constants. In a second-order language the variables of the quantifiers may range over functions

2011-04-28 10:36:00 1133

Heterogeneous Computing with OpenCL 2nd Edition

Heterogeneous Computing with OpenCL 2nd Edition

2016-02-25

c++programming language 高清版

非常清晰的c++ 书籍,The C++ programming language 第四版,由c++ 之父编写。

2014-09-01

高级perl编程

This is the high level material of Perl, the third book you should know about perl.

2014-05-18

Intermediate.Perl

perl学习的第二本教材,中级教程,pdf version, very good, please enjoy it .

2014-05-18

learning perl v5

入门的经典书籍,it belong to the low level material.

2014-05-18

overview of supercompter2010

this is a evalulation of supercomputer in 2010, and it will illustrate the newer cpu technology and storage and interconnect and so on ...

2011-04-07

django的入门教材

一个翻译过来的书,讲述了django入门知识,该书在书店有售,但是需要40元,所以发个电子版,大家共享下,本来想不要分,但是需要下载东西总是需要,所以也只好要求给分了。

2009-10-27

mips手册,关于mips汇编的帮助文档

关于mips汇编的一些帮助资料,主要介绍了mips独立汇编编程

2009-10-15

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除