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

Update the build system and fix CI #68

Open
wants to merge 38 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
0c53f3f
Force to build on Ubuntu 18.04
Mar 6, 2023
7a7814b
Upgrade to Ubuntu 22.04
Mar 20, 2023
4f0edf1
Fix CUDA installation
Mar 20, 2023
605eb7b
Fix CUDA version
Mar 20, 2023
ee5ed8a
Clean up
Mar 20, 2023
8563675
Fix CUDA version again
Mar 20, 2023
115be3a
Include factory.i for SWIG
Mar 20, 2023
e3d5c68
Update Linux versions
Mar 20, 2023
5034873
Set Linux versions
Mar 20, 2023
5b26bc3
Fix versions
Mar 20, 2023
8236103
Fix versions again
Mar 21, 2023
74e2efa
Clean up CI
Mar 21, 2023
a3a103b
Add pocl
Mar 21, 2023
e0c2433
Clean up
Mar 21, 2023
1c980c1
Clean up compilation flags
Mar 21, 2023
52d4121
Simplify testing
Mar 21, 2023
848a1b6
Use standard FindOpenCL
Mar 21, 2023
71348ed
Clean up
Mar 21, 2023
36d8f4f
Clean up
Mar 22, 2023
6dd58ab
Add older versions
Mar 24, 2023
db3354a
Use pip instead of setup.py
Mar 27, 2023
acaa8fa
Clean up MacOS dependecies
Mar 27, 2023
de0a552
Fix Python version on MacOS
Mar 27, 2023
1df18b1
Test MacOS 11
Mar 29, 2023
fb19c01
Remove pocl for MacOS
Apr 24, 2023
67f6b42
Skip OpenCL tests on MacOS
Apr 24, 2023
82f2b36
Set project name
Apr 25, 2023
6a06e8d
Report OpenCL and CUDA detected
Apr 25, 2023
4006440
Test with the OpenMM dev builds
May 5, 2023
574f1a8
Fix typo
May 5, 2023
93cd99e
Fix Action syntax
May 5, 2023
8238958
Fix channel addition
May 5, 2023
031cb15
Fix the new line
May 5, 2023
c1d5aa0
Show the environment file
May 8, 2023
e83e5e3
Fix typo
May 8, 2023
248713e
Fix the new line
May 8, 2023
8665ad0
Fix spaces
May 8, 2023
4814d70
Fix Python
May 8, 2023
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
Prev Previous commit
Next Next commit
Set Linux versions
  • Loading branch information
Raimondas Galvelis committed Mar 20, 2023
commit 5034873bdbc659942d0121a1cb62eed5bf5ecb1d
27 changes: 16 additions & 11 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,14 @@ jobs:
fail-fast: false
matrix:
include:
- name: Linux CPU CUDA 11.8 Python 3.10
- name: Linux (CUDA 11.8, OpenMM 8.0, PLUMED 2.7, Python 3.10)
os: ubuntu-22.04
python-version: "3.10"
gcc-version: "9"
cuda-version: "11.8.0"
cdt-name: cos7 # CentOS sysroot: cuda 10.x needs cos6, 11+ needs cos7
cuda-version: 11.8.0
gcc-version: 11.3
nvcc-version: 11.8
openmm-version: 8.0
plumed-version: 2.7
python-version: 3.10
CMAKE_FLAGS: |
-DPLUMED_BUILD_CUDA_LIB=ON \
-DCUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda \
Expand All @@ -53,16 +55,19 @@ jobs:
if: startsWith(matrix.os, 'macos')
run: source devtools/scripts/install_macos_sdk.sh

- name: "Patch conda env (if needed)"
- name: Prepare dependencies" (if needed)"
if: startsWith(matrix.os, 'ubuntu')
run: |
sed -i -e "s/@CDT_NAME@/${{ matrix.cdt-name }}/g" \
-e "s/@GCC_VERSION@/${{ matrix.gcc-version }}.*/g" \
-e "s/@CUDATOOLKIT_VERSION@/${{ matrix.cuda-version }}.*/g" \
sed -i -e "/cudatoolkit/c\ - cudatoolkit ${{ matrix.cuda-version }}" \
-e "/gxx_linux-64/c\ - gxx_linux-64 ${{ matrix.gcc-version }}" \
-e "/nvcc_linux-64/c\ - nvcc_linux-64 ${{ matrix.nvcc-version }}" \
-e "/openmm/c\ - python ${{ matrix.openmm-version }}" \
-e "/plumed/c\ - python ${{ matrix.plumed-version }}" \
-e "/python/c\ - python ${{ matrix.python-version }}" \
devtools/conda-envs/build-${{ matrix.os }}.yml

- uses: conda-incubator/setup-miniconda@v2
name: "Prepare base dependencies"
- name: Install dependencies
uses: conda-incubator/setup-miniconda@v2
with:
python-version: ${{ matrix.python-version }}
activate-environment: build
Expand Down
10 changes: 5 additions & 5 deletions devtools/conda-envs/build-ubuntu-22.04.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ channels:
dependencies:
# build
- cmake >=3.20
- cudatoolkit 11.8.*
- gxx_linux-64 10.3.*
- cudatoolkit 11.8
- gxx_linux-64 11.3
- make
- nvcc_linux-64 11.8
- pip
- swig
- sysroot_linux-64 2.17
# host
- openmm 8.0.*
- plumed 2.7.*
- python 3.10.*
- openmm 8.0
- plumed 2.7
- python 3.10
# test
- pytest