Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/samsa1/integer-para-mul


https://github.com/samsa1/integer-para-mul

Last synced: 16 days ago
JSON representation

Awesome Lists containing this project

README

        

## How to use this parallel integer multiplication code.

Assume DIR is this directory.

1) Download gmp-6.2.1

2) extract gmp-6.2.1.tar.gz and go to gmp-6.2.1

3) patch -i $DIR/configure.patch

4) patch -i $DIR/gmp-h.patch

5) patch -i $DIR/gmp-impl.patch

6) cp $DIR/mul_fft_para.c mpn/generic/mul_fft.c

7) autoreconf -i

8) ./configure --disable-shared --enable-pthread

9) make -j8

## How to use GMP's benchmark

1) compile GMP as presented above

2) cd tune

3) patch -i $DIR/speed.patch

4) patch -i $DIR/speed_pthread.patch

5) make speed

6) ./speed -s 10000000 -n 32 mpn_mul_n

## How to use our benchmark

1) compile GMP as presented above

2) gcc -I. $DIR/test-gmp-para.c .libs/libgmp.a -O3 -lpthread -lhwloc

3) ./a.out -t=32 -mul=2 10000000
to have the timers with 1, 2, 4, 8, 16 and 32 threads.