[gmx-developers] A HIP version of GROMACS 2020.2 is available
张驭洲
zhangyuzhou15 at mails.ucas.edu.cn
Sun May 31 13:38:21 CEST 2020
Hi Vedran,
Sorry for my late reply. With "the same compilation issues like last time", do you mean the error you mentioned in the email on 6 Jan 2020:
In file included from
/home/vedranm/workspace/hipified-gromacs/src/gromacs/mdlib/nbnxn_cuda/nbnxn_cuda.cu:118:
In file included from
/home/vedranm/workspace/hipified-gromacs/src/gromacs/mdlib/nbnxn_cuda/nbnxn_cuda_kernel_pruneonly.cuh:52:
/home/vedranm/workspace/hipified-gromacs/src/gromacs/mdlib/nbnxn_cuda/nbnxn_cuda_kernel_utils.cuh:440:12:
error: no matching function for call to 'lerp'
return lerp(d01.x, d01.y, fraction);
^~~~
/home/vedranm/workspace/hipified-gromacs/src/gromacs/mdlib/nbnxn_cuda/nbnxn_cuda_kernel_utils.cuh:423:3:
note: candidate template ignored: deduced conflicting types for
parameter 'T' ('Scalar_accessor<[2 * ...], 0>' vs. 'Scalar_accessor<[2 *
...], 1>')
T lerp(T d0, T d1, T t)
In my case this can be solved by adding type cast to the line that causes the error, like this:
return lerp((float)d01.x, (float)d01.y, fraction);
I have made this adding in the 2020.2 version that I pushed to github on 4 May, so I think this function should not cause error again. If you encountered any other error, please paste it directly.
Sincerely,
Zhang
> -----原始邮件-----
> 发件人: "Vedran Miletić" <vedran at miletic.net>
> 发送时间: 2020-05-26 21:33:38 (星期二)
> 收件人: gmx-developers at gromacs.org
> 抄送:
> 主题: Re: [gmx-developers] A HIP version of GROMACS 2020.2 is available
>
> Hi again Zheng,
>
> I actually tried this when I mentioned and I encountered the same
> compilation issues like last time. Did you do any special configuration
> on your machine after installing ROCm?
>
> Cheers,
> Vedran
>
> 04. 05. 2020. u 09:52, Vedran Miletić je napisao/la:
> > Hi Zhang,
> >
> > I have been wondering what's going on with this effort just last week.
> > Will gladly give it a try tomorrow.
> >
> > Cheers,
> > Vedran
> >
> > 04. 05. 2020. u 09:38, 张驭洲 je napisao/la:
> >> Dear GROMACS developers,
> >>
> >> I have ported GROMACS 2020.2 to HIP, which can be compiled and run on
> >> ROCM platform. I tested the code on AMD MI 50 GPU and ROCM 3.3.0. It
> >> has all the features that the CUDA code has, including computing
> >> bonded forces, update and constraint on GPU. In my case, the ported
> >> code is about 20% faster than the official OpenCL code on the same
> >> platform, but still slower than the CUDA code on nvidia V100 GPU.
> >>
> >> I'm trying optimising the ported code further. If you have interest,
> >> please clone the code from
> >> https://github.com/ipe-zhangyz/hipified-gromacs.git
> >> <https: hipified-gromacs.git="" ipe-zhangyz="" github.com="">and have a try.
> >> Any feedback is welcome!
> >>
> >>
> >> Sincerely
> >> Zhang
> >>
> >
>
> --
> Vedran Miletić
> vedran.miletic.net
> --
> Gromacs Developers mailing list
>
> * Please search the archive at http://www.gromacs.org/Support/Mailing_Lists/GMX-developers_List before posting!
>
> * Can't post? Read http://www.gromacs.org/Support/Mailing_Lists
>
> * For (un)subscribe requests visit
> https://maillist.sys.kth.se/mailman/listinfo/gromacs.org_gmx-developers or send a mail to gmx-developers-request at gromacs.org.
</https:></vedran at miletic.net>
More information about the gromacs.org_gmx-developers
mailing list