473,385 Members | 1,645 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Utilizing dual-cores/multiple CPUs for image processing

Hello, I have a conceptual question. I need to write a program that
will take as input a list of images and then process each image
individually (extract useful features from the image)

Processing each image takes about 20 seconds, and I would like to
utilize all available cores / CPUs on a machine to do processing in
parallel - for simplicity, I think it'd be easier for now to have each
core process an individual image (rather than have all cores
processing one image in parallel).

The question is, how easy is it to do this? Are there good third-party
parallel extension libraries or do I need to get clever with
multithreading (_beginthread and such)?
Jun 27 '08 #1
5 1983
<wh******@gmail.comwrote in message Hello, I have a conceptual question.
I need to write a program that
will take as input a list of images and then process each image
individually (extract useful features from the image)

Processing each image takes about 20 seconds, and I would like to
utilize all available cores / CPUs on a machine to do processing in
parallel - for simplicity, I think it'd be easier for now to have each
core process an individual image (rather than have all cores
processing one image in parallel).

The question is, how easy is it to do this? Are there good third-party
parallel extension libraries or do I need to get clever with
multithreading (_beginthread and such)?
Off-topic on c.l.c++. See this
http://www.parashift.com/c++-faq-lite/how-to-post.html

--
http://techytalk.googlepages.com
Jun 27 '08 #2
On Mon, 14 Apr 2008, wh******@gmail.com wrote:
Processing each image takes about 20 seconds, and I would like to
utilize all available cores / CPUs on a machine to do processing in
parallel - for simplicity, I think it'd be easier for now to have each
core process an individual image (rather than have all cores
processing one image in parallel).

The question is, how easy is it to do this? Are there good third-party
parallel extension libraries or do I need to get clever with
multithreading (_beginthread and such)?
Have a look at OpenMP, this is quick and easy and basically does what you
need.

<https://computing.llnl.gov/tutorials/openMP/>

A lot of compilers have it these days.

Regards
--
"He expanded his chest to make it totally clear that here
was the sort of man you only dared to cross if you had a
team of Sherpas with you. "
Jun 27 '08 #3
Off-topic on c.l.c++. See thishttp://www.parashift.com/c++-faq-lite/how-to-post.html
I'm coding in C++, how's this off-topic?
Jun 27 '08 #4

<an****************@gmail.comwrote in message >
>Off-topic on c.l.c++. See
thishttp://www.parashift.com/c++-faq-lite/how-to-post.html

I'm coding in C++, how's this off-topic?
This NG is for discussing *language* specific features of C++ as defined in
ISO/IEC 14882:2003. Processes, threads, cores etc are OT here.

--
http://techytalk.googlepages.com
Jun 27 '08 #5
On Apr 14, 10:20*pm, whisk...@gmail.com wrote:
Hello, I have a conceptual question. I need to write a program that
will take as input a list of images and then process each image
individually (extract useful features from the image)

Processing each image takes about 20 seconds, and I would like to
utilize all available cores / CPUs on a machine to do processing in
parallel - for simplicity, I think it'd be easier for now to have each
core process an individual image (rather than have all cores
processing one image in parallel).

The question is, how easy is it to do this? Are there good third-party
parallel extension libraries or do I need to get clever with
multithreading (_beginthread and such)?
you may want to look at intel threading building blocks.

Thanks,
Balaji.
Jun 27 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Tomer Ben-David | last post by:
Hi I have a big j2ee appliction that was so forth run on a single cpu machine. I have tested it on a dual cpu machine, its running much slower (about X3 times slower). I know that...
1
by: Yaroslav K. Kravchishin | last post by:
Oracle 7.0.1 Server When I type SQL> select sysdate from dual; SYSDATE --------- 01-OCT-03 01-OCT-03 2 rows selected.
3
by: Yaroslav K. Kravchishin | last post by:
Oracle 7.0.1 Server When I type SQL> select sysdate from dual; SYSDATE --------- 01-OCT-03 01-OCT-03 2 rows selected.
5
by: John Dalberg | last post by:
I am planning to build a server to be used as a SQL Server and web server. Right now I can only use a single box for both. I have read some threads were dual processors are having problems with...
25
by: John Gibson | last post by:
Hi, all. I need to upgrade my dual Xeon PostgreSQL engine. Assuming similar memory and disk sub-systems, I am considering a Quad Xeon system vs. a Dual Itanium for PostgreSQL. I believe that...
2
by: webwarrior | last post by:
Hi, Is there a reason why we have to pay more for licensing for a different kind of processor? Why are we not charged for the Hyperthreading on some processors also. If Oracle is really...
2
by: bruce_brodinsky | last post by:
Don't know whether to post this on a hardware or software board, so here goes: I wrote a c# chess program which searches for checkmate. Now, it's single-threaded. But I was thinking. I just got...
4
by: LLessieux | last post by:
Hi, I have been seeing a strange behaviour when doing some tests on a Dual - Dual Core Opteron system using Windows XP (32bits with SP2). In out application we have a wrapper around the thread...
2
by: =?Utf-8?B?cHJhZHk=?= | last post by:
Hi, Is it possible for me to create new users without using the wizard? I am using a custom membership as i want to capture more data other than the ones which are available in the wizard. Is it...
1
by: Luting | last post by:
Hi everyone, I am working on a project using Access as the frontend of a Oracle database. I'd like to use the Dual table in Oracle so I made a link table in Access for the Dual. However, it...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.