Implementing Dual Core Programming for Stochastic Chemical Simulations

AI Thread Summary
To implement dual core programming for a stochastic chemical simulator on AMD Athlon 64 X2 4200+ processors, utilizing multiple threads is essential, as the operating system will manage load balancing across the cores. Users can choose between OpenMP and MPI for parallel processing, with OpenMP requiring specific compiler support. For cluster porting, MPI is recommended due to its process-oriented nature. It's noted that some compilers may claim to automatically parallelize code, but this often proves ineffective. Properly configuring thread assignments can enhance performance and ensure efficient core utilization.
ptabor
Messages
14
Reaction score
0
Hello all,

I'm running a stochastic simulator for chemical rate equations and I'd like to know how to specifically impelement a dual core solution on my AMD athlon 64 X2 4200+ processors.

When I run the task manager with the simulator running, it is apparent that both cpus are running cycles - but I'd like to rig it up to do this manually.

Will I be dealing with OpenMP or MPI or something else altogether?

any info would be appreciated
 
Technology news on Phys.org
Just use more than one thread, and the OS will automatically load-balance the two cores effectively.

- Warren
 
You can also assign different threads to run on different processors if you want to ensure they'll be running on different processors.
 
ptabor said:
Will I be dealing with OpenMP or MPI or something else altogether?

If you're planning on porting your code to a cluster, you'd probably want to go with a process-oriented library like MPI. Otherwise, either OpenMP or MPI should work okay. OpenMP requires compiler support. What OS are you running?

Some compilers promise to automatically parallelize your code; my (very little) experience has been this doesn't work very well.

Good luck,
Tim
 
Thread 'Is this public key encryption?'
I've tried to intuit public key encryption but never quite managed. But this seems to wrap it up in a bow. This seems to be a very elegant way of transmitting a message publicly that only the sender and receiver can decipher. Is this how PKE works? No, it cant be. In the above case, the requester knows the target's "secret" key - because they have his ID, and therefore knows his birthdate.
Back
Top