Re: [Vala] OpenMP Support



I think it's an amazing idea, that's why I already filed a bug report:
https://bugzilla.gnome.org/show_bug.cgi?id=777452

However, I'm no expert on OpenMP: I've only used to parallelise for loops using:
# pragma omp parallel for
I think it is not as straight forward as I thought in Vala, since for loops are translated to while loops in 
C (from what I've seen) so that you can declare the control loop variable inside the loop in C and then check 
the condition to break the loop.
I guess, some work has to be done to allow this transition from Vala to C.
I might be wrong about the statements above, but it is what I thought when I had a look at the generated C 
code for a loop.

Regards,

Adrià Arrufat

Sent from [ProtonMail](https://protonmail.ch), encrypted email based in Switzerland.

-------- Original Message --------
Subject: [Vala] OpenMP Support
Local Time: May 4, 2017 10:11 AM
UTC Time: May 4, 2017 8:11 AM
From: gaguilar aguilardelgado com
To: vala-list gnome org

Hi,

Do you know what it would be great?

Let Vala insert the correct OpenMP hints into the C compiler code when
it detects OpenMP should be used on target system.

It can even generate two versions of the same code. One with OpenMP
support and other without it, controlled by define statements and enable
or disable them at build.

It means we can take advantage of multiprocessor most of the time
without really adding complexity to vala code.

Do you think is feasible?

Other idea I was digging into is a implementation of twitter finagle in
vala. It would be great to start building serious things outside the
pure gnome environment. Servers that are really scalable and built on
C... It would be great. Futures, Servers, Metrics... It opens the door
to great things...

What do you think?

Best regards,

_______________________________________________
vala-list mailing list
vala-list gnome org
https://mail.gnome.org/mailman/listinfo/vala-list


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]