Java parallel programming

เห็นแล้วน่าสนใจ เดี๋ยวต้องจัดเวลามาลองซะแล้ว ตามลิงก์นี้ไปเลย

The Ateji white-paper “Matrix multiplication with Ateji PX” documents the case of the standard benchmark for data parallelism, where a 12.5x speed-up was observed on a 16-core server. No need to be specialized in multithreading, all what is required is the addition of a single || operator in the source code:

for ||(int i : I) {
   for(int j : J) {
      for(int k : K) {
         C[i][j] += A[i][k] * B[k][j];
      }
   }
}

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s