Difference: XiaomingGu (1 vs. 29)

Revision 292011-06-20 - XiaomingGu

Line: 1 to 1
 
META TOPICPARENT name="TWikiUsers"

My Personal Info

Homepage

Technical Tips

Added:
>
>
  • how to build a debug and assertion version of LLVM: ./configure --disable-optimized --enable-assertions
  • the option to know execution details of LLVM llc: --debug-pass={Structure, Executions, Details}
 
  • Emacs outline mode
    1. enter outline mode: M-x outline-mode
    2. hide the body of all entries: C-c C-t

Revision 282011-05-05 - XiaomingGu

Line: 1 to 1
 
META TOPICPARENT name="TWikiUsers"

My Personal Info

Homepage

Technical Tips

Added:
>
>
  • Emacs outline mode
    1. enter outline mode: M-x outline-mode
    2. hide the body of all entries: C-c C-t
    3. reveals all hidden material: C-c C-a
 
  • run a program on a specific CPU core: schedtool -a 0x1 -e Program (0x1 means CPU0, 0x2 means CPU1, 0x4 means CPU2)
  • build llvm gold plugin
    1. download binutils source code package, llvm source code package, and llvm-gcc frondend executable package

Revision 272011-04-28 - XiaomingGu

Line: 1 to 1
 
META TOPICPARENT name="TWikiUsers"

My Personal Info

Homepage

Technical Tips

Added:
>
>
  • run a program on a specific CPU core: schedtool -a 0x1 -e Program (0x1 means CPU0, 0x2 means CPU1, 0x4 means CPU2)
 
  • build llvm gold plugin
    1. download binutils source code package, llvm source code package, and llvm-gcc frondend executable package
    2. build gold from binutils source code package with configure options --enable-gold --enable-plugins, and use ld.gold to replace ld in the bin directory

Revision 262011-04-20 - XiaomingGu

Line: 1 to 1
 
META TOPICPARENT name="TWikiUsers"

My Personal Info

Line: 7 to 7
 

Technical Tips

  • build llvm gold plugin
    1. download binutils source code package, llvm source code package, and llvm-gcc frondend executable package
Changed:
<
<
    1. build gold from binutils source code package with configure options --enable-gold --enable-plugins
>
>
    1. build gold from binutils source code package with configure options --enable-gold --enable-plugins, and use ld.gold to replace ld in the bin directory
 
    1. build llvm from llvm source code package with a configure option --with-binutils-include=/path/to/binutils/src/include
    2. unzip llvm-gcc frondend executable package
    3. copy /path/to/llvm/install/lib/LLVMgold.so to /path/to/llvm-gcc-frontend/libexec/gcc/x86_64-unknown-linux-gnu/4.2.1/
    4. add all executable directories to PATH
Changed:
<
<
    1. add /path/to/llvm/install/lib to LD_LIBRARY_PATH
>
>
    1. add /path/to/llvm/install/lib to LD_LIBRARY_PATH and export it
 
    1. call llvm-gcc -O4 -c to generate bit-code objective files, and call llvm-gcc -use-gold-plugin to do link-time optimizations and generate the final executable

  • cache info is in /sys/devices/system/cpu/cpu0/cache/index0. "cpu+(a number)" is for a specific physical thread. "index+(a number)" is for a specific cache like L1 data/inst cache or L2 unified cache.

Revision 252011-04-19 - XiaomingGu

Line: 1 to 1
 
META TOPICPARENT name="TWikiUsers"

My Personal Info

Homepage

Technical Tips

Added:
>
>
  • build llvm gold plugin
    1. download binutils source code package, llvm source code package, and llvm-gcc frondend executable package
    2. build gold from binutils source code package with configure options --enable-gold --enable-plugins
    3. build llvm from llvm source code package with a configure option --with-binutils-include=/path/to/binutils/src/include
    4. unzip llvm-gcc frondend executable package
    5. copy /path/to/llvm/install/lib/LLVMgold.so to /path/to/llvm-gcc-frontend/libexec/gcc/x86_64-unknown-linux-gnu/4.2.1/
    6. add all executable directories to PATH
    7. add /path/to/llvm/install/lib to LD_LIBRARY_PATH
    8. call llvm-gcc -O4 -c to generate bit-code objective files, and call llvm-gcc -use-gold-plugin to do link-time optimizations and generate the final executable
 
  • cache info is in /sys/devices/system/cpu/cpu0/cache/index0. "cpu+(a number)" is for a specific physical thread. "index+(a number)" is for a specific cache like L1 data/inst cache or L2 unified cache.
  • the sizeof() information
