自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(13)
  • 资源 (2)
  • 收藏
  • 关注

原创 【C++ Primer】标准库bitset类型

/* *标准库bitset类型 *Zhi-Yun Deng *2013-10-31 */ #include #include //标准库bitset类型头文件 #include #include //size_t类型定义在cstddef头文件中 using std::cin; using std::cout; using std::endl; using std::bitset;//bi

2013-11-04 10:38:01 701

原创 【C++ Primer】标准库vector类型

/* *标准库vector类型 *Zhi-Yun Deng *2013-11-03 */ #include #include //标准库vector类型头文件 #include using std::vector; //vector的using声明 using std::cin; using std::cout; using std::endl; using std::string; i

2013-11-04 10:36:55 547

原创 【C++ Primer】标准库string类型

/* *标准库string类型 *Zhi-Yun Deng *2013-11-01 */ #include #include //标准库string类型头文件 #include //string对象中字符的处理函数的头文件 using std::string; //string类型的using声明 using std::cin; using std::cout; using std::en

2013-11-04 10:35:27 621

原创 Eclilpse插件安装

1、在线安装     在线安装简单方便,可以保证插件的完整性,并可自由选择最新的版本。     Help->Install New Software...->Add...     对话框中Name字段输入标识的插件名,Location字段输入插件的安装地址,单击OK按钮结束。     PS:Eclipse插件的安装地址需要从插件的官网查询。 2、使用本地压缩包安装     Help->

2013-09-29 11:41:05 754

原创 Ubuntu 13.04安装配置Maven

1、检查Java开发环境 详情见:http://blog.youkuaiyun.com/dzy469271071/article/details/12111423 2、下载安装Maven     1)下载地址:http://maven.apache.org/download.cgi (下载apache-maven-3.1.0-bin.tar.gz)     2)解压到安装目录下。(/opt)

2013-09-28 22:51:20 700

原创 Ubuntu 13.04安装配置Java开发环境

1、检查JAVA_HOME环境变量以及Java命令 2、下载及安装JDK JDK下载地址: http://www.oracle.com/technetwork/java/javase/downloads/index.html 安装文档: http://docs.oracle.com/javase/7/docs/webnotes/install/linux/linu

2013-09-27 23:16:58 882

原创 vim配置

"""""""""""""""""""""""""""""""""""""""""""""""""""""" "一般设置 """""""""""""""""""""""""""""""""""""""""""""""""""""" "帮助系统设置为中文 set helplang=cn "显示行号 set number "为光标所在行加下划线 set cursorline "设定默认解码 set f

2013-05-01 18:53:15 439

原创 使用pthread实现统计直方图

#include #include #include #include #include #define MAXLINE 10000001 double *ptd; int count[10]={0}; int num=0; int thread_count; void* Pth_count(void* rank); pthread_mutex_t mutex_p; int ma

2013-04-21 15:00:21 1603 2

转载 How to Install the Latest Nvidia Driver on Ubuntu 12.04

转自http://news.softpedia.com/news/How-to-Install-The-Latest-Nvidia-Driver-on-Ubuntu-12-04-295542.shtml Nvidia is starting to get serious about Linux and they are releasing more and more powerful dri

2013-04-21 10:43:37 616

原创 用Pthreads进行共享内存编程----HelloWorld

1、编译 gcc -g -Wall -o pth_hello pth_hello.c -lpthread 2、运行 ./pth_hello 例:运行4个线程,./pth_hello 4 3、源代码 #include #include #include int thread_count; void * Hello(void * rank); int main(int arg

2013-04-18 21:35:15 1250

原创 ubuntu环境MPI使用

1、环境搭建 终端:sudo apt-get install mpich2 安装的是mpich2的1.4.1版本。 2、编译 终端:mpicc mpi_hello.c -g -Wall -o mpi_hello 3、运行 终端:mpiexec -n ./mpi_hello 例:用4个进程运行程序 mpiexec -n 4 ./mpi_hello

2013-04-18 10:39:53 872

原创 使用MPI实现直方图

#include #include //mpi #include // #define MAXLINE 10000001 int main() { double *ptd; char *ptc; FILE *fp; int i = 0; double start, finish; int count[10]={0}; int

2013-04-16 16:53:17 1833

原创 串行直方图程序

#include #include #include #include #define MAXLINE 10000001 int main() { double *ptd; char *ptc; FILE *fp; int i = 0; struct timeval t_read; double readCost=0,countC

2013-04-15 21:11:18 669

MPI实现直方图统计

ubuntu环境: 编译:mpicc mpiDataCount.c -g -Wall -o mpiDataCount 运行:mpiexec -n 2 ./mpiDataCount

2013-04-18

分类统计1000,0000个浮点数并计时(精确到毫秒)

读取1000,0000个浮点数并进行分类统计,优化串行分类方法,高效,

2013-04-18

空空如也

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

TA关注的人

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