Closed Luke-Pratley closed 8 years ago
@dpshelio @mdavezac So I have finished adding FFT planning to Eigen. The Multi threading has also been added at the Purify level, since it is just a few lines of code. The only problem left is to add the multithreading flag for FFTW in the GreatCMakeCookOff. I have linked the library manually for testing, but we need to still fix this in general.
Given that is some where on the UCL github, maybe we should update that? I would do it, but the CMAKE code looks complicated.
try and modify the command in sopt as in
lookup_package(Eigen3 HG_REPOSITORY url/to/your/bitbucket/repo)
@mdavezac That worked for Purify, but in sopt it still downloads from https://bitbucket.org/eigen/eigen/get/3.2.5.tar.gz. I tried to find where it sets this in cmake, but I have no clue. I might try looking more later.
No that problem has been solved 👍. I was meant to edit dependencies.cmake, not LookUpSopt.cmake.
Now we just need to link the multithreading part of FFTW using cmake, then I think this issue will be closed.
ucl/GreatCMakeCookOff#49 should allow Purify to use multithreading with the addition on #47. Notice my comments on Threads
and OpenMP
.
It is expected that images might need to be ~ 8k by 8k in pixels. Since the FFT is applied repetitively, when images get this large it might help if an optimised plan is made for FFTW when constructed the gridding operator.
Also, it could be worth using the multithreading methods in FFTW, since it is quite similar.