You want to download all the GIFs from a directory on an HTTP server.
You tried wget http://www.server.com/dir/*.gif, but that didn't work
because HTTP retrieval does not support globbing.
In that case, use:
wget -r -l1 --no-parent -A.gif http://www.server.com/dir/
More verbose, but the effect is the same. -r -l1 means to retrieve
recursively, with maximum depth of 1. --no-parent means that refer-
ences to the parent directory are ignored, and -A.gif means to down-
load only the GIF files. -A "*.gif" would have worked too.
>>From mget manual.
You can use globbing for downloading globbing files from ftp servers.
wget ftp://ftp.server.com/dir/*.gif
--
Tuesday, September 30, 2008
Saturday, September 27, 2008
Intel Fortran relocation truncated to fit error: R_X86_64_32S against `baddr.0'
1.Box and compiler
[*@hello src]$ uname -a
Linux nox 2.6.18-92.1.6.el5.centos.plus #1 SMP Thu Jun 26 12:18:07 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux
[*@hello src]$ cat /proc/cpuinfo
processor : 0
vendor_id : AuthenticAMD
cpu family : 16
model : 2
model name : Quad-Core AMD Opteron(tm) Processor 2354
stepping : 3
cpu MHz : 2210.898
cache size : 512 KB
physical id : 0
siblings : 4
core id : 0
cpu cores : 4
fpu : yes
fpu_exception : yes
cpuid level : 5
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc pni cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy altmovcr8 abm sse4a misalignsse 3dnowprefetch osvw
bogomips : 4424.74
TLB size : 1024 4K pages
clflush size : 64
cache_alignment : 64
address sizes : 48 bits physical, 48 bits virtual
power management: ts ttp tm stc 100mhzsteps hwpstate [8]
...(omission)
[*@hello src]$ ifort -V
Intel(R) Fortran Compiler for applications running on Intel(R) 64, Version 10.1 Build 20080312 Package ID: l_fc_p_10.1.015
Copyright (C) 1985-2008 Intel Corporation. All rights reserved.
FOR NON-COMMERCIAL USE ONLY
2. Error message
[*@hello src]$ make
ifort -O2 -o Bcon_hr_cb4_cntl.exe bcon2ioapi.o read_mconc_nc.o vinterp.o vinterp_top.o hinterp.o makebdy.o get_hv_intp_top.o chemspec.o -L/opt/intel/fce/10.1.015/lib -lguide -lpthread -L/home/lin/local/ioapi-3.0/Linux2_x86_64ifort -lioapi -L/usr/local/netcdf-intel/lib -lnetcdf
/home/lin/local/ioapi-3.0/Linux2_x86_64ifort/libioapi.a(bufint3.o): In function `bufintxd_':
/home/lin/local/ioapi-3.0/ioapi/bufint3.c:(.text+0x22): relocation truncated to fit: R_X86_64_32S against `baddr.0'
/home/lin/local/ioapi-3.0/Linux2_x86_64ifort/libioapi.a(bufint3.o): In function `bufintx_':
/home/lin/local/ioapi-3.0/ioapi/bufint3.c:(.text+0x42a): relocation truncated to fit: R_X86_64_32S against `baddr.0'
/home/lin/local/ioapi-3.0/Linux2_x86_64ifort/libioapi.a(bufint3.o): In function `bufdel3_':
/home/lin/local/ioapi-3.0/ioapi/bufint3.c:(.text+0x829): relocation truncated to fit: R_X86_64_32S against `baddr.0'
/home/lin/local/ioapi-3.0/ioapi/bufint3.c:(.text+0x83d): relocation truncated to fit: R_X86_64_32S against `baddr.0'
/home/lin/local/ioapi-3.0/Linux2_x86_64ifort/libioapi.a(bufint3.o): In function `bufddt3d_':
/home/lin/local/ioapi-3.0/ioapi/bufint3.c:(.text+0x86d): relocation truncated to fit: R_X86_64_32S against `baddr.0'
/home/lin/local/ioapi-3.0/Linux2_x86_64ifort/libioapi.a(bufint3.o): In function `bufddt3_':
/home/lin/local/ioapi-3.0/ioapi/bufint3.c:(.text+0xafe): relocation truncated to fit: R_X86_64_32S against `baddr.0'
/home/lin/local/ioapi-3.0/Linux2_x86_64ifort/libioapi.a(bufint3.o): In function `bufxtr3d_':
/home/lin/local/ioapi-3.0/ioapi/bufint3.c:(.text+0xcd5): relocation truncated to fit: R_X86_64_32S against `baddr.0'
/home/lin/local/ioapi-3.0/Linux2_x86_64ifort/libioapi.a(bufint3.o): In function `bufxtr3i_':
/home/lin/local/ioapi-3.0/ioapi/bufint3.c:(.text+0xeb1): relocation truncated to fit: R_X86_64_32S against `baddr.0'
/home/lin/local/ioapi-3.0/Linux2_x86_64ifort/libioapi.a(bufint3.o): In function `bufxtr3_':
/home/lin/local/ioapi-3.0/ioapi/bufint3.c:(.text+0x108d): relocation truncated to fit: R_X86_64_32S against `baddr.0'
/home/lin/local/ioapi-3.0/Linux2_x86_64ifort/libioapi.a(bufint3.o): In function `bufget3d_':
/home/lin/local/ioapi-3.0/ioapi/bufint3.c:(.text+0x1259): relocation truncated to fit: R_X86_64_32S against `baddr.0'
/home/lin/local/ioapi-3.0/Linux2_x86_64ifort/libioapi.a(bufint3.o): In function `bufget3i_':
/home/lin/local/ioapi-3.0/ioapi/bufint3.c:(.text+0x142b): additional relocation overflows omitted from the output
make: *** [Bcon_hr_cb4_cntl.exe] Error 1
3.Solution
Applications containing more than 2 GB of static data should be built with
"-mcmodel medium -shared-intel" options.
In my application an huge array as following to hold all data needs is used.
---------------------------------------------------------------------------
INTEGER, PARAMETER :: MAXNI = 360, #longtitude
& MAXNJ = 180, #latitude
& MAXNP = 50, #height
& MAXNT = 24, #hours
& MAXNV = 10, #variables
REAL :: meadia(MAXNI,MAXNJ,MAXNP,MAXNT, MAXNV) ! org conc
----------------------------------------------------------------------------
The static array will be:
360×180×50×24×10×4(4bytes/real data type) = 3110,400,000bytes about 3.1G
After specified "-mcmodel medium -shared-intel" the compiler options, the error disappeared.
NOTE:
1)It seems that this error only occurs on AMD 64 CPU architecture. I successed compiling the same application on IA 64 CPU without getting an error.
2)The same error occurred even if specified the "-mcmodel medium -shared-intel" options. Check your sizes of all your static arrays again to make sure they are not too huge.
Theoretically you can not use a static array more than 4G in AMD/IA 32 CPU,
16G in AMD/IA 64 CPU.
4.Reference
http://software.intel.com/en-us/forums/intel-fortran-compiler-for-linux-and-mac-os-x/topic/54173
-
[*@hello src]$ uname -a
Linux nox 2.6.18-92.1.6.el5.centos.plus #1 SMP Thu Jun 26 12:18:07 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux
[*@hello src]$ cat /proc/cpuinfo
processor : 0
vendor_id : AuthenticAMD
cpu family : 16
model : 2
model name : Quad-Core AMD Opteron(tm) Processor 2354
stepping : 3
cpu MHz : 2210.898
cache size : 512 KB
physical id : 0
siblings : 4
core id : 0
cpu cores : 4
fpu : yes
fpu_exception : yes
cpuid level : 5
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc pni cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy altmovcr8 abm sse4a misalignsse 3dnowprefetch osvw
bogomips : 4424.74
TLB size : 1024 4K pages
clflush size : 64
cache_alignment : 64
address sizes : 48 bits physical, 48 bits virtual
power management: ts ttp tm stc 100mhzsteps hwpstate [8]
...(omission)
[*@hello src]$ ifort -V
Intel(R) Fortran Compiler for applications running on Intel(R) 64, Version 10.1 Build 20080312 Package ID: l_fc_p_10.1.015
Copyright (C) 1985-2008 Intel Corporation. All rights reserved.
FOR NON-COMMERCIAL USE ONLY
2. Error message
[*@hello src]$ make
ifort -O2 -o Bcon_hr_cb4_cntl.exe bcon2ioapi.o read_mconc_nc.o vinterp.o vinterp_top.o hinterp.o makebdy.o get_hv_intp_top.o chemspec.o -L/opt/intel/fce/10.1.015/lib -lguide -lpthread -L/home/lin/local/ioapi-3.0/Linux2_x86_64ifort -lioapi -L/usr/local/netcdf-intel/lib -lnetcdf
/home/lin/local/ioapi-3.0/Linux2_x86_64ifort/libioapi.a(bufint3.o): In function `bufintxd_':
/home/lin/local/ioapi-3.0/ioapi/bufint3.c:(.text+0x22): relocation truncated to fit: R_X86_64_32S against `baddr.0'
/home/lin/local/ioapi-3.0/Linux2_x86_64ifort/libioapi.a(bufint3.o): In function `bufintx_':
/home/lin/local/ioapi-3.0/ioapi/bufint3.c:(.text+0x42a): relocation truncated to fit: R_X86_64_32S against `baddr.0'
/home/lin/local/ioapi-3.0/Linux2_x86_64ifort/libioapi.a(bufint3.o): In function `bufdel3_':
/home/lin/local/ioapi-3.0/ioapi/bufint3.c:(.text+0x829): relocation truncated to fit: R_X86_64_32S against `baddr.0'
/home/lin/local/ioapi-3.0/ioapi/bufint3.c:(.text+0x83d): relocation truncated to fit: R_X86_64_32S against `baddr.0'
/home/lin/local/ioapi-3.0/Linux2_x86_64ifort/libioapi.a(bufint3.o): In function `bufddt3d_':
/home/lin/local/ioapi-3.0/ioapi/bufint3.c:(.text+0x86d): relocation truncated to fit: R_X86_64_32S against `baddr.0'
/home/lin/local/ioapi-3.0/Linux2_x86_64ifort/libioapi.a(bufint3.o): In function `bufddt3_':
/home/lin/local/ioapi-3.0/ioapi/bufint3.c:(.text+0xafe): relocation truncated to fit: R_X86_64_32S against `baddr.0'
/home/lin/local/ioapi-3.0/Linux2_x86_64ifort/libioapi.a(bufint3.o): In function `bufxtr3d_':
/home/lin/local/ioapi-3.0/ioapi/bufint3.c:(.text+0xcd5): relocation truncated to fit: R_X86_64_32S against `baddr.0'
/home/lin/local/ioapi-3.0/Linux2_x86_64ifort/libioapi.a(bufint3.o): In function `bufxtr3i_':
/home/lin/local/ioapi-3.0/ioapi/bufint3.c:(.text+0xeb1): relocation truncated to fit: R_X86_64_32S against `baddr.0'
/home/lin/local/ioapi-3.0/Linux2_x86_64ifort/libioapi.a(bufint3.o): In function `bufxtr3_':
/home/lin/local/ioapi-3.0/ioapi/bufint3.c:(.text+0x108d): relocation truncated to fit: R_X86_64_32S against `baddr.0'
/home/lin/local/ioapi-3.0/Linux2_x86_64ifort/libioapi.a(bufint3.o): In function `bufget3d_':
/home/lin/local/ioapi-3.0/ioapi/bufint3.c:(.text+0x1259): relocation truncated to fit: R_X86_64_32S against `baddr.0'
/home/lin/local/ioapi-3.0/Linux2_x86_64ifort/libioapi.a(bufint3.o): In function `bufget3i_':
/home/lin/local/ioapi-3.0/ioapi/bufint3.c:(.text+0x142b): additional relocation overflows omitted from the output
make: *** [Bcon_hr_cb4_cntl.exe] Error 1
3.Solution
Applications containing more than 2 GB of static data should be built with
"-mcmodel medium -shared-intel" options.
In my application an huge array as following to hold all data needs is used.
---------------------------------------------------------------------------
INTEGER, PARAMETER :: MAXNI = 360, #longtitude
& MAXNJ = 180, #latitude
& MAXNP = 50, #height
& MAXNT = 24, #hours
& MAXNV = 10, #variables
REAL :: meadia(MAXNI,MAXNJ,MAXNP,MAXNT, MAXNV) ! org conc
----------------------------------------------------------------------------
The static array will be:
360×180×50×24×10×4(4bytes/real data type) = 3110,400,000bytes about 3.1G
After specified "-mcmodel medium -shared-intel" the compiler options, the error disappeared.
NOTE:
1)It seems that this error only occurs on AMD 64 CPU architecture. I successed compiling the same application on IA 64 CPU without getting an error.
2)The same error occurred even if specified the "-mcmodel medium -shared-intel" options. Check your sizes of all your static arrays again to make sure they are not too huge.
Theoretically you can not use a static array more than 4G in AMD/IA 32 CPU,
16G in AMD/IA 64 CPU.
4.Reference
http://software.intel.com/en-us/forums/intel-fortran-compiler-for-linux-and-mac-os-x/topic/54173
-
Sunday, September 21, 2008
Print to pdf in command line
1.install cups-pdf printer
1)Download the cups-pdf Package
search for the cups-pdf package for your version of openSUSE.
Next to the first result, click "1-Click Install" and follow the steps to install the cups-pdf package.
2)Set cups-pdf File Permission
Since version 1.2, cups don't support option "RunAsOption" anymore but cups-pdf needs root privileges in order to modify file ownerships.
sudo chmod +s /usr/lib/cups/backend/cups-pdf
3)Install the Printer
(1).Open the CUPS Administration page using a web browser like Firefox (visit http://localhost:631/admin, note: the CUPS service must be running, see System Services (runlevel).)
(2). Select the Administration tab and click Find New Printers
(3). You should see Virtual PDF Printer (CUPS-PDF), click Add This Printer
(4). Click Continue
(5). In the next screen MAKE/MANUFACTURER FOR CUPS-PDF, don't select a printer but in the OR Provide a PPD File section, provide the name of the driver by browsing to /usr/share/cups/model/CUPS-PDF.ppd then click Add Printer.
(6). Use the "root" username and password (or any username with CUPS admin rights) when prompted finish adding the new printer.
4)Configuration Options
PDF Output Location, the default location for the PDF files is
/var/spool/cups-pdf/yourusername/
To change this, edit the /etc/cups/cups-pdf.conf file.
In this case, to the Desktop of the user.
Out ${HOME}/Desktop
2.Print pdf from command line ( Shell file )
#!/bin/csh
set printer=cups-pdf
if( $1 != "" ) then
lpr -P$printer $1
echo ${1} sent to $printer ... OK!
else
echo PDF Print: No filename defined!
endif
save shell script above to pdfprint.bash and make it executable by
chmod +x pdfprint.bash
use pdfprint.bash filename to print.PDF files are output to you desktop.
3.Supplement
At first I meant to use kprinter to print to file(PDF) function.
You can use kprinter at command line.
example:
kprinter --nodialog -d printername filename
more help can be found by using:
kprinter --help
But I can't find the right printername for "print to file (PDF)" option in the kprinter dialog . :-(
It is said that the printer name is the name that appears in the print dialog. If you want to print to PDF, then it's "Print to File (PDF)", there's no easy shortcut.
But it still doesn't work. The error message says that "not found specified or default printer".
-
1)Download the cups-pdf Package
search for the cups-pdf package for your version of openSUSE.
Next to the first result, click "1-Click Install" and follow the steps to install the cups-pdf package.
2)Set cups-pdf File Permission
Since version 1.2, cups don't support option "RunAsOption" anymore but cups-pdf needs root privileges in order to modify file ownerships.
sudo chmod +s /usr/lib/cups/backend/cups-pdf
3)Install the Printer
(1).Open the CUPS Administration page using a web browser like Firefox (visit http://localhost:631/admin, note: the CUPS service must be running, see System Services (runlevel).)
(2). Select the Administration tab and click Find New Printers
(3). You should see Virtual PDF Printer (CUPS-PDF), click Add This Printer
(4). Click Continue
(5). In the next screen MAKE/MANUFACTURER FOR CUPS-PDF, don't select a printer but in the OR Provide a PPD File section, provide the name of the driver by browsing to /usr/share/cups/model/CUPS-PDF.ppd then click Add Printer.
(6). Use the "root" username and password (or any username with CUPS admin rights) when prompted finish adding the new printer.
4)Configuration Options
PDF Output Location, the default location for the PDF files is
/var/spool/cups-pdf/yourusername/
To change this, edit the /etc/cups/cups-pdf.conf file.
In this case, to the Desktop of the user.
Out ${HOME}/Desktop
2.Print pdf from command line ( Shell file )
#!/bin/csh
set printer=cups-pdf
if( $1 != "" ) then
lpr -P$printer $1
echo ${1} sent to $printer ... OK!
else
echo PDF Print: No filename defined!
endif
save shell script above to pdfprint.bash and make it executable by
chmod +x pdfprint.bash
use pdfprint.bash filename to print.PDF files are output to you desktop.
3.Supplement
At first I meant to use kprinter to print to file(PDF) function.
You can use kprinter at command line.
example:
kprinter --nodialog -d printername filename
more help can be found by using:
kprinter --help
But I can't find the right printername for "print to file (PDF)" option in the kprinter dialog . :-(
It is said that the printer name is the name that appears in the print dialog. If you want to print to PDF, then it's "Print to File (PDF)", there's no easy shortcut.
But it still doesn't work. The error message says that "not found specified or default printer".
-
[HOWTO]Change ls command default colors
1.Test colors supported
This shell script shows all standard colour combinations on the current console.
If no colours appear, your console does not support ANSI colour selections.
first copy /etc/DIR_COLORS to HOME/.dir_colors.
then modify .dir_colors to your preferred themes(see comments in files).
by default, bash will use your cutomized colors next time when you open a new shell window.
NOTE: dircolors -p to view current color scheme.
-
This shell script shows all standard colour combinations on the current console.
If no colours appear, your console does not support ANSI colour selections.
2.Customize your ls output colors
#!/bin/bash
# Display ANSI colours.
#
esc="\033["
echo -e "\t 40\t 41\t 42\t 43\t 44 45\t46\t 47"
for fore in 30 31 32 33 34 35 36 37; do
line1="$fore "
line2=" "
for back in 40 41 42 43 44 45 46 47; do
line1="${line1}${esc}${back};${fore}m Normal ${esc}0m"
line2="${line2}${esc}${back};${fore};1m Bold ${esc}0m"
done
echo -e "$line1\n$line2"
done
first copy /etc/DIR_COLORS to HOME/.dir_colors.
then modify .dir_colors to your preferred themes(see comments in files).
by default, bash will use your cutomized colors next time when you open a new shell window.
NOTE: dircolors -p to view current color scheme.
-
Friday, September 19, 2008
Windows XP startup optimization
1.optimize prefetch function1) open run dialog from start menu and run regedit.
2) locate following reg key and edit EnablePrefetcher
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters
recommendation values from EnablePrefetcher:
Very old machine:0(no prefetch)
not good machine:1(application prefetch)
good machine:3(application and startup app prefetch)
2.optimize startup applications and services
1) open run dialog from start menu and run msconfig.
2) on services and startup tabs,
uncheck not necessaryy services and startup apps.
Excellent gcc/g++ introduction manual
Revised and updated
Brian Gough
Foreword by Richard M. Stallman
This manual provides an introduction to the GNU C and C++ Compilers, gcc and g++, which are part of the GNU Compiler Collection (GCC). The development of this manual was funded entirely by Network Theory Ltd. Copies published by Network Theory Ltd raise money for more free documentation.
online URL: http://www.network-theory.co.uk/docs/gccintro/
--
Brian Gough
Foreword by Richard M. Stallman
This manual provides an introduction to the GNU C and C++ Compilers, gcc and g++, which are part of the GNU Compiler Collection (GCC). The development of this manual was funded entirely by Network Theory Ltd. Copies published by Network Theory Ltd raise money for more free documentation.
online URL: http://www.network-theory.co.uk/docs/gccintro/
--
Thursday, September 18, 2008
Points to Speed up YaST
By default, Yast with activate and check update for every repository entries you setup.
So it will be faster if you disenable those default options.
Better options:
1.check update by manually, don't let YaST check it every time.
2.keep only main repositories activating, disactivate temporary repositories.
only use temporary entries when you need.
So it will be faster if you disenable those default options.
Better options:
1.check update by manually, don't let YaST check it every time.
2.keep only main repositories activating, disactivate temporary repositories.
only use temporary entries when you need.
Wednesday, September 17, 2008
openSUSE input method shorcut
1.IME switch on/off
ctrl+space(defalt)
I set as ctrl+Left shift.
2.switch between IMEs
ctrl+alt+down arrow(default) next IME
ctrl+alt+up arrow(default) previous IME
3.switch zennkaku/hannkaku in Anthy
ctrl+j(default)
4.switch chinese/english in Zhinengqanpin
shift(default)
ctrl+space(defalt)
I set as ctrl+Left shift.
2.switch between IMEs
ctrl+alt+down arrow(default) next IME
ctrl+alt+up arrow(default) previous IME
3.switch zennkaku/hannkaku in Anthy
ctrl+j(default)
4.switch chinese/english in Zhinengqanpin
shift(default)
openSUSE power managerment on Toshiba laptop
0.preface
1.openSUSE power management intro
To be added.
2.setup suspend to RAM and test
Unfortunately, my Toshiba laptop is not in the s2ram whitelist.
First find out proper options that work for you.
In my case, "sudo s2ram -f" works fine. You can find some test options combinations in http://en.opensuse.org/S2ram.
Second modify opsensuse options.The default is s2ram, no other options are set in openSUSE.
sudo vi /etc/pm/config.d/s2ram
add follow lines:
S2RAM_OPTS="-f"
3.setup suspend to RAM with KPowersave
When you close laptops's lid, the default action is to lock your screen not to suspend to RAM.
You can change it by follow steps.
Reference:
openSUSE Pm-utils: http://en.opensuse.org/Pm-utils
s2ram: http://en.opensuse.org/S2ram
KPowersave: http://en.opensuse.org/Projects_KPowersave
1.openSUSE power management intro
To be added.
2.setup suspend to RAM and test
Unfortunately, my Toshiba laptop is not in the s2ram whitelist.
First find out proper options that work for you.
In my case, "sudo s2ram -f" works fine. You can find some test options combinations in http://en.opensuse.org/S2ram.
Second modify opsensuse options.The default is s2ram, no other options are set in openSUSE.
sudo vi /etc/pm/config.d/s2ram
add follow lines:
S2RAM_OPTS="-f"
3.setup suspend to RAM with KPowersave
When you close laptops's lid, the default action is to lock your screen not to suspend to RAM.
You can change it by follow steps.
Reference:
openSUSE Pm-utils: http://en.opensuse.org/Pm-utils
s2ram: http://en.opensuse.org/S2ram
KPowersave: http://en.opensuse.org/Projects_KPowersave
Wednesday, September 10, 2008
Segmentation error occured running WRF with MPICH2
1. Config
[lin@nox src]$ uname -a
Linux nox 2.6.18-92.1.6.el5.centos.plus #1 SMP Thu Jun 26 12:18:07 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux
[lin@nox src]$ mpich2version
MPICH2 Version: 1.0.7
MPICH2 Release date: Unknown, built on Sun Aug 24 00:17:24 CDT 2008
MPICH2 Device: ch3:sock
MPICH2 configure:
MPICH2 CC: gcc -O2
MPICH2 CXX: c++ -O2
MPICH2 F77: f95 -O2
MPICH2 F90: ifort -O2
2.Error Message
by running the command:
mpirun -np 4 wrf.exe
The following errors occurred:
rank 3 in job 1 nox_48738 caused collective abort of all ranks
exit status of rank 3: killed by signal 11
3.Reason
before you run mpd daemon, you should set stacksize to unlimited.
To solve this problem, read on.
4. My solution memo
--------------------------------------------------------------
1.using root mpd
1)login as root to confirm if mpd is running or not.
if not running then
(1)check current stacksize option, make sure it's unlimited.
$bash(root's default shell):
ulimit -a
(by default, root uses bash as its shell and stacksize is,
already set to unlimited. This is the reason that mpd
running as root didn't failure.)
if stacksize is not unlimited, then
ulimit -s
to set it to unlimited.
$tcsh(or csh):
limit
if stacksize is not unlimited, then
limit stacksize unlimited to set it to unlimited or
unlimit to set all resources to unlimited.
(2)lauch mpd
mpd & or mpd --daemon
#NOTE:you may ask your sysadmin to add (1) routie to startup
scripts so that mpd will be started automatically whenever
machine reboots.
2)logout root and setup ~/.mpd.conf file.
add follow lines to .mpd.conf file in your home dir.
MPD_USE_ROOT_MPD=1
3)run mpirun in your own shell.
example:
mpirun -np 4 wrf.exe
or
mpiexec -n 4 wrf.exe
--------------------------------------------------------------
2.using your own mpd
1)login to confirm if mpd is running or not.
if not running then
(1)check current stacksize option, make sure it's unlimited.
reference(1) section above.
(2)launch mpd
mpd & or mpd --daemon
#NOTE: you can automate this step by modifying your login scripts.
Do remember mpd is resource consuming.
2)check ~/.mpd.conf.
comment out following line.
MPD_USE_ROOT_MPD=1
3)run mpirun in your own shell.
example:
mpirun -np 4 wrf.exe
or
mpiexec -n 4 wrf.exe
[lin@nox src]$ uname -a
Linux nox 2.6.18-92.1.6.el5.centos.plus #1 SMP Thu Jun 26 12:18:07 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux
[lin@nox src]$ mpich2version
MPICH2 Version: 1.0.7
MPICH2 Release date: Unknown, built on Sun Aug 24 00:17:24 CDT 2008
MPICH2 Device: ch3:sock
MPICH2 configure:
MPICH2 CC: gcc -O2
MPICH2 CXX: c++ -O2
MPICH2 F77: f95 -O2
MPICH2 F90: ifort -O2
2.Error Message
by running the command:
mpirun -np 4 wrf.exe
The following errors occurred:
rank 3 in job 1 nox_48738 caused collective abort of all ranks
exit status of rank 3: killed by signal 11
3.Reason
before you run mpd daemon, you should set stacksize to unlimited.
To solve this problem, read on.
4. My solution memo
--------------------------------------------------------------
1.using root mpd
1)login as root to confirm if mpd is running or not.
if not running then
(1)check current stacksize option, make sure it's unlimited.
$bash(root's default shell):
ulimit -a
(by default, root uses bash as its shell and stacksize is,
already set to unlimited. This is the reason that mpd
running as root didn't failure.)
if stacksize is not unlimited, then
ulimit -s
to set it to unlimited.
$tcsh(or csh):
limit
if stacksize is not unlimited, then
limit stacksize unlimited to set it to unlimited or
unlimit to set all resources to unlimited.
(2)lauch mpd
mpd & or mpd --daemon
#NOTE:you may ask your sysadmin to add (1) routie to startup
scripts so that mpd will be started automatically whenever
machine reboots.
2)logout root and setup ~/.mpd.conf file.
add follow lines to .mpd.conf file in your home dir.
MPD_USE_ROOT_MPD=1
3)run mpirun in your own shell.
example:
mpirun -np 4 wrf.exe
or
mpiexec -n 4 wrf.exe
--------------------------------------------------------------
2.using your own mpd
1)login to confirm if mpd is running or not.
if not running then
(1)check current stacksize option, make sure it's unlimited.
reference(1) section above.
(2)launch mpd
mpd & or mpd --daemon
#NOTE: you can automate this step by modifying your login scripts.
Do remember mpd is resource consuming.
2)check ~/.mpd.conf.
comment out following line.
MPD_USE_ROOT_MPD=1
3)run mpirun in your own shell.
example:
mpirun -np 4 wrf.exe
or
mpiexec -n 4 wrf.exe
Tuesday, September 2, 2008
使用readline的VI MODE
介绍如何使用Bash的readline的EMACS模式的文章很多,但是VI模式的文章不是很多。EMACS的按键太繁琐,虽然功能强大,我倒不怎么使用。下面拼凑了一些找的的关于readlin的VI模式的文章。
1. BASH中切换到readline的VI模式
set -o vi
2. GDB中切换的readline的VI模式
C+M+j(Ctrl+Alt+j)快捷键。
或者vi ~/.gdbinit文件, 添加
set editing-mode vi
3. readline的VI模式常用快捷键
A cheat sheet by Peteris Krumins
-
1. BASH中切换到readline的VI模式
set -o vi
2. GDB中切换的readline的VI模式
C+M+j(Ctrl+Alt+j)快捷键。
或者vi ~/.gdbinit文件, 添加
set editing-mode vi
3. readline的VI模式常用快捷键
A cheat sheet by Peteris Krumins
-
Subscribe to:
Comments (Atom)