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
 
Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
I have a quick questions. I am going through a book on C programming on my own. Afterwards, I plan to go through something call data structures and algorithms on my own also in C. I also need to learn C++, Matlab and for personal interest Haskell. For the two topic of data structures and algorithms, I understand there are standard ones across all programming languages. After learning it through C, what would be the biggest issue when trying to implement the same data...
Back
Top