N-bit machine void* char int unsigned int long unsigned long long long unsigned long long float double long double
Line: 16 to 26
 
  • run matlab without gui: matlab -nodesktop, then input run SCRIPT in the matlab console.
  • run SPEC CPU2006 workloads: source cshrc; runspec 462.libquantum -D -i test -n 1
  • redirect stdout and stderr to different files in C shell: (prog > output) >& errors
Changed:
<
<
  • llvm build debug version: gmake ENABLE_OPTIMIZED=0
>
>
  • llvm build debug version: do configure with --disable-optimized or do make with ENABLE_OPTIMIZED=0
 
  • llvm control flow graph generation: llvm-as < XXX.ll | opt -analyze -view-cfg; dot -Tps2 YYY.dot >YYY.ps; ps2pdf haha.ps.
  • use etags to do tagging recursively: find . -name "*.[chCH]" -print | etags -
  • use screen command: screen (create a screen); ctrl+a d (detach the screen); screen -r (get a screen back); screen -list (show all available screens)
Changed:
<
<
  • check disk usage: du -h --max-depth=1
>
>
  • check disk usage: du -h --max-depth=1 .
 

Revision 242011-04-07 - XiaomingGu

Line: 1 to 1
 
META TOPICPARENT name="TWikiUsers"

My Personal Info

Homepage

Technical Tips

Added:
>
>
  • cache info is in /sys/devices/system/cpu/cpu0/cache/index0. "cpu+(a number)" is for a specific physical thread. "index+(a number)" is for a specific cache like L1 data/inst cache or L2 unified cache.
 
  • the sizeof() information
N-bit machine void* char int unsigned int long unsigned long long long unsigned long long float double long double
32 4 1 4 4 4 4 8 8 4 8 12

Revision 232011-03-06 - XiaomingGu

Line: 1 to 1
 
META TOPICPARENT name="TWikiUsers"

My Personal Info

Line: 13 to 13
 
  • how to (re)start ssh server: sudo /etc/init.d/ssh restart
  • how to output a single LLVM bitcode file:
    llvm-gcc -O4 -c xxx1.c -o xxx1.bc
    llvm-link xxx1.bc xxx2.bc ... -o yyy.bc
    opt -std-link-opts yyy.bc -o zzz.bc
  • run matlab without gui: matlab -nodesktop, then input run SCRIPT in the matlab console.
Changed:
<
<
  • run SPEC CPU2006 workloads: source cshrc; runspec 462.libquantum -i test
>
>
  • run SPEC CPU2006 workloads: source cshrc; runspec 462.libquantum -D -i test -n 1
 
  • redirect stdout and stderr to different files in C shell: (prog > output) >& errors
  • llvm build debug version: gmake ENABLE_OPTIMIZED=0
  • llvm control flow graph generation: llvm-as < XXX.ll | opt -analyze -view-cfg; dot -Tps2 YYY.dot >YYY.ps; ps2pdf haha.ps.

Revision 222011-03-03 - XiaomingGu

Line: 1 to 1
 
META TOPICPARENT name="TWikiUsers"

My Personal Info

Line: 18 to 18
 
  • llvm build debug version: gmake ENABLE_OPTIMIZED=0
  • llvm control flow graph generation: llvm-as < XXX.ll | opt -analyze -view-cfg; dot -Tps2 YYY.dot >YYY.ps; ps2pdf haha.ps.
  • use etags to do tagging recursively: find . -name "*.[chCH]" -print | etags -
Changed:
<
<
  • use screen command: screen (create a screen); ctrl+a d (detach the screen); screen -r (get a screen back)
