Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates to fix AMD AOCL CI builds #93

Merged
merged 1 commit into from
Aug 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 5 additions & 21 deletions .github/workflows/build-and-test-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,25 +126,9 @@ jobs:
- name: Install math libraries (AOCL)
if: matrix.math-libs == 'aocl'
run: |
wget https://github.com/amd/blis/archive/refs/tags/4.0.tar.gz
tar -xzf 4.0.tar.gz && cd blis-4.0
[[ "${{ matrix.with-openmp }}" == 'openmp' ]] && THREADING='openmp' || THREADING='no'
./configure --prefix=/opt/amd \
--enable-arg-max-hack \
--disable-static --enable-shared \
--enable-blas --enable-cblas \
--enable-threading=$THREADING \
auto
make -j && sudo make install
cd .. && rm -rf 4.0.tar.gz blis-*
wget https://github.com/amd/libflame/archive/refs/tags/4.0.tar.gz
tar -xzf 4.0.tar.gz && cd libflame-4.0
./configure --prefix=/opt/amd \
--enable-max-arg-list-hack \
--disable-static-build --enable-dynamic-build \
--enable-lapack2flame
make -j && sudo make install
cd .. && rm -rf 4.0.tar.gz libflame-*
wget https://download.amd.com/developer/eula/aocl/aocl-4-1/aocl-linux-gcc-4.1.0_1_amd64.deb
sudo apt-get install -y ./aocl-linux-gcc-4.1.0_1_amd64.deb
rm aocl-linux-gcc-*.deb

- name: Build Palace
env:
Expand Down Expand Up @@ -172,7 +156,7 @@ jobs:
export FC=gfortran-11
fi
if [[ "${{ matrix.math-libs }}" == 'aocl' ]]; then
export AOCLROOT=/opt/amd
export AOCLROOT=/opt/AMD/aocl/aocl-linux-gcc-4.1.0/gcc
export LD_LIBRARY_PATH=$AOCLROOT/lib:$LD_LIBRARY_PATH
fi
export NUM_PROC_BUILD=$(nproc 2> /dev/null || sysctl -n hw.ncpu)
Expand Down Expand Up @@ -225,7 +209,7 @@ jobs:
export OMP_NUM_THREADS=1
fi
if [[ "${{ matrix.math-libs }}" == 'aocl' ]]; then
export AOCLROOT=/opt/amd
export AOCLROOT=/opt/AMD/aocl/aocl-linux-gcc-4.1.0/gcc
export LD_LIBRARY_PATH=$AOCLROOT/lib:$LD_LIBRARY_PATH
fi
export PATH=$(pwd)/palace-install/bin:$PATH
Expand Down
23 changes: 4 additions & 19 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -168,25 +168,10 @@ test-build-aocl:
script:
# Install AMD Optimizing CPU Libraries (AOCL)
- apt-get install -y libmpich-dev
- wget https://github.com/amd/blis/archive/refs/tags/4.0.tar.gz
- tar -xzf 4.0.tar.gz && cd blis-4.0
- ./configure --prefix=/opt/amd
--enable-arg-max-hack
--disable-static --enable-shared
--enable-blas --enable-cblas
--enable-threading=no
auto
- make -j$NUM_PROC_BUILD && make install
- cd .. && rm -rf 4.0.tar.gz blis-*
- wget https://github.com/amd/libflame/archive/refs/tags/4.0.tar.gz
- tar -xzf 4.0.tar.gz && cd libflame-4.0
- ./configure --prefix=/opt/amd
--enable-max-arg-list-hack
--disable-static-build --enable-dynamic-build
--enable-lapack2flame
- make -j$NUM_PROC_BUILD && make install
- cd .. && rm -rf 4.0.tar.gz libflame-*
- export AOCLROOT=/opt/amd
- wget https://download.amd.com/developer/eula/aocl/aocl-4-1/aocl-linux-gcc-4.1.0_1_amd64.deb
- apt-get install -y ./aocl-linux-gcc-4.1.0_1_amd64.deb
- rm aocl-linux-gcc-*.deb
- export AOCLROOT=/opt/AMD/aocl/aocl-linux-gcc-4.1.0/gcc
- export LD_LIBRARY_PATH=$AOCLROOT/lib:$LD_LIBRARY_PATH
- mkdir build && cd build
- cmake ..
Expand Down