Kemarin hari Senin, sempat-sempatnya membuat pancake oatmeal (lagi?big grin). Dijadikan bekal anak-anak. Sisanya saya makan sendir devili. Karena rusuh-rusuh time out, maka dibuat 1/2 resep saja, itupun tetap memakan waktu sehingga akhirnya berangkat sekolahnya jadi kesiangan haha.. hee hee

Resep dari bu Almyra, thank you sooo much ! karena resep pancake itu banyak, tapi yang pake oatlah yang saya mau. Top lah ini thumbs up.

Baiklah ini resepnya:

Bahan:

  • 1 cup oatmeal diblender alus
  • 1/2 cup tepung kunci
  • 1/2 cup tepung whole wheat
  • 1 tsp b.soda
  • 2 tsp b.powder
  • 1 tsp salt
  • 3 tbs gula <– saya beri gula palm agar lebih gurih dan wangi
  • 1/3 cup minyak
  • 1 tbs vanilla
  • 1 1/2 cup susu+1 tbs lemon
  • 2 telur

Cara membuat:

Eh bu Almyra ga ngasih cara membuatnya , maka saya asumsi saja peace sign:

  • Siapkan buttermilk, susu + 1 buah lemon, diamkan.
  • Siapkan bahan kering (tepung oat, tepung terigu, vanila, b.soda, b.powder, garam, gula) disatukan dalam satu tempat.
  • Tuangkan berturut-turut: telur, susu, minyak.

Adonan siap.

Saya gunakan cetakan yang beli di Ace Hardware (bangga oh go on), ga tau cetakan apa namanya.

  • Oles cetakan dengan minyak, sedikit saja
  • Tuang satu sendok sayur, diamkan sesaat sampai timbul bolong-bolong
  • Tutup cetakan, balikkan cetakan, tunggu 1-2 menit

Pancake siap dihidangkan drooling.

Saya ambil 2 buah pancake, olesi tengahnya dengan nutella. jadilah Dorayaki ga jelas hahahaha.. blushing. Tapi anak-anak suka love struck, dan nutella tea atuh laaah… Image

EH maaf, foto pancakenya malah ga ada, maklum ga bakat poodpotograpi, dibilangin harus les dulu sama Jerry Aurum peace sign.

Advertisements

Sebetulnya saya sudah menggunakan MPI.NET dengan Visual C#. Its works ! Ini makalah saya sudah dipublikasikan Oktober 2013 lalu, tentang pemanfaatan MPI.NET ini. Tapi ketika ingin agar bisa dieksekusi di multicore, koq tidak bisa waiting. lalu mungkin, mungkin lho ya akan beralih ke Open MPI mungkin harus dengan C/C++. Meski hati ini berharap-harap agar bisa kembali ke Java broken heart dengan MPIJ Express. You know, I hate C/C++ devil . Tapi karena kata Tiobe C tetap no 1 mengalahkan Java. Baiklah..

Saya catat dulu dari situs ini, tentang bagaimana mengkonfigurasi Open MPI di Windows. Tapi belum dicoba hurry up!.

LIngkungan:

  • Windows 7 Ultimate x64
  • Open MPI 1.6.1 x64
  • Microsoft Visual Studio 2012 Professional x86 (only needed for cl.exe) 

Saya ga punya VS2012 no talking.

“This tutorial does not make direct use of Visual Studio. Any version of Visual Studio should do, all we really need is the Microsoft C++ compiler and related tools that Open MPI uses.”.

 

Step 1: Installation

Download and install the latest version of Open MPI. Note that I downloaded the 64 bit version. I also changed the installation path to “Program Files” instead of the default “Program Files (x86)”. The Open MPI website states that this a temporary issue with their installer that should be fixed in time. If the installer asks to setup PATH variables then do so for all users. If the installer reports a failure when trying to do so, then don’t worry, we can do it manually as well.

 

Step 2: Open MPI PATH setup

For me the installer failed to setup any PATH variables, stating that my PATH was too long (not true). In this case we shall set it up manually. Simply add the bin directory of Open MPI to the global PATH variable. Thus in my case I added “C:\Program Files\OpenMPI_v1.6\bin” without the quotes to my PATH.

 

Step 3: cl.exe PATH setup

Open MPI for Windows is pre-configured to use the Microsoft C/C++ Compiler. It thus needs access to cl.exe, which controls the Microsoft Compiler and Linker. It is important here to add the correct directory to your PATH depending on the architecture (32 bit or 64 bit) of the Open MPI that you downloaded or else you will get linker errors. Since I downloaded the x64 version, I added the following directory to my global PATH: “C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin\amd64″ If you installed the x86 version of Open MPI then you can use the base bin directory (without the amd64 on the end).

 

Step 4: VCVARS

cl.exe won’t work out the box in any command prompt. It is required that the Visual Studio environmental variables are set up. The good news is that Microsoft provides bat files to do this for you. The bad news is that these settings are lost when you restart your computer. Thus here you have a choice, either simply run the bat file before you wish to compile MPI programs (not that much hassle since the bat file is in the same directory as cl.exe and thus in your PATH now), or you can add the file to your task scheduler to run at system startup. The name of the file is either vcvars32.bat or vcvars64.bat for x86 and x64 architectures respectfully. I just simply type vcvars64 into my command prompt before compiling the first time. At this point everything should be setup.

 

MPI: cores or processors?

February 22, 2014

situs favorit saat ini: http://stackoverflow.com !

stakoverflow ini situs yang sangat konstruktif, semua pertanyaan dan jawaban adalah menuju sebuah solusi. bukan untuk berdebat, beropini, apalagi ber-lovers_vs_haters, yang mana rajin sekali muncul di berbagai forum, termasuk fb (karena itu, deactive !).