>
>
  • use screen command: screen (create a screen); ctrl+a d (detach the screen); screen -r (get a screen back); screen -list (show all available screens)
 
  • check disk usage: du -h --max-depth=1
  • set SMTP server for Thunderbird: Edit -> Account Settings -> Outgoing Server (SMTP), set Server Name to smtp.gmail.com, select use name and password, input your gmail address, do NOT use secure authentication, set Connection security to SSL/TL
  • GPU Computing in URCS

Revision 212011-03-01 - XiaomingGu

Line: 1 to 1
 
META TOPICPARENT name="TWikiUsers"

My Personal Info

Homepage

Technical Tips

Added:
>
>
  • the sizeof() information
N-bit machine void* char int unsigned int long unsigned long long long unsigned long long float double long double
32 4 1 4 4 4 4 8 8 4 8 12
64 8 1 4 4 8 8 8 8 4 8 16
 
  • how to (re)start ssh server: sudo /etc/init.d/ssh restart
  • how to output a single LLVM bitcode file:
    llvm-gcc -O4 -c xxx1.c -o xxx1.bc
    llvm-link xxx1.bc xxx2.bc ... -o yyy.bc
    opt -std-link-opts yyy.bc -o zzz.bc
  • run matlab without gui: matlab -nodesktop, then input run SCRIPT in the matlab console.

Revision 202011-02-17 - XiaomingGu

Line: 1 to 1
 
META TOPICPARENT name="TWikiUsers"

My Personal Info

Homepage

Technical Tips

Changed:
<
<
  • how to output a single LLVM bitcode file:
         llvm-gcc -O4 -c xxx1.c -o xxx1.bc
         llvm-link xxx1.bc xxx2.bc ... -o yyy.bc
         opt -std-link-opts yyy.bc -o zzz.bc
>
>
  • how to (re)start ssh server: sudo /etc/init.d/ssh restart
  • how to output a single LLVM bitcode file:
    llvm-gcc -O4 -c xxx1.c -o xxx1.bc
    llvm-link xxx1.bc xxx2.bc ... -o yyy.bc
    opt -std-link-opts yyy.bc -o zzz.bc
 
  • run matlab without gui: matlab -nodesktop, then input run SCRIPT in the matlab console.
  • run SPEC CPU2006 workloads: source cshrc; runspec 462.libquantum -i test
  • redirect stdout and stderr to different files in C shell: (prog > output) >& errors

Revision 192010-12-14 - XiaomingGu

Line: 1 to 1
 
META TOPICPARENT name="TWikiUsers"

My Personal Info

Homepage

Technical Tips

Added:
>
>
  • how to output a single LLVM bitcode file:
         llvm-gcc -O4 -c xxx1.c -o xxx1.bc
         llvm-link xxx1.bc xxx2.bc ... -o yyy.bc
         opt -std-link-opts yyy.bc -o zzz.bc
 
  • run matlab without gui: matlab -nodesktop, then input run SCRIPT in the matlab console.
  • run SPEC CPU2006 workloads: source cshrc; runspec 462.libquantum -i test
  • redirect stdout and stderr to different files in C shell: (prog > output) >& errors

Revision 182010-09-18 - XiaomingGu

Line: 1 to 1
 
META TOPICPARENT name="TWikiUsers"

My Personal Info

Line: 13 to 13
 
  • use etags to do tagging recursively: find . -name "*.[chCH]" -print | etags -
  • use screen command: screen (create a screen); ctrl+a d (detach the screen); screen -r (get a screen back)
  • check disk usage: du -h --max-depth=1
Changed:
<
<
  • set SMTP server for Thunderbird: Edit -> Account Settings -> Outgoing Server (SMTP), set Server Name to smtp.gmail.com, select use name and password, input your gmail address, do NOT use secure authentication, set Connection security to SSL/TLS
>
>
  • set SMTP server for Thunderbird: Edit -> Account Settings -> Outgoing Server (SMTP), set Server Name to smtp.gmail.com, select use name and password, input your gmail address, do NOT use secure authentication, set Connection security to SSL/TL
  • GPU Computing in URCS
 

Revision 172010-09-15 - XiaomingGu

