<?xml version='1.0' encoding='UTF-8'?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:blogger="http://schemas.google.com/blogger/2008" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-3052704415181189268</atom:id><lastBuildDate>Wed, 16 Sep 2015 18:26:31 +0000</lastBuildDate><category>install</category><category>OSX</category><category>PBS</category><category>GPU</category><category>andy</category><category>emacs</category><category>gpute</category><category>openmpi</category><category>salk</category><category>user applications</category><category>vim</category><title>Pile of notes</title><description></description><link>http://pileofnotes.blogspot.com/</link><managingEditor>noreply@blogger.com (Eugene Dedits)</managingEditor><generator>Blogger</generator><openSearch:totalResults>11</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3052704415181189268.post-4641879176145779489</guid><pubDate>Sun, 08 Sep 2013 19:32:00 +0000</pubDate><atom:updated>2013-09-08T12:32:08.947-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">OSX</category><title>Speed-up OSX</title><description>Animations in OSX are ridiculously slow! Let&#39;s make some of them a little faster:&lt;br /&gt;&lt;br /&gt;Show dock faster:&lt;br /&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;defaults write com.apple.dock autohide-delay -float 0.0; killall Dock&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Make MissionControl faster (apple still calls it Expose; ehw..., real expose was so much better):&lt;br /&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;defaults write com.apple.dock expose-animation-duration -float 0.2; killall Dock&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To restore defaults (why would I?) do:&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: Courier New, Courier, monospace; font-size: 12px; line-height: 19px;&quot;&gt;defaults delete com.apple.dock expose-animation-duration; killall Dock&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;Unfortunately that&#39;s it. Super annoying animation for spaces switching stays super annoying for now...&lt;/div&gt;</description><link>http://pileofnotes.blogspot.com/2013/09/speed-up-osx.html</link><author>noreply@blogger.com (Eugene Dedits)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3052704415181189268.post-4199531724897329248</guid><pubDate>Sun, 08 Sep 2013 06:33:00 +0000</pubDate><atom:updated>2013-09-07T23:33:19.355-07:00</atom:updated><title>gnu screen</title><description>Amazing piece of software. How could I live without it?&lt;br /&gt;Here is a list of things I do not want to look for all over the internet:&lt;br /&gt;&lt;br /&gt;C-a c &amp;nbsp; &amp;nbsp; -- create new session&lt;br /&gt;C-a &quot; &amp;nbsp; &amp;nbsp; -- get list of open sessions&lt;br /&gt;C-a A &amp;nbsp; &amp;nbsp; -- set title of current session&lt;br /&gt;C-a n &amp;nbsp; &amp;nbsp; -- go to next session&lt;br /&gt;C-a p &amp;nbsp; &amp;nbsp; -- go to previous one&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Beauty of it:&lt;br /&gt;C-a d &amp;nbsp; &amp;nbsp;-- detach session. This let&#39;s me to start screen, run something inside of it (like long build procedure), detach from it and log out. After that log back in and attach to that screen again!&lt;br /&gt;screen -r &amp;nbsp; &amp;nbsp;-- re-attach it!&lt;br /&gt;&lt;br /&gt;Now let&#39;s create some windows!&lt;br /&gt;C-a S &amp;nbsp; &amp;nbsp;-- split horizontaly&lt;br /&gt;C-a | &amp;nbsp; &amp;nbsp;-- split verticaly&lt;br /&gt;C-a &amp;lt;tab&amp;gt; &amp;nbsp;-- go to next window&lt;br /&gt;C-a : layout save somename &amp;nbsp; -- this allows to save the layout after detach/reattach.&lt;br /&gt;&lt;br /&gt;Vertical split feature requires screen-4.1.X and older. I got it from&lt;br /&gt;https://github.com/skoneka/screen-session/tree/master/screen-4.1.0&lt;br /&gt;&lt;br /&gt;Needed to comment out the following lines in the src to be able to build:&lt;br /&gt;process.c://# include &amp;lt;sys/stropts.h&amp;gt;&lt;br /&gt;pty.c://# include &amp;lt;sys/stropts.h&amp;gt;&lt;br /&gt;screen.c://# include &amp;lt;sys/stropts.h&amp;gt;&lt;br /&gt;tty.c://#include &amp;lt;sys/stropts.h&amp;gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;/* for I_POP */</description><link>http://pileofnotes.blogspot.com/2013/09/gnu-screen.html</link><author>noreply@blogger.com (Eugene Dedits)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3052704415181189268.post-6784080586370888398</guid><pubDate>Sat, 31 Aug 2013 05:44:00 +0000</pubDate><atom:updated>2013-08-30T22:46:13.409-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">install</category><category domain="http://www.blogger.com/atom/ns#">openmpi</category><category domain="http://www.blogger.com/atom/ns#">OSX</category><title>openmpi on OSX</title><description>Provided you have gcc and gfortran installed on your machine, this is relatively easy procedure.   GCC: go to http://hpc.sourceforge.net/ and grab latest binaries for compilers  &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;brush:bash&quot;&gt;sudo tar xvf gcc-blabla.tar -C /&lt;br /&gt;sudo tar xvf gfortran-blabla.tar -C /&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Make sure that /usr/local/bin is ahead of /usr/bin or /bin. Get the latest openmpi, untar and prepare for installation.   &lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;brush:bash&quot;&gt;./configure --prefix=/usr/local/openmpi/1.6.5 CC=gcc CXX=gcc F77=gfortran FC=gfortran --disable-vt&lt;br /&gt;make &lt;br /&gt;sudo make install&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Thats it!&lt;br /&gt;&lt;br /&gt;Finally: &lt;br /&gt;&lt;pre class=&quot;brush:bash&quot;&gt;export PATH=$PATH:/usr/local/openmpi/1.6.5/bin&lt;br /&gt;export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/openmpi/1.6.5/lib&lt;br /&gt;export MANPATH=$MANPATH:/usr/local/openmpi/1.6.5/share/man&lt;br /&gt;&lt;/pre&gt;</description><link>http://pileofnotes.blogspot.com/2013/08/openmpi-on-osx.html</link><author>noreply@blogger.com (Eugene Dedits)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3052704415181189268.post-3485678503243902878</guid><pubDate>Sun, 14 Jul 2013 20:51:00 +0000</pubDate><atom:updated>2013-07-14T20:59:27.628-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">emacs</category><title>Normal &#39;clear&#39; in emacs eshell</title><description>Everybody is soo used to ctrl-l in terminal. How to achieve the same behavior in emacs &#39;eshell&#39;? There goes:   &lt;br /&gt;&lt;pre class=&quot;brush:scala&quot;&gt;(defun eshell-clear ()&lt;br /&gt;  &quot;Clears the shell buffer ala Unix&#39;s clear or DOS&#39; cls&quot;&lt;br /&gt;  (interactive)&lt;br /&gt;  ;; the shell prompts are read-only, so clear that for the duration&lt;br /&gt;  (let ((inhibit-read-only t))&lt;br /&gt; ;; simply delete the region&lt;br /&gt; (delete-region (point-min) (point-max)))&lt;br /&gt;        (eshell-send-input) )&lt;br /&gt;(add-hook &#39;eshell-mode-hook&lt;br /&gt;           &#39;(lambda () (define-key eshell-mode-map &quot;\C-l&quot; &#39;eshell-clear)))&lt;br /&gt;&lt;/pre&gt;    </description><link>http://pileofnotes.blogspot.com/2013/07/normal-clear-in-emacs-eshell.html</link><author>noreply@blogger.com (Eugene Dedits)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3052704415181189268.post-8860631989562151333</guid><pubDate>Wed, 29 May 2013 02:10:00 +0000</pubDate><atom:updated>2013-07-14T20:58:19.538-07:00</atom:updated><title>SSH, sudo and X</title><description>ssh to the remote host: &lt;br /&gt;&lt;br /&gt;&lt;pre&gt;ssh -X username@host&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;run  &lt;br /&gt;&lt;pre&gt;xauth list&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;will get something like &lt;br /&gt;&lt;pre&gt;host.name.edu/unix:11  MIT-MAGIC-COOKIE-1  ae2be4ded3dedcd0483b6fa3540a248e&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Copy this and &quot;sudo -i&quot;. Once root do  &lt;br /&gt;&lt;pre&gt;xauth add host.name.edu/unix:11  MIT-MAGIC-COOKIE-1  ae2be4ded3dedcd0483b6fa3540a248e&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Run &quot;xterm&quot; or whatever is needed. Bingo!</description><link>http://pileofnotes.blogspot.com/2013/05/ssh-sudo-and-x.html</link><author>noreply@blogger.com (Eugene Dedits)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3052704415181189268.post-5911713955477355701</guid><pubDate>Wed, 22 May 2013 17:30:00 +0000</pubDate><atom:updated>2013-05-22T10:33:02.365-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">andy</category><category domain="http://www.blogger.com/atom/ns#">gpute</category><category domain="http://www.blogger.com/atom/ns#">PBS</category><title></title><description>I want to see which nodes are available for the gpu queues.&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;for i in `seq 0 47`; do qmgr -c &quot;p n gpute-$i&quot;; done &amp;gt; YYY1&lt;/pre&gt;&lt;pre&gt;&lt;br /&gt;&lt;/pre&gt;After this I do&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;grep available.accel ./YYY1&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;and see which gpute-s are marked as connected to accelerator and which are not.&lt;br /&gt;&lt;br /&gt;</description><link>http://pileofnotes.blogspot.com/2013/05/i-want-to-see-which-nodes-are-available.html</link><author>noreply@blogger.com (Eugene Dedits)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3052704415181189268.post-3286611964794802843</guid><pubDate>Mon, 15 Apr 2013 20:56:00 +0000</pubDate><atom:updated>2013-04-15T13:58:37.883-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">GPU</category><category domain="http://www.blogger.com/atom/ns#">install</category><title>CUDA Toolkit/SDK/Driver installation notes</title><description>&lt;br /&gt;&lt;b&gt;* Toolkit/SDK&lt;/b&gt;&lt;br /&gt;&amp;nbsp; Nvidia used to ship SDK and toolkit separately. Starting with&lt;br /&gt;&amp;nbsp; version 5.0 they are distributing these two in the form of single&lt;br /&gt;&amp;nbsp; bundle. Following their earlier conventions, we used to install&lt;br /&gt;&amp;nbsp; SDK in a separate directory (/share/apps/cudasdk). This is done&lt;br /&gt;&amp;nbsp; for 5.0 as well. However we may want to reconsider this practice&lt;br /&gt;&amp;nbsp; and start installing both toolkit and SDK into the same directory,&lt;br /&gt;&amp;nbsp; following Nvidia approach.&lt;br /&gt;&lt;br /&gt;&amp;nbsp; We install SDK after toolkit and driver.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;* Driver&lt;/b&gt;&lt;br /&gt;&amp;nbsp; 1. Nvidia driver is only installed on the gpute-x nodes. It needs to be&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;installed with &quot;keep all files&quot; option. One would normally do it on&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;/opt/cuda directory.&lt;br /&gt;&amp;nbsp; 2. Once installation is done driver directory needs&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; to be copied to the head node under /share/apps/cuda/5.0/driver&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; (make sure to keep old driver directory under some distinct name).&lt;br /&gt;&amp;nbsp; 3. Inside this directory symlinks libcuda.so and libcuda.so.1 are to&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;be created (same inside 32)&lt;br /&gt;&amp;nbsp; 4. After installation of the driver (on the compute node) run&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&#39;nvidia-smi&#39; to see if everything went OK.&lt;br /&gt;&amp;nbsp; 5. IMPORTANT: every time nvidia-smi is run as root, permissions on&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;nvidia devices are set to 600. This needs to be fixed with:&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;chmod 666 /dev/nvidia*&lt;br /&gt;&amp;nbsp; 6. Once all of the above done, driver installation directory on the&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;compute node may be deleted.&lt;br /&gt;&amp;nbsp; 7. We&#39;ve created an image with 310.44 driver as a part of it. If newer&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;driver is installed, this image needs to be updated.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;* Detailed installation on compute node&lt;/b&gt;&lt;br /&gt;&amp;nbsp;Make sure gpus are powered on!&lt;br /&gt;&amp;nbsp; &amp;nbsp;1. Check current driver (nvidia-smi, lspci, ls /dev nv*)and see if&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; device is present.&lt;br /&gt;&amp;nbsp; &amp;nbsp;2. we run installation form /opt/cuda/build&lt;br /&gt;&amp;nbsp; &amp;nbsp;3. Create text file &#39;params&#39; with &amp;nbsp;lines&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; ------------&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Accept&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Y&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Y&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; ------------&lt;br /&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp;4. Run installer&lt;/div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; ./NVIDIA-Linux-x86_64-310.44.run --ui=none --target /opt/cuda/installed --keep &amp;lt; params &amp;gt; output 2&amp;gt;&amp;amp;1 &amp;amp;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Output will be store in &#39;output&#39;&lt;br /&gt;&amp;nbsp; &amp;nbsp;5. nvidia-smi for check&lt;br /&gt;&amp;nbsp; &amp;nbsp;6. check for the permissions on the devices /dev/nvidia*&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; permissions need to be 666&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; chmod 666 /dev/nvidia0&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; chmod 666 /dev/nvidia1&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; chmod 666 /dev/nvidiactl&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; or simply&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; chmod 666 /dev/nvidia*&lt;br /&gt;&amp;nbsp; &amp;nbsp;7. On the head node&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; cd /share/apps/cuda/5.0/driver&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; scp -r &amp;nbsp;gpute-0:/opt/cuda/installed/* ./&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; we need these files (libs, etc... ) so that users can compile...&lt;br /&gt;&amp;nbsp; &amp;nbsp;8. Finally copy over all the logfiles form the compute node&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; to the same location on the head node:&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; scp -r &amp;nbsp;gpute-0:/opt/cuda/build/output ./&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; scp -r &amp;nbsp;gpute-0:/var/log/nvidia*.log ./&lt;br /&gt;&amp;nbsp; &amp;nbsp;9. Now we can run some tests.&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</description><link>http://pileofnotes.blogspot.com/2013/04/toolkitsdk-nvidia-used-to-ship-sdk-and.html</link><author>noreply@blogger.com (Eugene Dedits)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3052704415181189268.post-5227068722277738441</guid><pubDate>Mon, 15 Apr 2013 20:10:00 +0000</pubDate><atom:updated>2013-10-26T22:50:11.277-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">install</category><category domain="http://www.blogger.com/atom/ns#">PBS</category><title>Installation and configuration of PBS</title><description>&lt;br /&gt;&lt;b&gt;Installation&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;1) &lt;u&gt;Server and scheduler&lt;/u&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Installation of PBS server and scheduler is done on the head node&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;under /share/apps/pbs/versionID&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;PBS installation script creates &#39;default&#39; symlink automatically.&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Inside this directory:&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;- /raw -- raw installation package (zipeed or tarred original)&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;- /build -- build takes place here&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;- csi_config_ANDY -- all the config file for this system&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;To install:&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;./INSTALL&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;During installation you will be asked for license information.&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;After installation /etc/pbs.conf has to be modified&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;I saved current (04-15-2013) version of /etc/pbs.conf in&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;/share/apps/pbs/11.3.0.121723/build/pbs.conf_04152013&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Once all of this is done:&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;/etc/init.d/pbs start&lt;br /&gt;&lt;br /&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;2) &amp;nbsp;&lt;u&gt;MOM&lt;/u&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Installed on the compute nodes in /opt/pbs/version&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Use &#39;execution only&#39; mode when asked&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Use input file mom_install.in:&lt;br /&gt;&amp;nbsp; &amp;nbsp; &lt;br /&gt;&lt;pre&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;gt; cat mom_install.in&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;/opt/pbs/11.3.0.121723&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;/var/spool/PBS&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;2&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;y&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;service0&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;y&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;y&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;n&amp;nbsp; &amp;nbsp;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;b&gt;Configuration&lt;/b&gt;&lt;br /&gt;All the relevant configs are stored in csi_configs_ANDY directory.&lt;br /&gt;1) &lt;u&gt;NODES: node_config&lt;/u&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Creates all the &#39;nodes&#39; for PBS to use. Assign certain nodes to&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;specific queue. Typical example:&lt;br /&gt;&amp;nbsp; &amp;nbsp; &lt;br /&gt;&lt;pre&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;# Create and define vnode gpute-47&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;# &amp;lt;-----------------------------&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;create node gpute-47 MOM=gpute-47&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;#&amp;lt;--- vnode general attribute settings ---&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;set node gpute-47 max_running = 8&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;set node gpute-47 resv_enable = true&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;set node gpute-47 no_multinode_jobs = false&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;#set node gpute-47 queue = qdev2_gpu&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;#&amp;lt;--- vnode group,user attribute settings ---&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;#set node gpute-47 max_user_run = 8&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;#set node gpute-47 max_group_run = 8&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;#&amp;lt;--- vnode predefined resource settings ---&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;set node gpute-47 resources_available.arch = linux&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;# The ncpus resource is picked up from /proc/cpuinfo,&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;# but is set explicitly here to the physical number&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;# of cores per node to spoof hyperthreading. --rbw&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;set node gpute-47 resources_available.ncpus = 8&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;#&amp;lt;--- vnode local custom resource settings ---&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;set node gpute-47 resources_available.ngpus = 2&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;set node gpute-47 resources_available.switch = qdr&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;set node gpute-47 resources_available.accel &amp;nbsp;= fermi&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;set node gpute-47 resources_available.qlist &amp;nbsp;= &quot;qint1_gpu,qdev2_gpu&quot;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/pre&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;This definition creates virtual resource &quot;gpute-47&quot; and makes it&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;queue-able from queue qint1_gpu and qdev2_gpu. All these&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;instructions need to be fed into qmgr.&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Sometimes one need to manualy re-assign nodes for various&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;purposes. For example when we lost Fermi cards on few compute&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;nodes on the gpu side of Andy, we decided to temorarily re-assign&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;this nodes to the ddr side of the machine. File&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;nodes_config.bad_gpus has definitions of &#39;bad gpute nodes&#39; that&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;perform such re-assignment. Other fine-tunnigs are done in:&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;- nodes_config.gau -- nodes for gaussian jobs&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;- nodes_config.pck &amp;nbsp;-- nodes for packed&lt;br /&gt;&lt;br /&gt;2) &lt;u&gt;QUEUES: queue_config&lt;/u&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Creates and sets paramaters of all the queues (both execution and&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;routing) By setting resources minimuns and maximums we can&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;control placement of the job into this or the other queue. Queue&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;can be disabled with&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;set queue qname enabled = False&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;set queue qname started = False&lt;br /&gt;&amp;nbsp; &amp;nbsp; &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;When setting up routing queue in section:&lt;br /&gt;&amp;nbsp; &amp;nbsp; &lt;br /&gt;&lt;pre&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;set queue production route_destinations &amp;nbsp;= qserial&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;set queue production route_destinations += qmax&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;set queue production route_destinations += qlong64&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;set queue production route_destinations += qshort64&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;set queue production route_destinations += qlong16&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;set queue production route_destinations += qshort16&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/pre&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;order matters! PBS will place the job into first execution queue&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;that matches requested resources. We don&#39;t want to impose qshort&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;time limits on the job that does not request specific amount of&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;time. Therefore qlongXX is in front of qshortXX&lt;br /&gt;&amp;nbsp; &amp;nbsp; &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Matlab queues definitions are located in directory&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&#39;matlab_queues&#39;.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;3) &amp;nbsp;&lt;u&gt;SERVER: server_config&lt;/u&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Defines some jeneral things like server defaults (what will be&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; allocated to a the user if nothing else is specified), server&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; limits, licensing information, priorities formula. Is to be&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; pushed to qmgr.&lt;br /&gt;&lt;br /&gt;4) &lt;u&gt;SCHEDULER: sched_config&lt;/u&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;This file contains information for the scheduler. Things like&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;starving of the job, backfilling, resources that scheduler needs&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;to be aware of, mom resources, etc...&lt;br /&gt;&amp;nbsp; &amp;nbsp; &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Is to be placed under /var/spool/PBS/sched_priv&lt;br /&gt;&lt;br /&gt;5) &lt;u&gt;RESOURCES: resourcedef&lt;/u&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Contains definition of additional resources that we may be&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;interested in managing. For example &#39;accel&#39; can be equal to&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&#39;fermi&#39; or &#39;tesla&#39; on a cluster with both types of GPUs. Based on&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;what user requires PBS can send him either to the compute node&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;with tesla or to the compute node with fermi.&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Another example is gscratch. This resource is created to manage&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;allocation of scratch space fr gaussian users.&lt;br /&gt;&amp;nbsp; &amp;nbsp; &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;File &#39;resourcedef&#39; is to be placed under /var/spool/PBS/server_priv&lt;br /&gt;&amp;nbsp; &amp;nbsp; &lt;br /&gt;&amp;nbsp;6) &amp;nbsp;&lt;u&gt;MOM: mom_config&lt;/u&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Setting for mom. List of users not to be killed upon login to the&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;compute node, max lod, external dynamic resources (lscratch for&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;gaussian users). lscratch runs script&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;/share/apps/pbs/default/bin/gscratch to get amount of scratch&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;space available for gaussian job.&lt;br /&gt;&amp;nbsp; &amp;nbsp; &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Resides on compute nodes under /var/spool/PBS/mom_priv&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;b&gt;PBS Analytics&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; 1. Lisence server for PBS and PBS analytics is installed on&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Neptune under /opt/altair/flex/security&lt;br /&gt;&amp;nbsp; &amp;nbsp; 2. To generate new license one needs to&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- obtain hostid with &#39;./bin/lmutil lmhostid&#39;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- login to PBS support account.&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- download license file (altair_lic.dat)&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- place it under /opt/altair/flex/security&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- start daemon:&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/etc/init.d/altairmgrd start/stop&lt;br /&gt;&amp;nbsp; &amp;nbsp; 3. License manager must be ran by user=group=nobody&lt;br /&gt;&amp;nbsp; &amp;nbsp; 4. Data collectors need to be installed on those machines that run&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;PBS server. We install them under /opt/gridworks/10.4.2&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Logs, binaries, configs are under&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/opt/gridworks/10.4.2/datacollector/etl/modules/pbsdata&lt;br /&gt;&amp;nbsp; &amp;nbsp; 5. Datacollectors a ran by daemon /etc/init.d/pbsdata&lt;br /&gt;&amp;nbsp; &amp;nbsp; 6. Portal is running on HPCAdmin. Start/stop with&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/etc/init.d/pbsportal start/stop&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;</description><link>http://pileofnotes.blogspot.com/2013/04/installation-1-server-and-scheduler-of.html</link><author>noreply@blogger.com (Eugene Dedits)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3052704415181189268.post-8862308255847466428</guid><pubDate>Wed, 10 Apr 2013 17:13:00 +0000</pubDate><atom:updated>2013-04-15T13:57:55.412-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">salk</category><title>Salk&#39;s storage manager</title><description>Salk&#39;s storage manager allows to ... manage storage array.&lt;br /&gt;&lt;br /&gt;To get to it:&lt;br /&gt;&amp;nbsp; 1) login to salkadmin as root with X tunneled&lt;br /&gt;&amp;nbsp; 2) cd /opt/SMgr/client&lt;br /&gt;&amp;nbsp; 3) ./SMclient</description><link>http://pileofnotes.blogspot.com/2013/04/salks-storage-manager-allows-to.html</link><author>noreply@blogger.com (Eugene Dedits)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3052704415181189268.post-7257187459074700922</guid><pubDate>Wed, 10 Apr 2013 16:13:00 +0000</pubDate><atom:updated>2013-07-14T20:54:29.179-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">install</category><category domain="http://www.blogger.com/atom/ns#">user applications</category><title>WRF installation</title><description>Wrf/WRF-chem installation procedures on Andy and Cray machine.&lt;br /&gt;&lt;br /&gt;&amp;nbsp;* On Andy    needed to install a whole bunch of packages first:&lt;br /&gt;&amp;nbsp;- szip (reinstalled 2.1 with new intel)&lt;br /&gt;&amp;nbsp;- zlib (installed 1.2.7 with gcc. original version there was also built with gcc)&lt;br /&gt;&amp;nbsp;- curl (installed 7.29.0 with new intel)&lt;br /&gt;&amp;nbsp;- udunits (installed 2.1.24)&lt;br /&gt;&amp;nbsp;- png (installed 1.6.0)&lt;br /&gt;&amp;nbsp;- jasper (rebuilt 1.900.1 with new intel)&lt;br /&gt;&amp;nbsp;- g2clib (installed 1.2.3)&lt;br /&gt;&amp;nbsp;- jpeg (reinstalled 6b with new intel)&lt;br /&gt;&amp;nbsp;- hdf5 (installed 1.8.10 with new intel)&lt;br /&gt;&amp;nbsp;- hdf4 (installed 4.2.9)   - pnetcdf (installed 1.3.1)&lt;br /&gt;&amp;nbsp;- netcdf    - NCAR (finally gave up on this one and grabbed latest      binary distribution ./share/apps/6.1.2_bin)&lt;br /&gt;&lt;br /&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Unpack all of the WRF and WPS tarballs.    Directory structure should look like:&lt;br /&gt;&lt;pre class=&quot;brush:bash&quot;&gt;ll /share/apps/wrf/3.4.1&lt;br /&gt;total 12&lt;br /&gt;drwxr-xr-x  7 root root 4096 Aug 16  2012 WPS&lt;br /&gt;drwxr-xr-x 16 root root 4096 Aug 16  2012 WRFV3&lt;br /&gt;drwx------  2 root root 4096 Mar 19 11:48 raw&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&amp;nbsp;** Building WRF&lt;br /&gt;1) export all the env variables that are needed:    &lt;br /&gt;&lt;pre class=&quot;brush:bash&quot;&gt;   &lt;br /&gt;   export NETCDF=/share/apps/netcdf/4.2.1.1s_c&lt;br /&gt;   export PNETCDF=/share/apps/pnetcdf/1.3.1&lt;br /&gt;   export HDF5=/share/apps/hdf5/1.8.10s&lt;br /&gt;   export PHDF5=/share/apps/hdf5/1.8.10p&lt;br /&gt;   export JASPER=/share/apps/jasper/1.900.1&lt;br /&gt;   export JASPERLIB=/share/apps/jasper/1.900.1/lib&lt;br /&gt;   export JASPERINC=/share/apps/jasper/1.900.1/include&lt;br /&gt;   export WRFIO_NCD_LARGE_FILE_SUPPORT=1&lt;br /&gt;   export NCARG_ROOT=/share/apps/ncar/6.1.2_bin&lt;br /&gt;   &lt;/pre&gt;2) run ./configure script&lt;br /&gt;3) configure.wrf script will be created.     It needs to be modified. Therefore I save it     as configure.wrf_orig. Modified version is    named configure.wrf_csi&lt;br /&gt;4) Compile &quot;em_real&quot; case with &quot;./compile em_real &amp;gt; COMP.out  2&amp;gt;&amp;amp;1 &amp;amp;&quot;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;** Building WPS&lt;br /&gt;&lt;br /&gt;1) variables needed to be exported (see (1) for building WRF)&lt;br /&gt;2) run ./configure    cp configure.wps configure.wps_orig&lt;br /&gt;3) Modify original configure.wps to include    all the external lib. Saved as configure.wps_csi&lt;br /&gt;4) compile with &quot;./compile &amp;gt; COMP.out  2&amp;gt;&amp;amp;1 &amp;amp;&quot;&lt;br /&gt;5) create directory /share/apps/wrf/3.4.1/WPS_DATA   with geod data and JAN00 data (latter is used in the   wiki for a test case)&lt;br /&gt;6) Set all the permissions to allow users to access binaries     and relevant data:    &lt;br /&gt;&lt;pre class=&quot;brush:bash&quot;&gt;   chmod 755 /share/apps/wrf/3.4.1&lt;br /&gt;   chmod 755 /share/apps/wrf/3.4.1/WPS&lt;br /&gt;   chmod 755 /share/apps/wrf/3.4.1/WPS&lt;br /&gt;   chmod 755 /share/apps/wrf/3.4.1/WPS_DATA&lt;br /&gt;   chmod 755 -R /share/apps/wrf/3.4.1/WPS_DATA&lt;br /&gt;   chmod 755 /share/apps/wrf/3.4.1/WRFV3/main/*exe&lt;br /&gt;   chmod 755 /share/apps/wrf/3.4.1/WPS/metgrid.exe&lt;br /&gt;   chmod 755 /share/apps/wrf/3.4.1/WPS/ungrib.exe&lt;br /&gt;   chmod 755 /share/apps/wrf/3.4.1/WPS/geogrid.exe&lt;br /&gt;   chmod 755 -R /share/apps/wrf/3.4.1/WPS/geogrid&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;** Building WRF_CHEM&lt;br /&gt;Procedure is explained in the /share/apps/wrfchem/3.4.1/WRFV3/README.csi&lt;br /&gt;Basically it is:&lt;br /&gt;&lt;br /&gt;1) export all the env variables that are needed:&lt;br /&gt;&lt;pre class=&quot;brush:bash&quot;&gt;      &lt;br /&gt;      export NETCDF=/share/apps/netcdf/4.2.1.1s_c&lt;br /&gt;      export PNETCDF=/share/apps/pnetcdf/1.3.1&lt;br /&gt;      export HDF5=/share/apps/hdf5/1.8.10s&lt;br /&gt;      export PHDF5=/share/apps/hdf5/1.8.10p&lt;br /&gt;      export JASPER=/share/apps/jasper/1.900.1&lt;br /&gt;      export JASPERLIB=/share/apps/jasper/1.900.1/lib&lt;br /&gt;      export JASPERINC=/share/apps/jasper/1.900.1/include&lt;br /&gt;      export WRFIO_NCD_LARGE_FILE_SUPPORT=1&lt;br /&gt;      export NCARG_ROOT=/share/apps/ncar/6.1.2_bin&lt;br /&gt;      # For WRF Chem&lt;br /&gt;      export EM_CORE=1&lt;br /&gt;      export WRF_CHEM=1&lt;br /&gt;      &lt;/pre&gt;2) run ./configure&lt;br /&gt;3) modify configure.wrf (original version is kept under name configure.wrf_orig)&lt;br /&gt;4) modify the &#39;makefile&#39; in external/io_netcdf (compare to original version       makefile_orig)&lt;br /&gt;5) run ./compile&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;** Building WRF_CHEM WPS part&lt;br /&gt;&lt;br /&gt;This is pretty much the same.&lt;br /&gt;1) export all vars (see above)&lt;br /&gt;2) adjust configure.wps file (see original for differences)&lt;br /&gt;3) run ./compile&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;* On Cray:   needed to install:&lt;br /&gt;a. pnetcdf (installed 1.3.1)&lt;br /&gt;b. jasper   c. png (installed 1.6.0; needed for WPS)&lt;br /&gt;d. ncar (got binary there)&lt;br /&gt;netcdf, HDF5, PHDF5 -- will use Cray&#39;s versions.&lt;br /&gt;&lt;br /&gt;** Installing WRF&lt;br /&gt;1) Load all the required stuff    &lt;br /&gt;&lt;pre class=&quot;brush:bash&quot;&gt;   module load netcdf&lt;br /&gt;   module load PrgEnv-cray&lt;br /&gt;   module load xtpe-mc8&lt;br /&gt;   module load libfast&lt;br /&gt;   export NETCDF=/opt/cray/netcdf/4.2.1.1/cray/81&lt;br /&gt;   export PNETCDF=/share/apps/pnetcdf/1.3.1&lt;br /&gt;   export HDF5=/opt/cray/hdf5/1.8.9/cray/81&lt;br /&gt;   export PHDF5=/opt/cray/hdf5-parallel/1.8.9/cray/81&lt;br /&gt;   export JASPERINC=/share/apps/jasper/1.900.1/include&lt;br /&gt;   export JASPERLIB=/share/apps/jasper/1.900.1/lib&lt;br /&gt;   export JASPER=/share/apps/jasper/1.900.1&lt;br /&gt;   &lt;/pre&gt;2) The rest of installation is the same as the one described    below:&lt;br /&gt;&amp;nbsp;1) Modify configure.wrf (uncomment -lfast_mv)&lt;br /&gt;&amp;nbsp; &amp;nbsp; # module load libfast&lt;br /&gt;&amp;nbsp; &amp;nbsp; LIB_LOCAL       =       -lfast_mv&lt;br /&gt;&amp;nbsp;2) compile the &#39;em_real&#39; binary with:       nohup  ./compile em_real &amp;gt; COMPILE.out 2&amp;gt;&amp;amp;1 &amp;amp;&lt;br /&gt;&amp;nbsp;This worked OK (though procedure is very slow).    Moving to WPS installation.&lt;br /&gt;&lt;br /&gt;** Installing WPS&lt;br /&gt;1) Export all the needed stuff&lt;br /&gt;&lt;pre class=&quot;brush:bash&quot;&gt;   export NETCDF=/opt/cray/netcdf/4.1.3/cray/73&lt;br /&gt;   export PNETCDF=/share/apps/pnetcdf/1.2.0&lt;br /&gt;   export HDF5=/opt/cray/hdf5/1.8.7/cray/73&lt;br /&gt;   export PHDF5=/opt/cray/hdf5-parallel/1.8.7/cray/73&lt;br /&gt;   export JASPERINC=/share/apps/jasper/1.900.1/include&lt;br /&gt;   export JASPERLIB=/share/apps/jasper/1.900.1/lib&lt;br /&gt;   export JASPER=/share/apps/jasper/1.900.1&lt;br /&gt;   export PNGINC=/share/apps/png/1.6.0/include&lt;br /&gt;   export PNGLIB=/share/apps/png/1.6.0/lib&lt;br /&gt;   export PNG=/share/apps/png/1.6.0&lt;br /&gt;   export WRFIO_NCD_LARGE_FILE_SUPPORT=1&lt;br /&gt;   export NCARG_ROOT=/share/apps/ncar/6.1.2_bin&lt;br /&gt;   module load netcdf&lt;br /&gt;   module load PrgEnv-cray&lt;br /&gt;   module load xtpe-mc8&lt;br /&gt;   module load libfast&lt;br /&gt;   &lt;/pre&gt;2) make modifications to configure.wps and ./util/src/Makefile    (compare to their _orig counterparts)&lt;br /&gt;3) ./compile&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;** Installing WRFCHEM WRFV3 on Cray&lt;br /&gt;1) untar WRF_CHEM into this directory&lt;br /&gt;2) First I had to set the environment to include    all the needed stuff:&lt;br /&gt;&lt;pre class=&quot;brush:bash&quot;&gt;   module load netcdf&lt;br /&gt;   module load PrgEnv-cray&lt;br /&gt;   module load xtpe-mc8&lt;br /&gt;   module load libfast&lt;br /&gt;&lt;br /&gt;   export NETCDF=/opt/cray/netcdf/4.2.1.1/cray/81&lt;br /&gt;   export PNETCDF=/share/apps/pnetcdf/1.3.1&lt;br /&gt;   export HDF5=/opt/cray/hdf5/1.8.9/cray/81&lt;br /&gt;   export PHDF5=/opt/cray/hdf5-parallel/1.8.9/cray/81&lt;br /&gt;   export JASPERINC=/share/apps/jasper/1.900.1/include&lt;br /&gt;   export JASPERLIB=/share/apps/jasper/1.900.1/lib&lt;br /&gt;   export JASPER=/share/apps/jasper/1.900.1&lt;br /&gt;   # For WRF Chem&lt;br /&gt;   export EM_CORE=1&lt;br /&gt;   export WRF_CHEM=1&lt;br /&gt;   &lt;/pre&gt;3) Second, run ./configure. See the output file for    details.&lt;br /&gt;4) I copied the newly generated configure.wrf over to    configure.wrf_orig&lt;br /&gt;5) Make changes to configure.wrf to include and link    all that is needed. &#39;diff configure.wrf configure.wrf_orig&#39;    to see what is different&lt;br /&gt;6) Finally ./compile em_real &amp;gt; COMP.out  2&amp;gt;&amp;amp;1 &amp;amp;&quot; will    build all. See COMP.out for details.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;** Installing WRFCHEM WPS on Cray&lt;br /&gt;1) export all the required vars:    &lt;br /&gt;&lt;pre class=&quot;brush:bash&quot;&gt;   module load netcdf&lt;br /&gt;   module load PrgEnv-cray&lt;br /&gt;   module load xtpe-mc8&lt;br /&gt;   module load libfast&lt;br /&gt;   export NETCDF=/opt/cray/netcdf/4.2.1.1/cray/81&lt;br /&gt;   export PNETCDF=/share/apps/pnetcdf/1.3.1&lt;br /&gt;   export HDF5=/opt/cray/hdf5/1.8.9/cray/81&lt;br /&gt;   export PHDF5=/opt/cray/hdf5-parallel/1.8.9/cray/81&lt;br /&gt;   export JASPERINC=/share/apps/jasper/1.900.1/include&lt;br /&gt;   export JASPERLIB=/share/apps/jasper/1.900.1/lib&lt;br /&gt;   export JASPER=/share/apps/jasper/1.900.1&lt;br /&gt;   export PNGINC=/share/apps/png/1.6.0/include&lt;br /&gt;   export PNGLIB=/share/apps/png/1.6.0/lib&lt;br /&gt;   export PNG=/share/apps/png/1.6.0&lt;br /&gt;   # For WRF Chem&lt;br /&gt;   export EM_CORE=1&lt;br /&gt;   export WRF_CHEM=1&lt;br /&gt;   &lt;/pre&gt;2) run ./configure    see ouput in the CONFIG.out&lt;br /&gt;3) the above step generated configure.wps which    I have copied to configure.wps_orig&lt;br /&gt;4) make adjustments to configure.wps in order to include    all the needed stuff. compare to configure.wps_orig    to see what&#39;s changed.&lt;br /&gt;5) Finally &quot;./compile &amp;gt; COMP.out  2&amp;gt;&amp;amp;1 &amp;amp;&quot; will    build all. See COMP.out for details.</description><link>http://pileofnotes.blogspot.com/2013/04/wrf-installation.html</link><author>noreply@blogger.com (Eugene Dedits)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-3052704415181189268.post-6731090696925562215</guid><pubDate>Wed, 10 Apr 2013 15:24:00 +0000</pubDate><atom:updated>2013-04-10T08:58:30.828-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">vim</category><title>Commenting/Uncommenting block of code in vi</title><description>go to the first line of the block to be commented&lt;br /&gt;&lt;pre&gt;Ctrl-V&lt;/pre&gt;go to the last line of the block &lt;br /&gt;&lt;pre&gt;I&lt;/pre&gt;insert comment symbol (like &quot;#&quot; or whatever) end exit &lt;br /&gt;&lt;pre&gt;ESC&lt;/pre&gt;</description><link>http://pileofnotes.blogspot.com/2013/04/commentinguncommenting-block-of-code-in.html</link><author>noreply@blogger.com (Eugene Dedits)</author><thr:total>0</thr:total></item></channel></rss>