Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenMP and TRIQS fourier transforms #697

Open
HugoStrand opened this issue Apr 17, 2019 · 5 comments
Open

OpenMP and TRIQS fourier transforms #697

HugoStrand opened this issue Apr 17, 2019 · 5 comments
Assignees
Labels
Bug OpenMP OpenMP related issues

Comments

@HugoStrand
Copy link
Member

Dear all,

We have been combining TRIQS with OpenMP for a while in the TPRF project. One issue that we face is that the fourier transforms between imaginary time and Matsubara frequency and between momentum and real space are all using FFTW which is not thread safe in the creation of the "FFTW-plan".

In order to run the transforms inside an OpenMP threaded region I have hacked the TRIQS fourier trasform to be able to create the FFTW plan before entering the parallel region, see:

https://github.com/TRIQS/tprf/blob/unstable/c%2B%2B/lattice/chi_imtime.cpp#L292

The hacked TRIQS fourier transform files are residing in:

https://github.com/TRIQS/tprf/tree/unstable/c%2B%2B/fourier

Could this feature be enabled in the TRIQS library somehow?

The basic problem we face is transforming frequency and momentum dependent objects to and from imaginary time and real space.

Currently we do this in steps where we thread over one mesh and fourier transform over the other, and then repreat the process but switching the meshes.

This is one bottleneck for RPA and GW calculations that needs to be as fast as possible.

Cheers, Hugo

@Wentzell
Copy link
Member

Hey @HugoStrand,

Thank you for pointing this out!
This is indeed a serious drawback of the fourier functionality at the moment and needs
a careful analysis. We hope to address this problem soon after the upcoming triqs meeting
in June.

Best, Nils

@Wentzell Wentzell added Bug OpenMP OpenMP related issues labels Apr 22, 2019
@JATIN199604
Copy link

sir when i do update these are the errors coming .
jatin@jatin-HP-Laptop-14s-cr1xxx:~/DMFT$ sudo apt-get update
[sudo] password for jatin:
Hit:1 http://linux.teamviewer.com/deb stable InRelease
Ign:2 http://ppa.launchpad.net/antonio.chiurazzi/ppa/ubuntu bionic InRelease
Get:3 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Hit:4 http://in.archive.ubuntu.com/ubuntu bionic InRelease
Get:5 http://in.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Ign:6 http://ppa.launchpad.net/longsleep/bcmwl/ubuntu bionic InRelease
Hit:7 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu bionic InRelease
Get:8 http://in.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Err:9 http://ppa.launchpad.net/antonio.chiurazzi/ppa/ubuntu bionic Release
404 Not Found [IP: 91.189.95.83 80]
Get:10 http://in.archive.ubuntu.com/ubuntu bionic-updates/main amd64 DEP-11 Metadata [278 kB]
Err:11 http://ppa.launchpad.net/longsleep/bcmwl/ubuntu bionic Release
404 Not Found [IP: 91.189.95.83 80]
Get:12 http://in.archive.ubuntu.com/ubuntu bionic-updates/main DEP-11 48x48 Icons [66.7 kB]
Get:13 http://in.archive.ubuntu.com/ubuntu bionic-updates/main DEP-11 64x64 Icons [127 kB]
Get:14 http://in.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 DEP-11 Metadata [239 kB]
Get:15 http://in.archive.ubuntu.com/ubuntu bionic-updates/universe DEP-11 48x48 Icons [193 kB]
Get:16 http://in.archive.ubuntu.com/ubuntu bionic-updates/universe DEP-11 64x64 Icons [404 kB]
Get:17 http://in.archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 DEP-11 Metadata [2,464 B]
Reading package lists... Done
E: The repository 'http://ppa.launchpad.net/antonio.chiurazzi/ppa/ubuntu bionic Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://ppa.launchpad.net/longsleep/bcmwl/ubuntu bionic Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

@Wentzell
Copy link
Member

This is not a problem with the install of triqs, but rather a problem with other repositories that you set up in your operating system.
You might want to remove those problematic repositories from your /etc/apt/sources.list file or the /etc/apt/sources.list.d directory.

@JATIN199604
Copy link

Sir i have installed the Docker but when i do docker pull flatironinstitute/triqs
it shows error .
Using default tag: latest
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.39/images/create?fromImage=flatironinstitute%2Ftriqs&tag=latest: dial unix /var/run/docker.sock: connect: permission denied

@Wentzell
Copy link
Member

This problem is not related to TRIQS. You have a problem in your docker installation.
This is most probably resolved by following the steps in https://docs.docker.com/install/linux/linux-postinstall/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug OpenMP OpenMP related issues
Projects
None yet
Development

No branches or pull requests

4 participants