{"id":21,"date":"2019-02-02T18:53:08","date_gmt":"2019-02-02T10:53:08","guid":{"rendered":"http:\/\/yrwu.ee.ntu.edu.tw\/?page_id=21"},"modified":"2019-02-03T17:01:14","modified_gmt":"2019-02-03T09:01:14","slug":"lab-facilities","status":"publish","type":"page","link":"https:\/\/yrwu-wk.ee.ntu.edu.tw\/index.php\/lab-facilities\/","title":{"rendered":"Lab Facilities"},"content":{"rendered":"<p>Currently, Our labs have a cluster with totally over 1000 cores and 8GB memory for each core.<\/p>\n<ul>\n<li>4 x Asus 1642 Xeon 5345 with total 8 core + 24 GB memory<\/li>\n<li>2 x IBM X3350 Xeon 5355 with total 8 core + 16 GB memory<\/li>\n<li>2 x Supermicro Xeon 5430 with total 8 core + 64 GB memory<\/li>\n<li>4 x Supermicro Xeon 5410 with total 8 core + 16 GB memory<\/li>\n<li>1 x IBM X3650 Xeon 5530 with total 8 core+16 thread + 48 GB memory<\/li>\n<li>1 x supermicro AMD 2431 with total 12 core x 48 GB memory<\/li>\n<li>1 x supermicro AMD 6174 with total 48 core x 192 GB memory<\/li>\n<li>4 x supermicro Xeon 5630 with total 8 core x 48 GB memory<\/li>\n<\/ul>\n\n\n<ul class=\"wp-block-gallery columns-2 is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\"><li class=\"blocks-gallery-item\"><figure><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"768\" src=\"http:\/\/yrwu.ee.ntu.edu.tw\/wp-content\/uploads\/2019\/02\/DSC00014-1-1024x768.jpg\" alt=\"\" data-id=\"334\" data-link=\"http:\/\/yrwu.ee.ntu.edu.tw\/index.php\/lab-facilities\/dsc00014-2\/\" class=\"wp-image-334\" srcset=\"https:\/\/yrwu-wk.ee.ntu.edu.tw\/wp-content\/uploads\/2019\/02\/DSC00014-1-1024x768.jpg 1024w, https:\/\/yrwu-wk.ee.ntu.edu.tw\/wp-content\/uploads\/2019\/02\/DSC00014-1-300x225.jpg 300w, https:\/\/yrwu-wk.ee.ntu.edu.tw\/wp-content\/uploads\/2019\/02\/DSC00014-1-768x576.jpg 768w, https:\/\/yrwu-wk.ee.ntu.edu.tw\/wp-content\/uploads\/2019\/02\/DSC00014-1-240x180.jpg 240w, https:\/\/yrwu-wk.ee.ntu.edu.tw\/wp-content\/uploads\/2019\/02\/DSC00014-1.jpg 1920w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/li><li class=\"blocks-gallery-item\"><figure><img decoding=\"async\" width=\"1024\" height=\"768\" src=\"http:\/\/yrwu.ee.ntu.edu.tw\/wp-content\/uploads\/2019\/02\/DSC00022-1024x768.jpg\" alt=\"\" data-id=\"335\" data-link=\"http:\/\/yrwu.ee.ntu.edu.tw\/index.php\/lab-facilities\/dsc00022\/\" class=\"wp-image-335\" srcset=\"https:\/\/yrwu-wk.ee.ntu.edu.tw\/wp-content\/uploads\/2019\/02\/DSC00022-1024x768.jpg 1024w, https:\/\/yrwu-wk.ee.ntu.edu.tw\/wp-content\/uploads\/2019\/02\/DSC00022-300x225.jpg 300w, https:\/\/yrwu-wk.ee.ntu.edu.tw\/wp-content\/uploads\/2019\/02\/DSC00022-768x576.jpg 768w, https:\/\/yrwu-wk.ee.ntu.edu.tw\/wp-content\/uploads\/2019\/02\/DSC00022-240x180.jpg 240w, https:\/\/yrwu-wk.ee.ntu.edu.tw\/wp-content\/uploads\/2019\/02\/DSC00022.jpg 2048w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/li><\/ul>\n\n\n\n<table class=\"wp-block-table\"><tbody><tr><td>Tutorial to use Lab facilities<\/td><\/tr><\/tbody><\/table>\n\n\n\n<p>\nLinux official website:&nbsp; \n<a href=\"http:\/\/www.linux.org\">http:\/\/www.linux.org<\/a><\/p>\n\n\n\n<p>\nLatex official website:&nbsp; \n<a href=\"http:\/\/www.latex-project.org\/\">http:\/\/www.latex-project.org\/<\/a><\/p>\n\n\n\n<p>\nOpenOffice official website:&nbsp; \n <a href=\"http:\/\/www.latex-project.org\/\">\n\n\nhttp:\/\/zh.openoffice.org\/<\/a><\/p>\n\n\n\n<p>\nSubversion official website: <a href=\"http:\/\/subversion.tigris.org\/\">\nhttp:\/\/subversion.tigris.org\/<\/a><\/p>\n\n\n\n<table class=\"wp-block-table\"><tbody><tr><td>\n\n\n \n  \n  Date<\/td><td>Author<\/td><td>Content<\/td><td>Supplement<\/td><\/tr><tr><td>2007\/08\/07<\/td><td>Tian-Li Yu<\/td><td>Linux short tutorial (<a href=\"http:\/\/yrwu-wk.ee.ntu.edu.tw\/linux.zip\">zip<\/a>)<\/td><\/tr><tr><td>2007\/08\/14<\/td><td>Yuh-Renn Wu<\/td><td>Latex manuscripts and examples (<a href=\"http:\/\/yrwu-wk.ee.ntu.edu.tw\/latex.zip\">zip<\/a>)<\/td><\/tr><tr><td>2007\/08\/21<\/td><td>Chen-Mou Cheng<\/td><td>Subversion tutorial (<a href=\"http:\/\/yrwu-wk.ee.ntu.edu.tw\/svn-tut.ppt\">ppt<\/a>, <a href=\"http:\/\/yrwu-wk.ee.ntu.edu.tw\/svn-tut.pdf\">pdf<\/a>)<\/td><td><a href=\"http:\/\/svnbook.red-bean.com\/\">Online Free O&#8217;Reilly Book<\/a><\/td><\/tr><tr><td>2007\/08\/28<\/td><td>Tian-Li Yu<\/td><td>C\/C++ programming &amp; make (<a href=\"http:\/\/yrwu-wk.ee.ntu.edu.tw\/c++%20programming.zip\">zip<\/a>)<\/td><\/tr><tr><td>2007\/09\/04<\/td><td>Yuh-Renn Wu<\/td><td>Matlab tutorial (<a href=\"http:\/\/yrwu-wk.ee.ntu.edu.tw\/Matlab%20tutorial.zip\">zip<\/a>)<\/td><\/tr><tr><td>2007\/09\/11<\/td><td>Jason Chang<\/td><td>Parallel &amp; Distributed Computing (<a href=\"http:\/\/yrwu-wk.ee.ntu.edu.tw\/parallel.ppt\">ppt<\/a>)<\/td><\/tr><\/tbody><\/table>\n\n\n\n<table class=\"wp-block-table\"><tbody><tr><td>PBS tutorial<\/td><\/tr><tr><td> Examples of PBS script for submitting jobs  (job.sh) <\/td><\/tr><tr><td>\n#!\/bin\/bash    <br>\n#PBS -S \/bin\/bash  <br>\n#PBS -N grid-pi     <br>\n#PBS -l nodes=1:ppn=1,mem=1gb,walltime=100:00:00,nice=15  <br>\n#PBS -M xxx@xxx.xxx.xx   <br>\n#PBS -q long    <br>\n#PBS -m abe     <br>\n#PBS -o \/home\/username\/pbs_out  <br>\n#PBS -e \/home\/username\/pbs_out  <br>\ncd \/home\/username\/workingdirectory  <br>\n.\/gridpi.exe &gt; gridpi.info &amp;  <br>\n.\/a.out  &gt; a.out.txt &amp;   <br>\nwait   <br><br><br>\n\nNote: <br>\n\/home\/username\/pbs_out   is a directory, not a file, you need to create this directory <br><br>\n&#8220;wait&#8221; command is very important, the program will wait until the the previous command is finished.<br><br>\nxxx@xxx.xxx.xx is your emal address <br> <br>\nppn=1   ppn: How many CPUs you need per node. If you are running a \nserious job, ppn=1. If you are running a parallel job, 1-8 are suggested\n values. You may not be able\nto find a workstation with ppn larger than 8. Only a few nodes has cpus \nlarger than 8. <br><br>\nmem=1gb : How many memory you estimate your program will use. If you know your program needs memory larger than 1GB. \nYou have better to request the memory you need. Or your program might crash due to insufficient memory. <br><br>\n-l nodes=1 : node number. The default is 1 except that you are running a MPI program. <br><br>\n \n<\/td><\/tr><tr><td> Submitting jobs<\/td><\/tr><tr><td> qsub jobs.sh<\/td><\/tr><tr><td> Query job status<\/td><\/tr><tr><td> qstat <br> qstat -n <br>qstat -f <br> qstat -q<\/td><\/tr><tr><td> show all jobs running<\/td><\/tr><tr><td> showq <\/td><\/tr><tr><td> delete the job<\/td><\/tr><tr><td> qdel (jobid) <\/td><\/tr><\/tbody><\/table>\n\n\n\n<table class=\"wp-block-table\"><tbody><tr><td>BASH Script Example<\/td><\/tr><tr><td> Examples of BASH SCRIPT  (submit.sh) <\/td><\/tr><tr><td> \n#!\/bin\/bash<br>\n\nfile[1]=&#8221;t1.sh&#8221;  <br>\nfile[2]=&#8221;t2.sh&#8221;  <br>\nfile[3]=&#8221;t3.sh&#8221;  <br>\nfile[4]=&#8221;t4.sh&#8221;  <br>\nfile[5]=&#8221;t5.sh&#8221;  <br>\nfile[6]=&#8221;t6.sh&#8221;  <br>\n<br>\n\n\nfor (( i=1 ; $i&lt;=6 ; i=$(( $i+1 )) )) ; do  <br>\n<br>\n       mkdir ${file[$i]}  <br>\n       cd ${file[$i]}  <br>\n       for (( j=1 ; $j&lt;=6 ; j=$(( $j+1 )) )) ; do   <br>\n          mkdir $j    <br>\n          cp ..\/a.out $j   <br>\n          cp ..\/gridpi.exe $j    <br>\n          eval &#8220;sed &#8216;s\\\\\/home\/yrwu\/2\\\/home\/yrwu\/2\/${file[$i]}\/$j\\\\g&#8217; \n..\/excu.sh | sed &#8216;s\\\\grid-pi\\grid-pi${file[$i]}$j\\\\g&#8217;  &gt; $j\/excu.sh &#8221;\n <br>\n          eval &#8220;qsub $j\/excu.sh&#8221;  <br>\n       done  <br>\n       cd ..  <br>\ndone  <\/td><\/tr><\/tbody><\/table>\n","protected":false},"excerpt":{"rendered":"<p>Currently, Our labs have a clu&#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-21","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/yrwu-wk.ee.ntu.edu.tw\/index.php\/wp-json\/wp\/v2\/pages\/21","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yrwu-wk.ee.ntu.edu.tw\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/yrwu-wk.ee.ntu.edu.tw\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/yrwu-wk.ee.ntu.edu.tw\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yrwu-wk.ee.ntu.edu.tw\/index.php\/wp-json\/wp\/v2\/comments?post=21"}],"version-history":[{"count":5,"href":"https:\/\/yrwu-wk.ee.ntu.edu.tw\/index.php\/wp-json\/wp\/v2\/pages\/21\/revisions"}],"predecessor-version":[{"id":338,"href":"https:\/\/yrwu-wk.ee.ntu.edu.tw\/index.php\/wp-json\/wp\/v2\/pages\/21\/revisions\/338"}],"wp:attachment":[{"href":"https:\/\/yrwu-wk.ee.ntu.edu.tw\/index.php\/wp-json\/wp\/v2\/media?parent=21"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}