Line: 1 to 1
 
META TOPICPARENT name="TWikiUsers"

My Personal Info

Homepage

Technical Tips

Added:
>
>
  • run matlab without gui: matlab -nodesktop, then input run SCRIPT in the matlab console.
 
  • run SPEC CPU2006 workloads: source cshrc; runspec 462.libquantum -i test
  • redirect stdout and stderr to different files in C shell: (prog > output) >& errors
  • llvm build debug version: gmake ENABLE_OPTIMIZED=0

Revision 162010-09-01 - XiaomingGu

Line: 1 to 1
 
META TOPICPARENT name="TWikiUsers"

My Personal Info

Homepage

Technical Tips

Added:
>
>
  • run SPEC CPU2006 workloads: source cshrc; runspec 462.libquantum -i test
 
  • redirect stdout and stderr to different files in C shell: (prog > output) >& errors
  • llvm build debug version: gmake ENABLE_OPTIMIZED=0
  • llvm control flow graph generation: llvm-as < XXX.ll | opt -analyze -view-cfg; dot -Tps2 YYY.dot >YYY.ps; ps2pdf haha.ps.

Revision 152010-09-01 - XiaomingGu

Line: 1 to 1
 
META TOPICPARENT name="TWikiUsers"

My Personal Info

Homepage

Technical Tips

Added:
>
>
  • redirect stdout and stderr to different files in C shell: (prog > output) >& errors
 
  • llvm build debug version: gmake ENABLE_OPTIMIZED=0
  • llvm control flow graph generation: llvm-as < XXX.ll | opt -analyze -view-cfg; dot -Tps2 YYY.dot >YYY.ps; ps2pdf haha.ps.
  • use etags to do tagging recursively: find . -name "*.[chCH]" -print | etags -

Revision 142010-08-07 - XiaomingGu

Line: 1 to 1
 
META TOPICPARENT name="TWikiUsers"

My Personal Info

Homepage

Technical Tips

Changed:
<
<
  • llvm control flow graph generation: llvm-as < XXX.ll | opt -analyze -view-cfg; dot -Tps2 YYY.dot >YYY.ps; ps2pdf haha.ps.
>
>
  • llvm build debug version: gmake ENABLE_OPTIMIZED=0
  • llvm control flow graph generation: llvm-as < XXX.ll | opt -analyze -view-cfg; dot -Tps2 YYY.dot >YYY.ps; ps2pdf haha.ps.
 
  • use etags to do tagging recursively: find . -name "*.[chCH]" -print | etags -
  • use screen command: screen (create a screen); ctrl+a d (detach the screen); screen -r (get a screen back)
  • check disk usage: du -h --max-depth=1

Revision 132010-08-05 - XiaomingGu

Line: 1 to 1
 
META TOPICPARENT name="TWikiUsers"

My Personal Info

Homepage

Technical Tips

Added:
>
>
  • llvm control flow graph generation: llvm-as < XXX.ll | opt -analyze -view-cfg; dot -Tps2 YYY.dot >YYY.ps; ps2pdf haha.ps.
 
  • use etags to do tagging recursively: find . -name "*.[chCH]" -print | etags -
  • use screen command: screen (create a screen); ctrl+a d (detach the screen); screen -r (get a screen back)
  • check disk usage: du -h --max-depth=1
Line: 14 to 15
 
Deleted:
<
<
  • Rmpi
 
  • JikesRVM

META PREFERENCE name="VIEW_TEMPLATE" title="VIEW_TEMPLATE" type="Local" value="UserView"

Revision 122010-05-12 - XiaomingGu

Line: 1 to 1
 
META TOPICPARENT name="TWikiUsers"

My Personal Info

Homepage

Technical Tips

Added:
>
>
  • use etags to do tagging recursively: find . -name "*.[chCH]" -print | etags -
 
  • use screen command: screen (create a screen); ctrl+a d (detach the screen); screen -r (get a screen back)
  • check disk usage: du -h --max-depth=1
  • set SMTP server for Thunderbird: Edit -> Account Settings -> Outgoing Server (SMTP), set Server Name to smtp.gmail.com, select use name and password, input your gmail address, do NOT use secure authentication, set Connection security to SSL/TLS

