READ ME for SOBOL QUASI RANDOM NUMBER GENERATOR

********************************************************************
Quasi Random Number Generator
Abishek Ramdas
********************************************************************
Single threaded implementation
File name - quasi_rand_gen_modification.c

How to run -
at the command prompt

$gcc quasi_rand_gen_modification.c (return)
$./a.out (return)

Output:
Requests:  Number of patterns to be generated and Dimensions
File - QRNG_Patterns_sngl_thrd.txt in the same folder which contains the C file.

********************************************************************
Multiple threaded implementation
File name - quasi_rand_gen_pthreads.c

How to run -
at the command prompt

$gcc -pthread quasi_rand_gen_modification.c (return)
$./a.out (return)

Output:
Requests:  Number of patterns to be generated, Dimensions and Number of cores
File - QRNG_Patterns_pthreads.txt in the same folder which contains the C
file.

********************************************************************
Testing Driver

In the linux system there is a binary called diff

Usage : diff filename1 filename2 (return)

Result : gives the differnce between the two files. gives no output if the two files are the same.

syntax
$diff QRNG_Patterns_sngl_thrd.txt QRNG_Patterns_pthreads.txt

*********************************************************************
Additional information
1. Make sure the number the same number of patterns are generated for single threaded and multi threaded version.
2. Make sure the dimensions provided are also the same.
3. A sleep signal is provided for 2 seconds before the output is printed on the screen in the multi threaded part. so if it looks like it hanged please wait.
********************************************************************

Comments

Popular posts from this blog

Generating 16k ROM using Xilinx IP COREGEN and simulating it in modelsim

Setting up atalanta ATPG to work on Linux

Sparse matrix - 3 tuple representation