Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/samsa1/integer-para-mul
https://github.com/samsa1/integer-para-mul
Last synced: 16 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/samsa1/integer-para-mul
- Owner: samsa1
- License: gpl-3.0
- Created: 2021-09-28T16:23:56.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-03-04T09:26:58.000Z (almost 3 years ago)
- Last Synced: 2024-11-06T23:46:55.470Z (2 months ago)
- Language: C
- Size: 75.2 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.