Find Jobs
Hire Freelancers

C++: Simple Code Parallelization, one thread per core.

$30-5000 USD

Terminado
Publicado hace alrededor de 14 años

$30-5000 USD

Pagado a la entrega
I have a function: int MyFunc(void *Data, const int &DataNum) in C++. I'd like to run the function many times, with DataNum ranging from 0...N-1. I'd like to run one function on each core, presumably on its own thread. When one function finishes, I'd like the next one to start. Typically, I have a multi-core processor with, say M cores, where M is typically about 4. Typically, I have N pieces of data, where N typically ranges from 2 to 12. (Sometimes I have more cores than data!) I'm looking for a class with a static function. Something like this: class SpawnFunctionOnProcessorCores() { public: static std::vector<int> SpawnAndWait( int (*Command)(void *, const int &i), void *Data, const int &MinNum, const int &MaxNum, const DWORD &TimeToWaitInMilliSeconds); } I'll be using Visual Studio 2008 on Windows. The return is the vector of results from the functions. Also, please give me a simple test program to show the function is working. ## Deliverables You can do this program pretty much any way you want. My understanding is that there are some open-source multi-core commands support by Visual Studio. If you use them, great. If not, no problem. Also, I have a class called SpawnThread, which currently spawns a bunch of threads at once. Presumably, all you need to do is figure out the number of processors on the computer, and add a thread affinity. (You might also need to know when a thread ends, so that you can spawn the next one.) If it will be helpful to you, I can share the class with you. But, I suspect you want to write your own thing.
ID del proyecto: 3271785

Información sobre el proyecto

7 propuestas
Proyecto remoto
Activo hace 14 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
Adjudicado a:
Avatar del usuario
See private message.
$42,50 USD en 14 días
5,0 (4 comentarios)
3,1
3,1
7 freelancers están ofertando un promedio de $61 USD por este trabajo
Avatar del usuario
See private message.
$85 USD en 14 días
4,4 (75 comentarios)
5,8
5,8
Avatar del usuario
See private message.
$63,75 USD en 14 días
3,9 (3 comentarios)
5,8
5,8
Avatar del usuario
See private message.
$85 USD en 14 días
5,0 (28 comentarios)
4,0
4,0
Avatar del usuario
See private message.
$42,50 USD en 14 días
0,0 (0 comentarios)
0,0
0,0
Avatar del usuario
See private message.
$80,75 USD en 14 días
0,0 (0 comentarios)
0,0
0,0
Avatar del usuario
See private message.
$25,50 USD en 14 días
0,0 (0 comentarios)
0,0
0,0

Sobre este cliente

Bandera de UNITED STATES
Boston, United States
5,0
33
Miembro desde mar 23, 2006

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.