Thread: How to optimize a program for multiple processsing

  1. #1
    Registered User
    Join Date
    Feb 2013
    Location
    Buea Cameroon
    Posts
    64

    How to optimize a program for multiple processsing

    Good day,
    I will like to write a program that can run parallel on multiple prcessors for example a program that can look for the can multiply two numbers for example while dividing some other numbers at the same time.
    Thanks

  2. #2
    SAMARAS std10093's Avatar
    Join Date
    Jan 2011
    Location
    Nice, France
    Posts
    2,694
    You could use MPI, openMp, or Cuda.
    Code - functions and small libraries I use


    It’s 2014 and I still use printf() for debugging.


    "Programs must be written for people to read, and only incidentally for machines to execute. " —Harold Abelson

  3. #3
    Registered User
    Join Date
    Feb 2013
    Location
    Buea Cameroon
    Posts
    64
    Quote Originally Posted by std10093 View Post
    You could use MPI, openMp, or Cuda.
    I realy dont understand what this are. are they programming languages? also, Cant it be done in C?

  4. #4
    SAMARAS std10093's Avatar
    Join Date
    Jan 2011
    Location
    Nice, France
    Posts
    2,694
    They are libraries that allow us to write programs in C in parallel.
    Code - functions and small libraries I use


    It’s 2014 and I still use printf() for debugging.


    "Programs must be written for people to read, and only incidentally for machines to execute. " —Harold Abelson

  5. #5
    Registered User
    Join Date
    Nov 2011
    Posts
    161
    Quote Originally Posted by acho.arnold View Post
    I realy dont understand what this are. are they programming languages? also, Cant it be done in C?
    Google is a wonderful thing:

    https://developer.nvidia.com/get-sta...llel-computing

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Optimize?
    By nuko in forum C Programming
    Replies: 3
    Last Post: 12-21-2011, 01:14 AM
  2. C program to optimize in terms of speed
    By KongkonDutta in forum C Programming
    Replies: 19
    Last Post: 12-16-2011, 10:53 AM
  3. Replies: 5
    Last Post: 08-16-2007, 11:43 PM
  4. Help me optimize
    By sand_man in forum Game Programming
    Replies: 14
    Last Post: 05-10-2005, 05:19 PM
  5. How to Optimize
    By cfrost in forum C++ Programming
    Replies: 5
    Last Post: 11-09-2004, 09:07 AM