Skip to content

Commit

Permalink
[OpenBLAS] Set min TARGET=NEHALEM
Browse files Browse the repository at this point in the history
  • Loading branch information
omus committed Jan 22, 2021
1 parent 2b1ba5a commit 427408a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion O/OpenBLAS/[email protected]/build_tarballs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ dependencies = openblas_dependencies()

# Build the tarballs
build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies;
preferred_gcc_version=v"6", lock_microarchitecture=false, julia_compat="1.6")
preferred_gcc_version=v"6", lock_microarchitecture=false, julia_compat="1.7")
2 changes: 1 addition & 1 deletion O/OpenBLAS/[email protected]/build_tarballs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ dependencies = openblas_dependencies()

# Build the tarballs
build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies;
preferred_gcc_version=v"6", lock_microarchitecture=false, julia_compat="1.6")
preferred_gcc_version=v"6", lock_microarchitecture=false, julia_compat="1.7")
2 changes: 1 addition & 1 deletion O/OpenBLAS/[email protected]/build_tarballs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ dependencies = openblas_dependencies()

# Build the tarballs
build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies;
preferred_gcc_version=v"6", lock_microarchitecture=false, julia_compat="1.6")
preferred_gcc_version=v"6", lock_microarchitecture=false, julia_compat="1.7")
9 changes: 5 additions & 4 deletions O/OpenBLAS/common.jl
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,13 @@ function openblas_script(;num_64bit_threads::Integer=32, openblas32::Bool=false,
flags+=(BINARY=64)
fi
# On Intel architectures, engage DYNAMIC_ARCH
# On Intel and most aarch64 architectures, engage DYNAMIC_ARCH.
# When using DYNAMIC_ARCH the TARGET specifies the minimum architecture requirement.
if [[ ${proc_family} == intel ]]; then
flags+=(TARGET= DYNAMIC_ARCH=1)
# Otherwise, engage a specific target
flags+=(TARGET=GENERIC DYNAMIC_ARCH=1)
elif [[ ${target} == aarch64-* ]] && [[ ${bb_full_target} != *-libgfortran3* ]]; then
flags+=(TARGET= DYNAMIC_ARCH=1)
flags+=(TARGET=ARMV8 DYNAMIC_ARCH=1)
# Otherwise, engage a specific target
elif [[ ${bb_full_target} == aarch64*-libgfortran3* ]]; then
# Old GCC versions, with libgfortran3, can't build for newer
# microarchitectures, let's just use the generic one
Expand Down

0 comments on commit 427408a

Please sign in to comment.