Multi-core processing

General discussions on potential enhancements to the APL+Win system.

Multi-core processing

Postby Davin Church » February 9th, 2013, 5:21 pm

I know that adding explicit threading capabilities to APL+Win poses some significant challenges. Some such capabilities can now be explicitly handled by the APLNext Supervisor, if the application needs fit well in that environment. Other possibilities include moving to Visual APL where .Net gives you multi-threading options.

But putting aside explicit threading for the moment, what are the possibilities for increasing APL+Win performance on multi-core machines by doing some implicit threading internally. In other words, when faced with a long and divisible task, could APL actually spin up threads on multiple cores and split up the work among them to get the job done in a fraction of the time? This might be likened to what IBM did many years ago with their "Vector Facility" system, but with multiple cores.

I know that there is significant overhead in thread management and inter-thread communications, but for largish tasks would it not be beneficial to pay those costs for an automatic benefit in performance without requiring any APL re-coding? For instance, a large-array inner product could be pretty easily divisible into smaller pieces, though the workspace memory would probably need to be shared to limit data transfer bottlenecks. Or if a user function (or primitive) were called with "Each" on a large array (where the function does not have side effects), would not there be benefits to running each invocation on a separate CPU?

Anyhow, I'm just wondering how much this concept has been explored and whether it would make a valuable addition to our favorite programming environment and let us give our users a free boost in performance on today's common multi-core hardware. It would probably only be used on a limited basis (where benefits could exceed overhead), but I should think it wouldn't be prohibitively difficult to add such support here and there so we can get the most bang for our buck.

What do you think (or what has been determined) about such possibilities?
Davin Church
 
Posts: 651
Joined: February 24th, 2007, 1:46 am

Re: Multi-core processing

Postby joe_blaze » February 27th, 2013, 4:44 am

Hopefully Davin's topic will generate more responses from APL+Win subscribers. Information about your APL+Win-based application systems that you believe would benefit from parallel processing would be important to the APL2000 support team.

Attached is a pdf-format document which provides insight into the implementation of parallel processing technology in the APL+Win product.
Attachments
The implementation of parallel processing capabilities in APL+Win.pdf
(97.41 KiB) Downloaded 596 times
joe_blaze
 
Posts: 384
Joined: February 11th, 2007, 3:09 am
Location: Box 361 Brielle, NJ 08730-0361


Return to APL+Win Wish-List

Who is online

Users browsing this forum: No registered users and 15 guests

cron