Revision 112010-05-10 - XiaomingGu

Line: 1 to 1
 
META TOPICPARENT name="TWikiUsers"

My Personal Info

Homepage

Technical Tips

Added:
>
>
  • use screen command: screen (create a screen); ctrl+a d (detach the screen); screen -r (get a screen back)
 
  • check disk usage: du -h --max-depth=1
  • set SMTP server for Thunderbird: Edit -> Account Settings -> Outgoing Server (SMTP), set Server Name to smtp.gmail.com, select use name and password, input your gmail address, do NOT use secure authentication, set Connection security to SSL/TLS
  • How to create an Eclipse project with existing code

Revision 102010-03-09 - XiaomingGu

Line: 1 to 1
 
META TOPICPARENT name="TWikiUsers"

My Personal Info

Line: 7 to 7
 

Technical Tips

  • check disk usage: du -h --max-depth=1
  • set SMTP server for Thunderbird: Edit -> Account Settings -> Outgoing Server (SMTP), set Server Name to smtp.gmail.com, select use name and password, input your gmail address, do NOT use secure authentication, set Connection security to SSL/TLS
Added:
>
>
 

Revision 92010-03-08 - XiaomingGu

Line: 1 to 1
 
META TOPICPARENT name="TWikiUsers"

My Personal Info

Homepage

Technical Tips

Changed:
<
<
  • Check disk usage: du -h --max-depth=1
>
>
  • check disk usage: du -h --max-depth=1
  • set SMTP server for Thunderbird: Edit -> Account Settings -> Outgoing Server (SMTP), set Server Name to smtp.gmail.com, select use name and password, input your gmail address, do NOT use secure authentication, set Connection security to SSL/TLS
 

Revision 82010-03-05 - XiaomingGu

Line: 1 to 1
 
META TOPICPARENT name="TWikiUsers"

My Personal Info

Line: 9 to 9
 
Added:
>
>
 
  • Rmpi
  • JikesRVM

Revision 72010-02-27 - XiaomingGu

Line: 1 to 1
 
META TOPICPARENT name="TWikiUsers"

My Personal Info

Line: 8 to 8
 
Changed:
<
<
>
>
 
  • Rmpi
  • JikesRVM

Revision 62010-02-25 - XiaomingGu

Line: 1 to 1
 
META TOPICPARENT name="TWikiUsers"

My Personal Info

Homepage

Technical Tips

Added:
>
>
 

Revision 52010-02-22 - XiaomingGu

Line: 1 to 1
 
META TOPICPARENT name="TWikiUsers"

My Personal Info

Added:
>
>
  Homepage

Technical Tips

Line: 4 to 5
  Homepage

Technical Tips

Added:
>
>
 

Revision 42010-02-08 - XiaomingGu

Line: 1 to 1
 
META TOPICPARENT name="TWikiUsers"

My Personal Info

Homepage

Technical Tips

Added:
>
>
 
  • Rmpi
  • JikesRVM

Revision 32010-02-07 - XiaomingGu

Line: 1 to 1
 
META TOPICPARENT name="TWikiUsers"
Added:
>
>

My Personal Info

Homepage
 
Changed:
<
<

My Links

>
>

Technical Tips

  • Rmpi
  • JikesRVM
 
Deleted:
<
<

My Personal Data

Note: if personal data is being stored using a secret database, then it is only visible to the user and to administrators.

E-mail  

My Personal Preferences

