Re: [AMBER] smflags in configure script

From: Charles Lin <Charles.lin.silicontx.com>
Date: Mon, 22 Apr 2019 19:52:10 +0000

I believe compute_60,code=sm_70 and compute_61,code=sm_70 are legacy compile options that we were (or maybe still are) using due to some deprecated functionality in the code.

-Charlie

´╗┐On 4/19/19, 10:19 AM, "viktor drobot" <linux776.gmail.com> wrote:

    Hello! I've found that in amber18/AmberTools/src/configure2 script
    *sm70flags* (line 1198) seems to be incorrect:
    sm70flags='-gencode arch=compute_60,code=sm_70, -gencode
    arch=compute_61,code=sm_70'

    Looks like correct version is (I may be wrong):
    sm70flags='-gencode arch=compute_70,code=sm_70 -gencode
    arch=compute_72,code=sm_72 -gencode arch=compute_75,code=sm_75'

    Also I should note that on modern systems (Arch Linux x64 rolling
    release, GCC 8.2.1, CUDA 10.1) -fPIC parameter is needed to compile
    properly (the same behavior is valid in case of GCC 7.x.x and older
    CUDAs). Here is the patch:
    --- amber18/AmberTools/src/configure2 2019-02-14 12:04:44.583123213 +0300
    +++ amber18/AmberTools/src/configure2 2019-02-14 12:05:00.319647178 +0300
    .@ -1237,6 +1237,7 @@
            echo " AMBER 18 requires CUDA version 7.5, 8.0, 9.0-9.2,
    or 10.0-10.2"
            exit 1
          fi
    + nvccflags="$nvccflags --compiler-options -fPIC"
          nvcc="$nvcc $nvccflags"

      fi

    Glad to know if that helps!

    _______________________________________________
    AMBER mailing list
    AMBER.ambermd.org
    http://lists.ambermd.org/mailman/listinfo/amber
    This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. If you are the intended recipient, please be advised that the content of this message is subject to access, review and disclosure by the sender's Email System Administrator.


This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. If you are the intended recipient, please be advised that the content of this message is subject to access, review and disclosure by the sender's Email System Administrator.
_______________________________________________
AMBER mailing list
AMBER.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber
Received on Mon Apr 22 2019 - 13:00:02 PDT
Custom Search