Hi Tony,

You might have already explored this approach but have you seen http://stackoverflow.com/questions/27623110/how-to-generate-a-visual-studio-project-that-uses-the-intel-compiler-using-cmake ??


Regards,
Dave

On 22/02/17 1:06 AM, Tony Garratt wrote:

Thank you for your reply. What I am wanting to do is build CGNS (https://cgns.github.io/WhatIsCGNS.html) in parallel to get parallel I/O, which requires HDF5 to be built in parallel - its not just thread safety I am after.

Everything works fine on Linux, since there I can still use configure to build HDF5 and even Intel give advice on how to build it with their compilers at https://software.intel.com/en-us/articles/performance-tools-for-software-developers-building-hdf5-with-intel-compilers.

The problem is that the move to cmake has left me in the dark now. If configure was still supported on Windows for HDF5, then I the path forward is known. cmake appears to be very VS centric, which is fine if you are OK with MS compilers and not clear to me how I can switch to Intel compilers.

Regards,
Tony



On Tue, Feb 21, 2017 at 11:58 AM, Samer Afach <[email protected] <mailto:[email protected]>> wrote:

    Hi Tony:

    I don't know what the features of hdf5 with parallel are, but if
    all you want to achieve is have thread safety, I recommend that
    you use mutexes manually. Just wrap every call to hdf5 with
    std::lock_guard() or std::unique_lock(). If you can't use C++11,
    then you can get the same features from the boost library. This
    will make your code work independent of the build settings of hdf5.

    I do this to avoid the obvious mistake of running a program in
    parallel with a version of hdf5 that is built for serial. It's
    much cleaner.

    Cheers,
    Sam

    On February 21, 2017 12:23:03 PM GMT+01:00, Tony Garratt
    <[email protected] <mailto:[email protected]>> wrote:

        Following on my previous post, I notice that at

        https://support.hdfgroup.org/HDF5/release/platforms5.html
        <https://support.hdfgroup.org/HDF5/release/platforms5.html>

        you have built with Intel Fortran. How would one use cmake to
        build parallel HDF5 on Windows with both Intel C++ and Intel
        Fortran please?

        Regards,
        Tony

-- *Dr Tony Garratt*
        Tel: +44 7624 309933 <tel:+44%2076%202430%209933>


-- Sent from my Android device.

    _______________________________________________
    Hdf-forum is for HDF software users discussion.
    [email protected] <mailto:[email protected]>
    http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
    <http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org>
    Twitter: https://twitter.com/hdf5




--
*Dr Tony Garratt*
Tel: +44 7624 309933


_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5

_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5

Reply via email to