Conjugate Gradient solver for the PHPC exam serial version
Diffusion CG-PHPC (master)
Recent Commits
Recent Commits
Commit | Author | Details | Committed | ||||
---|---|---|---|---|---|---|---|
3cb8b6c9c35d | richart | Merge branch 'master' of ssh://c4science.ch/source/CG-PHPC | Jun 29 2020 | ||||
2907d5e6c355 | richart | Bug fix | Jun 29 2020 | ||||
3d51197d64b7 | tim010007 | remove accidently upload file | May 11 2020 | ||||
d7aed02e9979 | slwang | parallel v1.0: cblas_dgemv | Apr 30 2020 | ||||
e6d881e918ca | richart | renaming I and J to Irn and Jcn | Mar 17 2020 | ||||
f58f9bfd758d | vkeller | add sparse version | Jan 15 2020 | ||||
d50aa55b161b | vkeller | add sparse version | Jan 15 2020 | ||||
30b74e7f5b41 | vkeller | - | Jan 15 2020 | ||||
e4f208eaaac8 | vkeller | add README.md | Jan 15 2020 | ||||
41f64856fbf0 | vkeller | add README.md | Jan 15 2020 | ||||
4302d9d2099b | vkeller | add README.md | Jan 15 2020 | ||||
6ffb3344895c | vkeller | add README.md | Jan 15 2020 | ||||
e0151a7d9175 | vkeller | add README.md | Jan 15 2020 | ||||
8a79812cb90a | vkeller | add timer | Jan 15 2020 | ||||
be9f7b140fbf | vkeller | add timer | Jan 15 2020 |
README.md
README.md
PHPC - CONJUGATE GRADIENT PROJECT
HOWTO COMPILE AND RUN
Requirements :
- a recent compiler (like gcc or intel)
- a BLAS library (like openblas or intel MKL)
compile on SCITAS clusters :
$ module load gcc openblas $ git clone ssh://git@c4science.ch/source/CG-PHPC.git $ make
run on a SCITAS cluster interactively (reservation name is indicative) :
$ salloc -N 1 -n 1 --reservation=phpc-reservation $ srun ./conjugategradient lap2D_5pt_n100.mtx
You should see this output (timing is indicative) :
$ srun ./conjugategradient lap2D_5pt_n100.mtx size of matrix = 10000 x 10000 Call cgsolver() on matrix size (10000 x 10000) [STEP 488] residual = 1.103472E-10 Time for CG = 36.269389 [s]
The given example is a 5-points stencil for the 2D Laplace problem. The matrix is in sparse format.
The matrix format is Matrix Market format (.mtx extension). You can use other matrices there or create your own.
c4science · Help