JiscMail Logo
Email discussion lists for the UK Education and Research communities

Help for CCPEM Archives


CCPEM Archives

CCPEM Archives


CCPEM@JISCMAIL.AC.UK


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

CCPEM Home

CCPEM Home

CCPEM  February 2016

CCPEM February 2016

Options

Subscribe or Unsubscribe

Subscribe or Unsubscribe

Log In

Log In

Get Password

Get Password

Subject:

Re: Vectorized RELION

From:

Wolfgang Lugmayr <[log in to unmask]>

Reply-To:

Wolfgang Lugmayr <[log in to unmask]>

Date:

Mon, 1 Feb 2016 12:49:09 +0100

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (1 lines)

hi dimitry,

if you want to get the best out of icc try:
     CXX="icpc" CXXFLAGS="-O3 -xHOST" \
     CC="icc" CFLAGS="-O3 -xHOST"  \
     FC="ifort" FCFLAGS="-O3 -xHOST" \
     LIBS="-lrt -lutil" \
     ./INSTALL.sh -j 8 2>&1 | tee install.log

the LIBS= depends on your linux distribution.

we made a lot of experiments with gcc, icc, openmpi, mvapich2, hwloc: 
mpi threads, system threads, socket bindings etc. but the results vary 
depending on data size and relion 2D or 3D programs.

so finally we use the intel version with openmpi on one location 
(ethernet 10g) and intel with mvapich2 on another (infiniband) location.
also 2 different submission/run templates for 3D (hwloc) and rest.
especially in 3D sometimes we run out of main memory (6gb/core) so we 
must cut down the number of used cores per node.

cheers,
wolfgang


On 01/29/2016 10:30 PM, Dimitry Tegunov wrote:
> Hi Everyone,
>
> after some extensive testing, I would like to comment on the questions raised this week. Disclaimer: this was my first time using AVX and Intel's compiler -- I would fully expect more experienced people to do better. Everything tested locally on 2x E5-2640v3, Ubuntu 14.04, GCC 5.2.1, OpenMPI 1.10.2, ICC 16.0.1.
>
> Different resolution/results: I knocked myself out trying to trace this discrepancy back to my changes. In every deterministic scenario, vlion matches RELION almost down to machine precision. However, non-deterministic scenarios in the original RELION (i. e. those using MPI parallelization) are more random than expected. This has nothing to do with my changes, but seems to be by design. As mentioned a few days ago, multiple runs with identical parameters start diverging after the first iteration >even when using double-precision<. A colleague was very kind to test this on her current project using our cluster (RELION 1.4 fp64, Intel MPI). I'm attaching a plot of the intermediate resolutions of 3 identical runs. Please note the different number of iterations to convergence, and the final unmasked resolution in one of them differing by 1 shell.
>
> I think this behavior is perfectly fine since everything converges to the same result within the FSC's precision. However, it is unrelated to vlion.
>
> Intel's compiler: Vectorization happens in all the relevant loops in ml_optimiser.cpp, but is absent from the bi-/trilinear interpolation in projector.cpp (maybe because it's not a loop). For some reason, ICC's vectorized loop is still slower than mine, but certainly faster than the original. Overall, I see Intel's version run 1.3x faster than the original in double-precision. In single-precision, the unexplained slow-down still happens, although it comes out faster than the original.
>
> I didn't have any problems compiling vlion with ICC. However, in double-precision the time spent on projection went through the roof, making it ca. 2x slower than ICC fp64 RELION. This doesn't happen in single-precision, i. e. it's 2.7x faster than ICC fp32 RELION, but a bit slower than GCC fp32 vlion.
>
> Robert, I'm afraid I don't have a good explanation for the difference between our results. I used ICC with the original install script, no extra flags. This seemed to employ everything up to AVX2, as explicitly setting -mavx made it a bit slower. Is it possible that you actually compiled vlion with ICC and in fp64 by accident?
>
> Cheers,
> Dimitry


-- 
Universitätsklinikum Hamburg-Eppendorf (UKE)
@ Centre for Structral Systems Biology (CSSB)
@ Institute of Molecular Biotechnology (IMBA)
Dr. Bohr-Gasse 3-7 (Room 6.14)
1030 Vienna, Austria
Tel.: +43 (1) 790 44-4649
Email: [log in to unmask]
http://www.cssb-hamburg.de/

--



_____________________________________________________________________



Universitätsklinikum Hamburg-Eppendorf; Körperschaft des öffentlichen Rechts; Gerichtsstand: Hamburg | www.uke.de

Vorstandsmitglieder: Prof. Dr. Burkhard Göke (Vorsitzender), Prof. Dr. Dr. Uwe Koch-Gromus, Joachim Prölß, Rainer Schoppik

_____________________________________________________________________



SAVE PAPER - THINK BEFORE PRINTING

Top of Message | Previous Page | Permalink

JiscMail Tools


RSS Feeds and Sharing


Advanced Options


Archives

May 2024
April 2024
March 2024
February 2024
January 2024
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013


JiscMail is a Jisc service.

View our service policies at https://www.jiscmail.ac.uk/policyandsecurity/ and Jisc's privacy policy at https://www.jisc.ac.uk/website/privacy-notice

For help and support help@jisc.ac.uk

Secured by F-Secure Anti-Virus CataList Email List Search Powered by the LISTSERV Email List Manager