Skip to content

Commit

Permalink
try adding intel lane
Browse files Browse the repository at this point in the history
  • Loading branch information
loriab committed Aug 30, 2023
1 parent 12f7605 commit 68c0a13
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 14 deletions.
38 changes: 25 additions & 13 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ jobs:
shell: bash
working-directory: ${{github.workspace}}/build/library
run: |
tar -xzvf ../compiler/libint-2*.tgz
tar -xzf ../compiler/libint-2*.tgz
cd libint-2*
echo "LIBINT_EXPORTED_DIR=`pwd`" >> $GITHUB_ENV
cmake -S . -B build -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DPython_EXECUTABLE=`which python3` $BUILD_CONFIG
Expand Down Expand Up @@ -166,9 +166,7 @@ jobs:
lane: ubuntu-gnu
libargs: >
-DBUILD_SHARED_LIBS=ON
-DLIBINT2_LOCAL_Eigen3_INSTALL=ON
-DEigen3_ROOT="/usr/share/miniconda3/envs/onlyeigen/"
testargs: >
testargs: ""
-DLIBINT2_LOCAL_Eigen3_FIND=ON
# note full paths depend on setup-miniconda:
# * Miniforge is miniconda3 vs. Miniconda is miniconda
Expand All @@ -179,16 +177,30 @@ jobs:
-DBUILD_SHARED_LIBS=ON
testargs: ""

#- runs-on: ubuntu-latest
# lane: ubuntu-intel
#- runs-on: windows-latest
# lane: windows-clang-cl
# libargs: >
# -DCMAKE_CXX_COMPILER=icpx
# -DCMAKE_CXX_FLAGS="--gcc-toolchain=/usr/share/miniconda3/envs/test --sysroot=/usr/share/miniconda3/envs/test/x86_64-conda-linux-gnu/sysroot -target x86_64-conda-linux-gnu"
# # flags are long-form of below (envvars not available at spinup)
# # -DCMAKE_CXX_FLAGS="--gcc-toolchain=${CONDA_PREFIX} --sysroot=${CONDA_PREFIX}/${HOST}/sysroot -target ${HOST}"
# -GNinja
# -DCMAKE_BUILD_TYPE=Release
# -DBUILD_SHARED_LIBS=OFF
# -DCMAKE_CXX_COMPILER=clang-cl
# -DCMAKE_C_COMPILER=clang-cl
# testargs: >
# -DCMAKE_CXX_COMPILER=icpx
# -DCMAKE_CXX_FLAGS="--gcc-toolchain=/usr/share/miniconda3/envs/test --sysroot=/usr/share/miniconda3/envs/test/x86_64-conda-linux-gnu/sysroot -target x86_64-conda-linux-gnu"
# -GNinja
# -DCMAKE_BUILD_TYPE=Release
# -DCMAKE_CXX_COMPILER=clang-cl
# -DCMAKE_C_COMPILER=clang-cl

- runs-on: ubuntu-latest
lane: ubuntu-intel
libargs: >
-DCMAKE_CXX_COMPILER=icpx
-DCMAKE_CXX_FLAGS="--gcc-toolchain=/usr/share/miniconda3/envs/test --sysroot=/usr/share/miniconda3/envs/test/x86_64-conda-linux-gnu/sysroot -target x86_64-conda-linux-gnu"
# flags are long-form of below (envvars not available at spinup)
# -DCMAKE_CXX_FLAGS="--gcc-toolchain=${CONDA_PREFIX} --sysroot=${CONDA_PREFIX}/${HOST}/sysroot -target ${HOST}"
testargs: >
-DCMAKE_CXX_COMPILER=icpx
-DCMAKE_CXX_FLAGS="--gcc-toolchain=/usr/share/miniconda3/envs/test --sysroot=/usr/share/miniconda3/envs/test/x86_64-conda-linux-gnu/sysroot -target x86_64-conda-linux-gnu"
name: "Export • ${{ matrix.cfg.lane }} • ${{ matrix.cfg.libargs }}"
runs-on: ${{ matrix.cfg.runs-on }}
Expand Down Expand Up @@ -253,7 +265,7 @@ jobs:
- name: Extract, Build, Install Libint Library
shell: bash -l {0}
run: |
tar -zxvf libint*tgz
tar -zxf libint*tgz
mkdir libint && mv libint-2*/* libint/ && cd libint/
cmake \
-S. \
Expand Down
3 changes: 2 additions & 1 deletion export/cmake/CMakeLists.txt.export
Original file line number Diff line number Diff line change
Expand Up @@ -480,8 +480,9 @@ configure_file(
@ONLY
)

# configuration.h/cc define a string summary of capabilities. @ONLY is maximally deferred in case config2 changes the
# In the future CMake switchover, configuration.h/cc define a string summary of capabilities. @ONLY is maximally deferred in case config2 changes the
# summary (as it used to when LIBINT_SHGSHELL_ORDERING was library-config-time selected).
#configure_file(${PROJECT_SOURCE_DIR}/include/libint2/util/configuration.h.cmake.in ${PROJECT_BINARY_DIR}/include/libint2/util/configuration.h @ONLY)
configure_file(src/configuration.cc.cmake.in ${PROJECT_BINARY_DIR}/src/configuration.cc @ONLY)

configure_file(
Expand Down

0 comments on commit 68c0a13

Please sign in to comment.