2012年10月4日星期四

gnuplot for fedora16

download newest version here

tar xvzf  gnuplot-4.6.1.tar.gz

./configure

make

su

make install

gnuplot
------------------------------------------------
it should say

gnuplot>

congrats! 

2012年10月2日星期二

L1 BLAS MLK

I have encountered a weird problem about ddot_() which need to be declared before use. If not, cc compiler still does not report error info.

Besides that problem, finding right link and compile option for MKL is much more time-wasting. We can obtain link and compile option from official intel website here. But make sure to check your own env to make MKL works. Highly recommend to read MKL manual if you have time.Basically, check if -L path has .a file for mkl and -lxxxx(with use libxxx.a under -L path).

this is what I got from official tool:
 -L$(MKLROOT)/lib/intel64 -lmkl_intel_ilp64 -lmkl_sequential -lmkl_core -lpthread 

For me, I changed
$MKLROOT  to $MKL
 lib/intel64 to lib/em64
-lmkl_intel_ilp64 to -lmkl_intel_lp64
add -lm

The reason I add -lm is that MKL also need math lib, otherwise you would get a error typical of not finding the math module such as:

/util/intel/mkl/10.2.2.025/lib/em64t/libmkl_core.so: undefined reference to `cos'
/util/intel/mkl/10.2.2.025/lib/em64t/libmkl_core.so: undefined reference to `sqrt'
/util/intel/mkl/10.2.2.025/lib/em64t/libmkl_sequential.so: undefined reference to `log'

------------------------------------------------------
sometimes, we need to mv files into a folder which is in the same directory with those file, with mouse, it is easy to handle this task, but in linux, it is tricky...
 My method is to name the folder start with upper case which is unique in this directory, then use this handy shell:
mv [![:upper:]]* <folder name>

similar pattern:
[![:digit:]]*
*[[:lower:]123]: start with lower case and end with digit
[abc]* : start with 'abc'

Another handy shell command is script:

script -a blas.log