norman's blog

Notes of an amnesiac.
Never stop thinking.
Find an aesthetic description.

Thursday, November 1, 2012

Matlab Startup Folder

Startup Folder on Linux Platforms

On Linux platforms, the default startup folder is the folder from which you started MATLAB.

You can specify that the userpath be the startup folder by setting the value of the environment variable MATLAB_USE_USERPATH to 1 prior to startup. By default, userpath is userhome/Documents/MATLAB, and MATLAB automatically adds the userpath folder to the top of the search path upon startup. To specify a different folder for userpath, and for other options, use the MATLAB userpath function.
Read more!

Tuesday, June 26, 2012

OpenMP Profiler: OmpP

Notes of installation of OmpP on ubuntu 12.04:
1. Install OmpP:
    follow official installation instructions, but  OMPCC= gcc in Makefile.defs
2. before Instrumentation:
    In Makefile:  CXX= kinst-ompp g++
                         GCC= kinst-ompp gcc
                         FCC= kinst-ompp gfortran
                         LDC= kinst-ompp g++
                         Include += -I$(HOME)/opt/ompp/include
                         LIB +=  $(HOME)/opt/ompp/lib/libompp.a
    In .bashrc:    export PATH=$PATH:$HOME/opt/ompp/bin

3. Compile target application:
    Note OmpP will generate some additional files, e.g., *.mod.c etc.
    "make purge" before re-make

For Tau and OmpP, refer to

Note: a bug when compiling:

Ompp does not support the following format, which leads to a compilation error :

#pragma omp parallel for .....

should change to

#pragma omp parallel
#pragma omp for

Read more!

Monday, June 25, 2012

Make says "missing separator"

Q: When I invoke Make, it refuses to do anything and prints a cryptic message: "makefile:10: *** missing separator. Stop." Now what kind of excuse is that?

A: Unlike most other DOS Make programs which accept any whitespace character at the beginning of a command in a rule, GNU Make insists that every such line begins with a TAB. (Most other Unix Make programs also require TABs, and the Posix standard requires it as well.) Make sure that the line whose number is printed in the error message (in this case, line 10) begins with a TAB.
Read more!

Sunday, June 24, 2012

.bashrc vs .bash_profile
Read more!

Saturday, March 27, 2010

svn update

svn update: brings changes from the repository into your working copy. If sth crashed, it will inform you, and wait your decision to obey changes of repository or your local working copy.This make sure your upload your copy withour overwrite other author's work. svn check out: download the whole copy from repository without any alert. svn check in: upload your working copy to repository.
Read more!