自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(12)
  • 收藏
  • 关注

转载 fread 和fwrite操作浮点数的一个问题(linux系统)

fread 和fwrite操作浮点数的一个问题(linux系统)操作系统:ubuntu#include  int main() { FILE *fp; float write=23.1054;float read=0;   fp=fopen("location.bat","w+"); fwrite(&write

2012-12-08 01:50:00 3923

转载 Ubuntu,在当前窗口右键打开终端方法

进入以下文件夹:$ cd ~/.gnome2/nautilus-scripts/创建脚本文件:$ sudo gedit open-terminal编辑文件,添加以下内容:#!/bin/bashexec x-terminal-emulator保存文件。修改文件权限:$ sudo chmod 777 open-terminal另,添加右键

2012-10-18 10:57:08 706

转载 Makefile条件编译debug版和release版

Makefile条件编译debug版和release版一般,在开发测试阶段用debug版本,而上线发布用release版本。使用Makefile定制编译不同版本,避免修改程序和Makefile文件,将会十分方便。读了一些资料,找到一个解决方法,Makefile预定义宏与条件判断,结合make预定义变量,进行条件编译。 比如,有一个test.cpp,包含这段代码#if

2012-10-13 22:45:47 2557

转载 “make clean” results in “No rule to make target `clean'”

make clean时,得到提示:make: *** No rule to make target `clean'. Stop.,应用程序和.o文件没有被清除,网上找了一些资料,找到一个解决办法,即在makefile后面添加clean:       @rm -f $(PROGRAMS) *.o core$(PROGRAMS)代表包含全路经的各个.o文件、应用程序文件

2012-10-12 17:48:48 6589

原创 eclipse CDT Unresolved inclusion

ubuntu下装了Eclipse IDE for C/C++ Developers 的Juno 版本,编译某个c程序时没有问题,但是某些头文件无法找到:“eclipse CDT Unresolved inclusion ”,这时可Project -> Properties -> C/C++ General -> Paths and Symbols -> Includes,选择相应的语言(这里是GN

2012-09-20 17:55:10 2345

转载 vs2010中$(TargetPath)与Link.OutputFile不同

配置vs2010工程时,发现warning warning MSB8012: TargetPath(...) does not match the Linker's OutputFile property value运行时提示找不到可执行程序。后来发现的输出文件(Link.OutputFile )与debugging的command不一致,这一点与vs2005不同。网上找到的资料给出如

2012-09-11 10:11:42 17731

原创 Lis (Library of Iterative Solvers for linear systems)

Lis是个好东西。Cross-platform!Lis (Library of Iterative Solvers for linear systems) is a scalable parallel library for solving the linear equations and the standard eigenvalue problems with real s

2012-09-10 16:58:12 1050

转载 vs2010下调试MPI程序

参考:http://blogs.technet.com/b/chinahpc/archive/2009/05/19/visual-studio-2010-beta1-mpi-cluster-debugger.aspxhttp://msdn.microsoft.com/en-us/library/dd560807(v=vs.100).aspx我只改了“Run Environment”

2012-09-10 16:49:28 3570

原创 ERROR:unable to read the cmd header on the pmi context, Error = -1

win7+vs2010+MPI ,以下仅在单机下做的测试。电脑之前装了MPICH2和Microsoft HPC Pack 2008 SDK,用vs2010链接MPICH2的库编译了一个小程序,在cmd下用mpiexec执行该程序时出现下面问题ERROR:unable to read the cmd header on the pmi context, Error = -1后来网

2012-09-10 16:04:21 10464

转载 一些vtune资料

http://wenku.baidu.com/view/32620a7501f69e314332946f.htmlhttp://www.haogongju.net/art/1192413

2012-09-08 20:11:13 516

转载 visual tudio - vtune, Administrative privileges are required

Adding Administrative PrivilegesTo enable such options as detecting context switches or highly accurate CPU time collection, you need local administrator privileges for running the product. To run t

2012-09-07 19:52:36 1487

转载 OpenMP vcomp.dll problem

原文http://social.msdn.microsoft.com/forums/en-US/vcgeneral/thread/171ccf2b-7219-4012-ac2c-1ca22ee6778bAll VC Libs DLLs require manifests to load them. Manifest should be generated and embed

2012-09-07 15:50:28 789

空空如也

空空如也

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

TA关注的人

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