Uncomment preferences variables to activate them (remove the #-sign). Help and details on preferences variables are available in TWikiPreferences.

  • Show tool-tip topic info on mouse-over of WikiWord links, on or off:
    • #Set LINKTOOLTIPINFO = off
  • Horizontal size of text edit box:
    • #Set EDITBOXWIDTH = 70
  • Vertical size of text edit box:
    • #Set EDITBOXHEIGHT = 22
  • Style of text edit box. width: 99% for full window width (default), width: auto to disable.
    • #Set EDITBOXSTYLE = width: 99%
  • Write protect your home page: (set it to your WikiName)

Related Topics

META FORM name="%25MAINWEB%25.UserForm"
FORM FIELD FirstName FirstName Xiaoming
FORM FIELD LastName LastName Gu
FORM FIELD OrganisationName OrganisationName
FORM FIELD OrganisationURL OrganisationURL
FORM FIELD Profession Profession
FORM FIELD Country Country USA
FORM FIELD State State
FORM FIELD Address Address
FORM FIELD Location Location CSB 726
FORM FIELD Telephone Telephone
FORM FIELD VoIP VoIP
FORM FIELD InstantMessaging (IM) InstantMessagingIM
FORM FIELD Email Email
FORM FIELD HomePage HomePage
FORM FIELD Comment Comment
 
META PREFERENCE name="VIEW_TEMPLATE" title="VIEW_TEMPLATE" type="Local" value="UserView"

Revision 22006-10-04 - XiaomingGu

Line: 1 to 1
 
META TOPICPARENT name="TWikiUsers"
Deleted:
<
<
 

My Links

  • ATasteOfTWiki - view a short introductory presentation on TWiki for beginners
Line: 42 to 41
 

META FORM name="%25MAINWEB%25.UserForm"
Changed:
<
<
FORM FIELD FirstName FirstName Xiaoming
FORM FIELD LastName LastName Gu
FORM FIELD OrganisationName OrganisationName
FORM FIELD OrganisationURL OrganisationURL
>
>
FORM FIELD FirstName FirstName Xiaoming
FORM FIELD LastName LastName Gu
FORM FIELD OrganisationName OrganisationName
FORM FIELD OrganisationURL OrganisationURL
 
FORM FIELD Profession Profession
Changed:
<
<
FORM FIELD Country Country USA
>
>
FORM FIELD Country Country USA
 
FORM FIELD State State
FORM FIELD Address Address
Changed:
<
<
FORM FIELD Location Location
>
>
FORM FIELD Location Location CSB 726
 
FORM FIELD Telephone Telephone
FORM FIELD VoIP VoIP
FORM FIELD InstantMessaging (IM) InstantMessagingIM
FORM FIELD Email Email
FORM FIELD HomePage HomePage
Changed:
<
<
FORM FIELD Comment Comment
>
>
FORM FIELD Comment Comment
 
META PREFERENCE name="VIEW_TEMPLATE" title="VIEW_TEMPLATE" type="Local" value="UserView"

Revision 12006-10-02 - TWikiRegistrationAgent

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="TWikiUsers"

My Links

My Personal Data

Note: if personal data is being stored using a secret database, then it is only visible to the user and to administrators.

E-mail  

My Personal Preferences

Uncomment preferences variables to activate them (remove the #-sign). Help and details on preferences variables are available in TWikiPreferences.

  • Show tool-tip topic info on mouse-over of WikiWord links, on or off:
    • #Set LINKTOOLTIPINFO = off
  • Horizontal size of text edit box:
    • #Set EDITBOXWIDTH = 70
  • Vertical size of text edit box:
    • #Set EDITBOXHEIGHT = 22
  • Style of text edit box. width: 99% for full window width (default), width: auto to disable.
    • #Set EDITBOXSTYLE = width: 99%
  • Write protect your home page: (set it to your WikiName)

Related Topics

META FORM name="%25MAINWEB%25.UserForm"
FORM FIELD FirstName FirstName Xiaoming
FORM FIELD LastName LastName Gu
FORM FIELD OrganisationName OrganisationName
FORM FIELD OrganisationURL OrganisationURL
FORM FIELD Profession Profession
FORM FIELD Country Country USA
FORM FIELD State State
FORM FIELD Address Address
FORM FIELD Location Location
FORM FIELD Telephone Telephone
FORM FIELD VoIP VoIP
FORM FIELD InstantMessaging (IM) InstantMessagingIM
FORM FIELD Email Email
FORM FIELD HomePage HomePage
FORM FIELD Comment Comment
META PREFERENCE name="VIEW_TEMPLATE" title="VIEW_TEMPLATE" type="Local" value="UserView"
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding URCS? Send feedback