cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
CPU with multiple cores and GPU
CPU with multiple cores and GPU
May 6, 2013 at 5:45pm UTC
zoran404
(263)
My understanding is that CPU that have multiple cores do multiple tasks simultaneously. So is there a way to make a program that will perform 2 operations at the same time?
Also I would like to know how to access GPU with c++.
May 6, 2013 at 6:01pm UTC
MiiNiPaa
(8886)
So is there a way to make a program that will perform 2 operations at the same time?
Threads. Currently C++11 standard have concurrency support (look into <future> and <thread> headers).
Also I would like to know how to access GPU with c++.
You need a library Like CUDA. Google GPU programming to find out more.
May 6, 2013 at 6:05pm UTC
keskiverto
(10402)
CUDA or OpenCL for GPGPU computing. CUDA is from one vendor only, OpenCL is "open standard".
Threads, OpenMP, MPI. There are several ways to harness the power of multiple cores. They have different emphasis.
Topic archived. No new replies allowed.