lebih baik baca-baca di sini, adem.

berikut saya pastekan. krn memang terngiang-ngiang di benak.

http://stackoverflow.com/questions/5797615/mpi-cores-or-processors/5797818#5797818

Q:

Hi I am kind of MPI noob so please bear with me on this one. 🙂

Say I have an MPI program called foo.c and I run the executable with

mpirun -np 3 ./foo

Now this means the program will be run in parallel using 3 processors (1 process per processor). But since most processors today have more than one core, (take 2 cores per processor say) does this mean the program will be run on 3 cores or 3 processors?

Probably this has to do with my poor understanding of what the difference between a core and a processor really is so if you could also explain a little more that would be helpful.

Thank you.

A:

mpirun will execute a number of “processes” on the machine. The cpu or core where these processes are executed is operating-system dependent. On a N cpu machines with M cores on each cpu, you have room for N*M processes running at full speed.

But, typically:

  • If you have multiple cores, each process will run on a separate core
  • If you ask for more processes than the available core*cpus, everything will run, but with a lower efficiency (yes, you can run multi-process jobs on a single-cpu single-core machine…)
  • If you are using a queuing system or a pre configured MPI system for which a list of remote machines exists, the allocation will be distributed on the remote machines.

(Depending of the mpi implementation, there might be some options to force a specific cpu or core, but you should not need to worry about that)

The OS Scheduler will try to optimally allocate separate cores to your parallel application’s processes in a multi core system OR to separate processors in multi processor system.

The interesting case is a multi-core multi cpu system. Again you can let the OS Scheduler do it for you , OR you can enforce the ( logical/physical) core affinity to your processes to bind them to a particular core.

Distribution of processes to cores and processors is handled by the operating system and the MPI implementation. Running on a desktop, the operating system will generally put each process on a different core, potentially redistributing processes during run-time. In larger systems such a s a supercomputer or a cluster, the distribution is handled by resource managers such as SLURM. However this happens, one or multiple processes will be assigned to each core.

Regarding hardware, a core can run only a single process at a time. Technologies such as hyper-threading allows multiple processes to share the resources of a single core. There are cases where two or more processes per core is optimal. For instance, if a processes is doing a large amount of file I/O another may take its place and do computation while the first is hung on a read or write.

In short, give MPI the number of processes you want to execute. Distribution of these processes is then handled transparent to the user. The number of processes that you use should be determined by requirements of the application (powers of 2, number of files to be read), the number of cores available, and the optimal number of processes per core for the application.

Kelas Inspirasi Bandung

February 21, 2014

Ada sebersit keraguan ketika mendapati diri ini berkesempatan mengikuti Kelas Inpirasi Bandung, Rabu 19 Februari 2014 lalu it wasn't me. Pertama, ketuaan big grin ! Ini acara anak-anak muda toh? Saya ibu tiga anak, tiga anak saya pegang sendiri tanpa bantuan pengasuh, tiga anak saya perlakukan unik dan hati-hati, penuh dedikasi dan mengabaikan hal lainnya. Tiga anak, cukup membuat saya memahami makna kehidupan yang sudah disuratkan oleh Nya. Apa saya masih perlu mencari inspirasi lain? Kedua, waktu kegiatan yang tidak tepat (tidak pernah ada waktu yang tepat untuk mahasiswa PhD – Padahal hampir DO ini) nail biting. Ketiga, tiga agenda pekerjaan menanti di hari Rabu waiting. Keempat, tidak turut briefing, tidak turut survei, tidak turut pertemuan apapun I don't know. Tapi.. memenuhi suatu kesanggupan adalah kewajiban, maka berangkatlah saya menuju SD Krida Winaya 1 Bandung, berbekal Google Map praying.

Dan hasilnya.. sampai hari ini masih terngiang-ngiang celotehan dan wajah ceria anak-anak itu .. love struck  “Ibuuuuuu..  cita-cita aku mau jadi brimob !” big hug.

Merinding, mengharukan, mencabik-cabik hati ini. Kemana saja saya selama ini? feeling beat up

Membesarkan keluarga adalah hal utama, mensterilkan anak-anak saya dari berbagai  kerumitan kehidupan barangkali dengan baik telah saya lakukan. Tapi itu tidak cukup. Ratusan bahkan ribuan anak-anak lain di luar sana tidak mendapatkan kesempatan yang sama dengan anak-anak saya broken heart. Adalah tidak cukup, jika kita hanya berfokus kepada diri dan lingkungan sendiri. Sudah saatnya berkontribusi lebih  luas, berperan lebih besar untuk anak-anak negeri ini rock on!.

Adalah anak-anak, tempat kita menggantung harapan, dimana semua kebaikan harus kita jaga dan upayakan; hanya untuk mereka big hug. Adalah anak-anak, tempat keindahan kita berlabuh, dimana bumi beserta isinya ini diperuntukkan untuk keceriaan mereka big hug. Terima kasih Kelas Inspirasi, yang telah memberi saya kesempatan terjun langsung terlibat, meski kecil dan tidak bermakna banyak untuk anak-anak ini love struck.  Terima kasih Kelas Inspirasi.

Ayi Purbasari, Dosen Teknik Informatika Unpas,  Bandung.

di Kelas 4 SD Krida Winaya 1 Bandung

di Kelas 4 SD Krida Winaya 1 Bandung

Tim Kelas Inspirasi SD Kridak Winaya 1 Bandung

Tim Kelas Inspirasi SD Krida Winaya 1 Bandung