Posts

Review of a paper about scalable things, MPI, and granularity

Paper: Pjotr Prins, Dominique Belhachemi, Steffen Möller and Geert Smant Scalable Computing for Evolutionary Genomics Methods in Molecular Biology, 2012, Volume 856, Part 5, 529-545, DOI: 10.1007/978-1-61779-585-5_22 Highlights: p. 531 "Typically, parallel programming implies complicated data and control flow; causes dead locks, where depending threads wait for each other forever; and causes race conditions, where threads go into eternal loops." This is simply not true with 'message passing'. With message passing, the source code contain no lock at all. Usually, you only need 3 functions to pass messages: send(), probe(), and receive(). send() => sends a message to a destination probe() => probes a message from a source, if any receive() => receives a message Also, race conditions are not about eternal loops at all. A race can usually occur when a given bug is triggered depending on concurrent completion of at least two parallel events. ...

Function pointers v. virtual methods in HPC

The design pattern 'Adapter' is useful to add a component to an existing architecture without modifying the said architecture. The Ray assembler is built on top of RayPlatform, a distributed compute engine . Ray is an array of plugins implementing algorithms for various things in genomics, and each of these plugins uses adapters to bind their behavior onto the RayPlatform core. The initial design of adapters in RayPlatform was based on a common interface, using pure virtual classes. Although this model is an elegant design, it also implies a significant overhead because adapters in RayPlatform are called in the main loop, which aims at running as fast as possible. There are at least two problems with virtual methods: they add additional indirections and they can not be inlined. Furthermore, using classes to create these adapters implies that it is required to declare the class in a .h, and to implement it in a .cpp. New adapter architecture Recently, we have moved away f...

Conveying innovation with less energy

Innovation is often observed when more stuff is produced from less resources. Incentives to invest in innovation are mostly to save money so that money can work on another part of the pipeline or process. One extraordinary pathway to get there is to start from something else -- to scratch another person's back instead of starting from scratch. In some fields, starting from existing work is easy and not cumbersome while in a sizable number of situations, it is hardly the case. In the software industry, source codes are the basic unit of stuff you can build upon or share with other peers. On one end, one can argue that there are public domain products, whose blueprints are not protected by anything whatsoever. That kind of creative process can be appealing because nothing restricts the flow of intellectual property and therefore the exchange rate is very high. However, because there is simply no copy protection, authors will not often select this course of actions. In the middle, fr...

Ray 2.0.0 released

Hello, Ray 2.0.0 codenamed "Dark Astrocyte of Knowledge" is available for download. This version ships with RayPlatform 1.0.3 codenamed "Gray Pylon of Wisdom". Not much thing changed since v2.0.0-rc8. To get Ray v2.0.0: http://denovoassembler.sf.net Also, there is a new section on the website for frequently asked questions. Changes in Ray between v2.0.0-rc8 and v2.0.0 commit 6adeef3d814dc2acbc32444ec3ed5a49a709e98c Author: Sébastien Boisvert Date:   Fri Jun 22 20:58:37 2012 -0400     This is Ray v2.0.0. commit 2243df732615cb2419e81c57a233cb1ffd214583 Author: Sébastien Boisvert Date:   Thu Jun 21 20:27:15 2012 -0400     Floating numbers must not be stored with the integer type 'int'. commit 4b4815772354ea402b0ce5a9500d66eed37be8d7 Author: Sébastien Boisvert Date:   Thu Jun 21 16:23:35 2012 -0400     This solves a division by 0. commit d96047c2040bed3395ae36a13505608b617b3346 Author: Sébastien Boisvert Date: ...

Passing messages in the cloud

In this tutorial, I will show how to run Ray (v2.0.0-rc7) on 4 Amazon EC2 small instances (m1.small). Tests with micro instances showed that it does not work for high performance computing. The virtual core of a micro instance works at 5% sometimes, and it does not work at all most of the time. That is why it is free ! For a list of instance types, see this page. Each small instance will provide 1 virtual core with 1 Elastic Cloud Unit and 1.7 GB memory. We will run Ray on 4 instances with message passing in the cloud. A small instance cost 0.080 $ per hour (on-demand pricing). So this tutorial should cost me 0.32 $ for the small instances and maybe some more for the Elastic Block Storage although I think this is free at some point. You can also pay upfront for a term of 1 year or 3 years to have a  lower pricing . Tasks to do on the Amazon Web Services Console First, I spawned 4 m1.small instances in the same zone with Ubuntu 12.04 64 bits. When creating y...