Skip to content

Commit 8d7d209

Browse files
committed
[MINOR] OpenBLAS dependency multi-arch
* This commit makes our custom OpenBLAS compilation run on more x86_64 platforms
1 parent 60e26d8 commit 8d7d209

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

build.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,9 @@ if ! is_dependency_downloaded "openBlas_v${openBlasVersion}"; then
564564
fi
565565
if ! is_dependency_installed "openBlas_v${openBlasVersion}"; then
566566
cd "$sourcePrefix/$openBlasDirName"
567-
make -j"$(nproc)"
567+
make clean
568+
# optimizes for multiple x86_64 architectures
569+
make -j"$(nproc)" DYNAMIC_ARCH=1 TARGET=NEHALEM
568570
make PREFIX="$openBlasInstDirName" install
569571
cd - > /dev/null
570572
dependency_install_success "openBlas_v${openBlasVersion}"

0 commit comments

Comments
 (0)