Skip to content

Commit

Permalink
Merge #2986
Browse files Browse the repository at this point in the history
2986: Debian9/Intel18/Clang6/ROCm: switch Python2 to Python3 r=KaiSzuttor a=jngrad

Final PR for #2694

Images Debian9/Intel18/Clang6/ROCm now have a Python3 version (espressomd/docker#104)

Closes #2694
Closes #2951

Co-authored-by: Michael Kuron <mkuron@users.noreply.github.com>
Co-authored-by: Jean-Noël Grad <jgrad@icp.uni-stuttgart.de>
  • Loading branch information
3 people committed Jul 11, 2019
2 parents 326c261 + 9e36783 commit a1f1af8
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 30 deletions.
48 changes: 24 additions & 24 deletions .gitlab-ci.yml
Expand Up @@ -86,7 +86,7 @@ default:
<<: *global_job_definition
stage: build
script:
- export with_cuda=false myconfig=default with_coverage=true python_version=3
- export with_cuda=false myconfig=default with_coverage=true
- bash maintainer/CI/build_cmake.sh
tags:
- docker
Expand All @@ -97,7 +97,7 @@ min_boost:
stage: build
image: gitlab.icp.uni-stuttgart.de:4567/espressomd/docker/ubuntu-python3:min_boost
script:
- export with_cuda=false myconfig=maxset python_version=3
- export with_cuda=false myconfig=maxset
- bash maintainer/CI/build_cmake.sh
tags:
- docker
Expand All @@ -107,7 +107,7 @@ maxset:
<<: *global_job_definition
stage: build
script:
- export myconfig=maxset with_coverage=true python_version=3
- export myconfig=maxset with_coverage=true
- bash maintainer/CI/build_cmake.sh
tags:
- docker
Expand All @@ -117,7 +117,7 @@ no_rotation:
<<: *global_job_definition
stage: build
script:
- export myconfig=no_rotation with_coverage=true python_version=3
- export myconfig=no_rotation with_coverage=true
- bash maintainer/CI/build_cmake.sh
tags:
- docker
Expand All @@ -127,7 +127,7 @@ nocheckmaxset:
<<: *global_job_definition
stage: build
script:
- export with_cuda=false myconfig=nocheck-maxset python_version=3 make_check=false
- export with_cuda=false myconfig=nocheck-maxset make_check=false
- bash maintainer/CI/build_cmake.sh
tags:
- docker
Expand All @@ -140,7 +140,7 @@ nocheckmaxset:
debian:9:
<<: *global_job_definition
stage: build
image: gitlab.icp.uni-stuttgart.de:4567/espressomd/docker/$CI_JOB_NAME
image: gitlab.icp.uni-stuttgart.de:4567/espressomd/docker/debian-python3:9
script:
- export with_cuda=false
- export myconfig=maxset make_check=false
Expand All @@ -154,7 +154,7 @@ opensuse:15.1:
stage: build
image: gitlab.icp.uni-stuttgart.de:4567/espressomd/docker/$CI_JOB_NAME
script:
- export with_cuda=false myconfig=maxset make_check=false python_version=3
- export with_cuda=false myconfig=maxset make_check=false
- bash maintainer/CI/build_cmake.sh
tags:
- docker
Expand All @@ -165,7 +165,7 @@ centos:7:
stage: build
image: gitlab.icp.uni-stuttgart.de:4567/espressomd/docker/centos-python3:7
script:
- export with_cuda=false myconfig=maxset make_check=true python_version=3
- export with_cuda=false myconfig=maxset make_check=true
- bash maintainer/CI/build_cmake.sh
tags:
- docker
Expand All @@ -176,7 +176,7 @@ fedora:
stage: build
image: gitlab.icp.uni-stuttgart.de:4567/espressomd/docker/centos-python3:next
script:
- export with_cuda=false myconfig=maxset make_check=false python_version=3
- export with_cuda=false myconfig=maxset make_check=false
- bash maintainer/CI/build_cmake.sh
tags:
- docker
Expand All @@ -193,7 +193,7 @@ cuda-maxset:
stage: build
image: gitlab.icp.uni-stuttgart.de:4567/espressomd/docker/cuda:9.0
script:
- export myconfig=maxset with_coverage=true python_version=3 test_timeout=900 srcdir=${CI_PROJECT_DIR}
- export myconfig=maxset with_coverage=true test_timeout=900 srcdir=${CI_PROJECT_DIR}
- bash maintainer/CI/build_cmake.sh
artifacts:
paths:
Expand All @@ -209,7 +209,7 @@ tutorials-samples-maxset:
stage: build
image: gitlab.icp.uni-stuttgart.de:4567/espressomd/docker/cuda:tutorials
script:
- export myconfig=maxset with_coverage=false python_version=3 make_check=false
- export myconfig=maxset with_coverage=false make_check=false
- export make_check_tutorials=true make_check_samples=true make_check_benchmarks=true test_timeout=1200
- bash maintainer/CI/build_cmake.sh
tags:
Expand All @@ -222,7 +222,7 @@ tutorials-samples-default:
stage: build
image: gitlab.icp.uni-stuttgart.de:4567/espressomd/docker/cuda:tutorials
script:
- export myconfig=default with_coverage=false python_version=3 make_check=false
- export myconfig=default with_coverage=false make_check=false
- export make_check_tutorials=true make_check_samples=true make_check_benchmarks=true test_timeout=1200
- bash maintainer/CI/build_cmake.sh
tags:
Expand All @@ -237,7 +237,7 @@ tutorials-samples-empty:
stage: build
image: gitlab.icp.uni-stuttgart.de:4567/espressomd/docker/cuda:tutorials
script:
- export myconfig=empty with_coverage=false python_version=3 make_check=false
- export myconfig=empty with_coverage=false make_check=false
- export make_check_tutorials=true make_check_samples=true make_check_benchmarks=true test_timeout=1200
- bash maintainer/CI/build_cmake.sh
tags:
Expand All @@ -252,7 +252,7 @@ tutorials-samples-no-gpu:
stage: build
image: gitlab.icp.uni-stuttgart.de:4567/espressomd/docker/cuda:tutorials
script:
- export myconfig=maxset with_coverage=false python_version=3 make_check=false
- export myconfig=maxset with_coverage=false make_check=false
- export make_check_tutorials=true make_check_samples=true make_check_benchmarks=true test_timeout=1200 hide_gpu=true
- bash maintainer/CI/build_cmake.sh
tags:
Expand All @@ -269,7 +269,7 @@ cuda-no-gpu:
stage: build
image: gitlab.icp.uni-stuttgart.de:4567/espressomd/docker/cuda:9.0
script:
- export myconfig=maxset hide_gpu=true python_version=3 test_timeout=900
- export myconfig=maxset hide_gpu=true test_timeout=900
- bash maintainer/CI/build_cmake.sh
tags:
- docker
Expand All @@ -280,7 +280,7 @@ empty:
stage: build
image: gitlab.icp.uni-stuttgart.de:4567/espressomd/docker/cuda:9.0
script:
- export myconfig=empty python_version=3
- export myconfig=empty
- bash maintainer/CI/build_cmake.sh
tags:
- docker
Expand All @@ -290,7 +290,7 @@ empty:
ubuntu:wo-dependencies:
<<: *global_job_definition
stage: build
image: gitlab.icp.uni-stuttgart.de:4567/espressomd/docker/$CI_JOB_NAME
image: gitlab.icp.uni-stuttgart.de:4567/espressomd/docker/ubuntu-python3:wo-dependencies
script:
- export myconfig=maxset make_check=false
- bash maintainer/CI/build_cmake.sh
Expand All @@ -303,7 +303,7 @@ ubuntu:wo-dependencies:
rocm-maxset:
<<: *global_job_definition
stage: build
image: gitlab.icp.uni-stuttgart.de:4567/espressomd/docker/rocm:latest
image: gitlab.icp.uni-stuttgart.de:4567/espressomd/docker/rocm-python3:latest
script:
- export myconfig=maxset
- bash maintainer/CI/build_cmake.sh
Expand All @@ -319,7 +319,7 @@ rocm-maxset:
script:
- export with_cuda=false test_timeout=900 check_skip_long=true
- export OMPI_MCA_btl_vader_single_copy_mechanism=none
- export myconfig=maxset python_version=3
- export myconfig=maxset
- bash maintainer/CI/build_cmake.sh
tags:
- docker
Expand Down Expand Up @@ -352,7 +352,7 @@ osx:
<<: *global_job_definition
stage: build
script:
- export with_ccache=false myconfig=maxset with_cuda=false python_version=3
- export with_ccache=false myconfig=maxset with_cuda=false
- bash maintainer/CI/build_cmake.sh
tags:
- mac
Expand All @@ -361,7 +361,7 @@ osx-cuda:
<<: *global_job_definition
stage: build
script:
- export with_ccache=false myconfig=maxset with_cuda=true python_version=3 make_check=false
- export with_ccache=false myconfig=maxset with_cuda=true make_check=false
- bash maintainer/CI/build_cmake.sh
tags:
- mac
Expand All @@ -371,7 +371,7 @@ osx-cuda:
clang:6.0:
<<: *global_job_definition
stage: build
image: gitlab.icp.uni-stuttgart.de:4567/espressomd/docker/$CI_JOB_NAME
image: gitlab.icp.uni-stuttgart.de:4567/espressomd/docker/clang-python3:6.0
script:
- export myconfig=maxset with_coverage=false with_static_analysis=true with_asan=true with_ubsan=true test_timeout=900
- bash maintainer/CI/build_cmake.sh
Expand All @@ -384,7 +384,7 @@ clang:6.0:
intel:18:
<<: *global_job_definition
stage: build
image: gitlab.icp.uni-stuttgart.de:4567/espressomd/docker/$CI_JOB_NAME
image: gitlab.icp.uni-stuttgart.de:4567/espressomd/docker/intel-python3:18
script:
- export myconfig=maxset with_coverage=false I_MPI_SHM_LMT=shm
- export cxx_flags=-O2
Expand Down Expand Up @@ -441,7 +441,7 @@ check_with_odd_no_of_processors:
image: gitlab.icp.uni-stuttgart.de:4567/espressomd/docker/cuda:9.0
when: on_success
script:
- export myconfig=maxset with_coverage=true python_version=3 build_procs=3 check_procs=3 check_odd_only=true
- export myconfig=maxset with_coverage=true build_procs=3 check_procs=3 check_odd_only=true
- bash maintainer/CI/build_cmake.sh
tags:
- docker
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -11,7 +11,7 @@ matrix:
- os: linux
sudo: required
services: docker
env: myconfig=maxset image=ubuntu-python3 python_version=3
env: myconfig=maxset image=ubuntu-python3

script:
- maintainer/CI/build_docker.sh
2 changes: 1 addition & 1 deletion CMakeLists.txt
Expand Up @@ -235,7 +235,7 @@ if(WITH_CUDA)
endif()
endif(WITH_CUDA)

find_package(PythonInterp REQUIRED)
find_package(PythonInterp 3 REQUIRED)

if(WITH_PYTHON)
find_package(Cython 0.23 REQUIRED)
Expand Down
5 changes: 2 additions & 3 deletions maintainer/CI/build_cmake.sh
Expand Up @@ -94,7 +94,6 @@ set_default_value check_skip_long false
set_default_value make_check_tutorials false
set_default_value make_check_samples false
set_default_value make_check_benchmarks false
set_default_value python_version 2
set_default_value with_cuda true
set_default_value build_type "Debug"
set_default_value with_ccache false
Expand Down Expand Up @@ -129,7 +128,7 @@ if [ ${with_coverage} = true ]; then
bash <(curl -s https://codecov.io/env) &> /dev/null;
fi

cmake_params="-DCMAKE_BUILD_TYPE=${build_type} -DPYTHON_EXECUTABLE=$(which python${python_version}) -DWARNINGS_ARE_ERRORS=ON -DTEST_NP:INT=${check_procs} ${cmake_params} -DWITH_SCAFACOS=ON"
cmake_params="-DCMAKE_BUILD_TYPE=${build_type} -DWARNINGS_ARE_ERRORS=ON -DTEST_NP:INT=${check_procs} ${cmake_params} -DWITH_SCAFACOS=ON"
cmake_params="${cmake_params} -DCMAKE_CXX_FLAGS=${cxx_flags} -DCUDA_NVCC_FLAGS=${nvcc_flags}"
cmake_params="${cmake_params} -DCMAKE_INSTALL_PREFIX=/tmp/espresso-unit-tests"
cmake_params="${cmake_params} -DTEST_TIMEOUT=${test_timeout}"
Expand Down Expand Up @@ -157,7 +156,7 @@ outp insource srcdir builddir \
check_odd_only \
with_static_analysis myconfig \
build_procs check_procs \
python_version with_cuda with_ccache
with_cuda with_ccache

# check indentation of python files
pep8_command () {
Expand Down
1 change: 0 additions & 1 deletion maintainer/CI/build_docker.sh
Expand Up @@ -11,7 +11,6 @@ with_coverage=$with_coverage
myconfig=$myconfig
check_procs=$check_procs
make_check=$make_check
python_version=$python_version
EOF

if [ -z "$image" ]; then
Expand Down

0 comments on commit a1f1af8

Please sign in to comment.