Giter Club home page Giter Club logo

openmp's Introduction

/**********************************************************************************
 *                                                                                *
 *                                                                                *
 *            Instructions to compile and execute the source code files           *
 *                                                                                *
 *                                                                                *
 **********************************************************************************/


/*********************************************COMPILING THE SOURCE CODE**********************************/

1) Compiling the quicksort.c file

		gcc -fopenmp -o qs quicksort.c

2) Compiling the Gaussian Elimination File
		
		gcc -fopenmp -o gauss gaussian_openmp.c



/************************************EXECUTING THE EXE FILES*******************************************/

(1) Execution of the Quicksort program, type:
	
	./qs [numb_elements] [numb_threads]

        numb_elements    are the number of elements to be sorted. 

        numb_threads     are the number of threads that the program is desired to 
                         be run on (the number of threads should be a power of 2).
		
(2) To execute the Gaussian Elimination program:    
    
        ./gauss [-n problemsize] [-I init_type] [-m max_random_num] [-P print_flag]
 
 
	If -n, -I and -m are used, init_type can be either "rand" or "fast"
				   
	problemsize       is the size of the matrix (Example: 16 indicates a 16 X 16 matrix)     
					  
	init_type         Initialization type can be random (rand) or fast (fast)              
					  [rand/fast]

	max_random_num    maximum value that a generated random number can take.                  
					  [a positive integer]
        
        print_flag        Default value is 0. A value of 1 prints the output matrix.
                                          [0/1]
 

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.