Global support of nonviscous components #759
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
name: Dev With MKL VTK | |
on: | |
push: | |
branches: [ dev ] | |
pull_request: | |
branches: [ dev ] | |
jobs: | |
ubuntu-mkl-vtk-dev: | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 60 | |
steps: | |
- name: Clone | |
uses: actions/checkout@v3 | |
- name: Install VTK | |
run: | | |
wget -q https://registrationcenter-download.intel.com/akdlm/IRC_NAS/adb8a02c-4ee7-4882-97d6-a524150da358/l_onemkl_p_2023.2.0.49497_offline.sh | |
sh ./l_onemkl_p_2023.2.0.49497_offline.sh -a --silent --eula accept | |
wget -q https://github.com/TLCFEM/prebuilds/releases/download/latest/VTK-9.2.6-linux.tar.gz | |
tar xf VTK-9.2.6-linux.tar.gz | |
- name: Golang | |
uses: actions/setup-go@v3 | |
- name: Compile | |
run: | | |
go build Checker/updater.go | |
sudo apt-get update && sudo apt-get install mesa-common-dev mesa-utils freeglut3-dev libglvnd-dev dpkg-dev xz-utils | |
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_MULTITHREAD=ON -DUSE_HDF5=ON -DUSE_EXTERNAL_VTK=ON -DVTK_DIR=./lib/cmake/vtk-9.2/ -DUSE_MKL=OFF -DMKLROOT=/opt/intel/oneapi/mkl/latest/ -DLINK_DYNAMIC_MKL=OFF -DCMAKE_INSTALL_PREFIX=suanPan-linux-mkl-vtk . | |
make install -j"$(nproc)" | |
make package | |
- name: Test | |
run: | | |
export LD_LIBRARY_PATH=/home/runner/work/suanPan/suanPan/suanPan-linux-mkl-vtk/lib | |
./suanPan-linux-mkl-vtk/bin/suanPan -v | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: suanPan-3.2.0-1.x86_64.deb | |
path: suanPan-3.2.0-1.x86_64.deb | |
fedora-mkl-vtk-dev: | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 60 | |
container: fedora:36 | |
steps: | |
- name: Setup | |
run: | | |
dnf upgrade --refresh -y | |
dnf install libglvnd-devel gcc g++ gfortran rpm-build rpm-devel rpmdevtools cmake wget git procps -y | |
git config --global --add safe.directory /__w/suanPan/suanPan | |
wget -q https://registrationcenter-download.intel.com/akdlm/IRC_NAS/ebf5d9aa-17a7-46a4-b5df-ace004227c0e/l_dpcpp-cpp-compiler_p_2023.2.1.8_offline.sh | |
wget -q https://registrationcenter-download.intel.com/akdlm/IRC_NAS/0d65c8d4-f245-4756-80c4-6712b43cf835/l_fortran-compiler_p_2023.2.1.8_offline.sh | |
wget -q https://registrationcenter-download.intel.com/akdlm/IRC_NAS/adb8a02c-4ee7-4882-97d6-a524150da358/l_onemkl_p_2023.2.0.49497_offline.sh | |
sh ./l_dpcpp-cpp-compiler_p_2023.2.1.8_offline.sh -a --silent --eula accept | |
sh ./l_fortran-compiler_p_2023.2.1.8_offline.sh -a --silent --eula accept | |
sh ./l_onemkl_p_2023.2.0.49497_offline.sh -a --silent --eula accept | |
- name: Clone | |
uses: actions/checkout@v3 | |
- name: Install MKL VTK | |
run: | | |
wget -q https://github.com/TLCFEM/prebuilds/releases/download/latest/VTK-9.2.6-linux.tar.gz | |
tar xf VTK-9.2.6-linux.tar.gz | |
- name: Compile | |
run: | | |
source /opt/intel/oneapi/setvars.sh | |
cmake -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx -DCMAKE_Fortran_COMPILER=ifx -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_MULTITHREAD=ON -DUSE_HDF5=ON -DUSE_EXTERNAL_VTK=ON -DVTK_DIR=./lib/cmake/vtk-9.2/ -DUSE_MKL=ON -DMKLROOT=/opt/intel/oneapi/mkl/latest/ -DLINK_DYNAMIC_MKL=OFF . | |
make package -j"$(nproc)" | |
- name: Test | |
run: | | |
dnf install ./suanPan-3.2.0-1.x86_64.rpm -y | |
suanPan -v | |
- name: Upload | |
uses: actions/upload-artifact@v3 | |
with: | |
name: suanPan-3.2.0-1.x86_64.rpm | |
path: suanPan-3.2.0-1.x86_64.rpm |