OSDN Git Service

Please enter the commit message for your changes. Lines starting
author安永卓生 <tacyas@yasunagatakuonoMacBook-Pro.local>
Sun, 30 Jan 2022 12:04:57 +0000 (21:04 +0900)
committer安永卓生 <tacyas@yasunagatakuonoMacBook-Pro.local>
Sun, 30 Jan 2022 12:04:57 +0000 (21:04 +0900)
 with '#' will be ignored, and an empty message aborts the commit.

 Committer: 安永卓生 <tacyas@yasunagatakuonoMacBook-Pro.local>

 On branch master
 Your branch is up to date with 'origin/master'.

 Changes to be committed:
modified:   env/Eos_env
Add Arm64
 Changes not staged for commit:
modified:   include/eosMATH.h

env/Eos_env

index f416781..69fd5b5 100755 (executable)
@@ -156,6 +156,30 @@ case $HOSTTYPE in
                fi
                export CUDA_LIB_64=64
                ;;
+       "arm64")
+               #echo $P4
+               if [ -z "$P4" ] ; then
+                       if [ ! -z "$MAC" ] ;  then 
+                               major=`sw_vers | awk '/ProductVersion/ { split($2, a, "."); print a[1] }'`
+                               minor=`sw_vers | awk '/ProductVersion/ { split($2, a, "."); print a[2] }'`
+                               #echo $major,$minor
+                               if [ $major -eq 10 -a $minor -lt 9 ] ; then
+                                       export EOS_HOST=x86Mac64_8
+                                       export EOS_HOSTDIR=X86MAC64_8
+                               else
+                                       export EOS_HOST=x86arm64
+                                       export EOS_HOSTDIR=X86ARM64
+                               fi
+                       elif [ ! -z "$LINUX" ] ; then
+                               export EOS_HOST=x86Linux64
+                               export EOS_HOSTDIR=X86LINUX64
+                       fi
+               else
+                       export EOS_HOST=x86Linux64
+                       export EOS_HOSTDIR=X86LINUX64
+               fi
+               export CUDA_LIB_64=64
+               ;;
        "k1om")
                export EOS_HOST=k1om
                export EOS_HOSTDIR=K1OM