Pharo and OpenMP

Hello,

I haven’t really seen anything related to this on the Internet and maybe some people will find it cool so I just wanted to report one thing I found out today :

NativeBoost works great with OpenMP !

I wrote a C function twice, once with openMP and once without. I made 32 bits libraries and used them from inside Pharo with NativeBoost.

When using the non – openMP library, only one core was used but when using the openMP library, both my cores were used and the time it took to run was really divided by (a little bit less than) 2 !

That’s just me but i find it really cool :p

Cheers,

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

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

%d bloggers like this: