-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
225 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/bin/bash | ||
|
||
# This file is part of PIQP. | ||
# | ||
# Copyright (c) 2024 EPFL | ||
# | ||
# This source code is licensed under the BSD 2-Clause License found in the | ||
# LICENSE file in the root directory of this source tree. | ||
|
||
BLASFEO_TARGET=${1:-GENERIC}; | ||
ARCH_SUFFIX=${2:-}; | ||
|
||
echo "Installing blasfeo..." | ||
|
||
cd blasfeo | ||
mkdir "build_$ARCH_SUFFIX" | ||
cd "build_$ARCH_SUFFIX" | ||
cmake .. -DCMAKE_BUILD_TYPE=Release -DBLASFEO_CROSSCOMPILING=ON -DTARGET="$BLASFEO_TARGET" ${3:+-DCMAKE_INSTALL_PREFIX="$3"} | ||
cmake --build . | ||
case "$(uname -sr)" in | ||
CYGWIN*|MINGW*|MINGW32*|MSYS*) # detect windows | ||
cmake --install . | ||
;; | ||
*) # other OS | ||
if [ "$EUID" -ne 0 ] # check if already root | ||
then | ||
sudo cmake --install . | ||
else | ||
cmake --install . | ||
fi | ||
;; | ||
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/bin/bash | ||
|
||
# This file is part of PIQP. | ||
# | ||
# Copyright (c) 2024 EPFL | ||
# | ||
# This source code is licensed under the BSD 2-Clause License found in the | ||
# LICENSE file in the root directory of this source tree. | ||
|
||
mkdir -p build_external | ||
cd build_external | ||
|
||
bash ../ci/install_eigen.sh | ||
|
||
bash ../ci/download_blasfeo.sh | ||
bash ../ci/build_install_blasfeo.sh GENERIC generic | ||
|
||
case $(uname -m) in | ||
x86_64) | ||
bash ../ci/build_install_blasfeo.sh X64_INTEL_CORE x64 /opt/blasfeo_x64 | ||
bash ../ci/build_install_blasfeo.sh X64_INTEL_HASWELL x64_avx2 /opt/blasfeo_x64_avx2 | ||
bash ../ci/build_install_blasfeo.sh X64_INTEL_SKYLAKE_X arm64 /opt/blasfeo_x64_avx512 | ||
export CMAKE_ARGS="-DBLASFEO_X64_DIR=/opt/blasfeo_x64 -DBLASFEO_X64_AVX2_DIR=/opt/blasfeo_x64_avx2 -DBLASFEO_X64_AVX512_DIR=/opt/blasfeo_x64_avx512" | ||
;; | ||
aarch64|arm64) | ||
bash ../ci/build_install_blasfeo.sh ARMV8A_APPLE_M1 arm64 /opt/blasfeo_arm64 | ||
export CMAKE_ARGS="-DBLASFEO_ARM64_DIR=/opt/blasfeo_arm64" | ||
;; | ||
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
# This file is part of PIQP. | ||
# | ||
# Copyright (c) 2024 EPFL | ||
# | ||
# This source code is licensed under the BSD 2-Clause License found in the | ||
# LICENSE file in the root directory of this source tree. | ||
|
||
mkdir -p build_external | ||
cd build_external | ||
|
||
bash ../ci/install_eigen.sh | ||
|
||
bash ../ci/download_blasfeo.sh | ||
bash ../ci/build_install_blasfeo.sh GENERIC generic | ||
bash ../ci/build_install_blasfeo.sh ARMV8A_APPLE_M1 arm64 /opt/blasfeo_arm64 | ||
|
||
export CMAKE_ARGS="-DBLASFEO_ARM64_DIR=/opt/blasfeo_arm64" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
|
||
# This file is part of PIQP. | ||
# | ||
# Copyright (c) 2024 EPFL | ||
# | ||
# This source code is licensed under the BSD 2-Clause License found in the | ||
# LICENSE file in the root directory of this source tree. | ||
|
||
mkdir -p build_external | ||
cd build_external | ||
|
||
bash ../ci/install_eigen.sh | ||
|
||
bash ../ci/download_blasfeo.sh | ||
bash ../ci/build_install_blasfeo.sh GENERIC generic | ||
bash ../ci/build_install_blasfeo.sh X64_INTEL_CORE x64 /opt/blasfeo_x64 | ||
bash ../ci/build_install_blasfeo.sh X64_INTEL_HASWELL x64_avx2 /opt/blasfeo_x64_avx2 | ||
bash ../ci/build_install_blasfeo.sh X64_INTEL_SKYLAKE_X arm64 /opt/blasfeo_x64_avx512 | ||
|
||
export CMAKE_ARGS="-DBLASFEO_X64_DIR=/opt/blasfeo_x64 -DBLASFEO_X64_AVX2_DIR=/opt/blasfeo_x64_avx2 -DBLASFEO_X64_AVX512_DIR=/opt/blasfeo_x64_avx512" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
|
||
# This file is part of PIQP. | ||
# | ||
# Copyright (c) 2024 EPFL | ||
# | ||
# This source code is licensed under the BSD 2-Clause License found in the | ||
# LICENSE file in the root directory of this source tree. | ||
|
||
mkdir -p build_external | ||
cd build_external | ||
|
||
bash ../ci/install_eigen.sh | ||
|
||
bash ../ci/download_blasfeo.sh | ||
bash ../ci/build_install_blasfeo.sh GENERIC generic | ||
bash ../ci/build_install_blasfeo.sh X64_INTEL_CORE x64 /opt/blasfeo_x64 | ||
bash ../ci/build_install_blasfeo.sh X64_INTEL_HASWELL x64_avx2 /opt/blasfeo_x64_avx2 | ||
bash ../ci/build_install_blasfeo.sh X64_INTEL_SKYLAKE_X arm64 /opt/blasfeo_x64_avx512 | ||
|
||
export CMAKE_ARGS="-DBLASFEO_X64_DIR=/opt/blasfeo_x64 -DBLASFEO_X64_AVX2_DIR=/opt/blasfeo_x64_avx2 -DBLASFEO_X64_AVX512_DIR=/opt/blasfeo_x64_avx512" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
|
||
# This file is part of PIQP. | ||
# | ||
# Copyright (c) 2024 EPFL | ||
# | ||
# This source code is licensed under the BSD 2-Clause License found in the | ||
# LICENSE file in the root directory of this source tree. | ||
|
||
echo "Downloading blasfeo..." | ||
|
||
git clone https://github.com/giaf/blasfeo.git blasfeo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters