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

Attempt to Enable Pythonic Placer in CI #1303

Draft
wants to merge 21 commits into
base: master
Choose a base branch
from
Draft
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
60 changes: 32 additions & 28 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
# https://github.com/pypa/manylinux
description: "PEP600 compatible platform name"
type: string
default: "quay.io/pypa/manylinux_2_24_x86_64"
default: "quay.io/pypa/manylinux_2_28_x86_64"

docker:
- image: <<parameters.platform>>
Expand Down Expand Up @@ -96,7 +96,7 @@ jobs:
ALIGN_HOME: /root/ALIGN-public
ALIGN_WORK_DIR: /root/ALIGN-public/work
MAX_JOBS: 2
BUILD_PLATFORM: manylinux_2_24_x86_64
BUILD_PLATFORM: manylinux_2_28_x86_64

steps:
- run:
Expand Down Expand Up @@ -183,27 +183,27 @@ workflows:
jobs:
- build-test-cktgen
- build-wheel:
name: "build-wheel-cp38-manylinux_2_24"
name: "build-wheel-cp38-manylinux_2_28"
matrix:
parameters:
platform:
- "quay.io/pypa/manylinux_2_24_x86_64" # PEP 600
- "quay.io/pypa/manylinux_2_28_x86_64" # PEP 600
python-tags:
- "cp38-cp38" # Python 3.8
- build-wheel:
name: "build-wheel-cp310-manylinux_2_24"
requires:
- build-wheel-cp38-manylinux_2_24
matrix:
parameters:
platform:
- "quay.io/pypa/manylinux_2_24_x86_64" # PEP 600
python-tags:
- "cp310-cp310" # Python 3.10
# - build-wheel:
# name: "build-wheel-cp310-manylinux_2_28"
# requires:
# - build-wheel-cp38-manylinux_2_28
# matrix:
# parameters:
# platform:
# - "quay.io/pypa/manylinux_2_28_x86_64" # PEP 600
# python-tags:
# - "cp310-cp310" # Python 3.10
# - build-wheel:
# name: "build-wheel-cp37-manylinux2010"
# requires:
# - build-wheel-cp38-manylinux_2_24
# - build-wheel-cp38-manylinux_2_28
# matrix:
# parameters:
# platform:
Expand All @@ -213,7 +213,7 @@ workflows:
- test-integration:
name: "test-integration-cp38-minimal"
requires:
- build-wheel-cp38-manylinux_2_24
- build-wheel-cp38-manylinux_2_28
filters:
branches:
ignore:
Expand All @@ -231,13 +231,14 @@ workflows:
- test-integration:
name: "test-integration-cp38-<<matrix.pdk>>"
requires:
- build-wheel-cp38-manylinux_2_24
- build-wheel-cp38-manylinux_2_28
filters:
branches:
only:
- master
- dev/pythonic_placer
matrix:
alias: test-integration-cp38-manylinux_2_24
alias: test-integration-cp38-manylinux_2_28
parameters:
platform:
- "python:3.8"
Expand All @@ -250,43 +251,46 @@ workflows:
- build-wheel:
name: "build-wheel-<<matrix.python-tags>>-<<matrix.platform>>"
requires:
- test-integration-cp38-manylinux_2_24
- test-integration-cp38-manylinux_2_28
filters:
branches:
only:
- master
- dev/pythonic_placer
matrix:
alias: build-wheel-all
parameters:
platform:
# - "quay.io/pypa/manylinux2010_x86_64" # PEP 571
- "quay.io/pypa/manylinux2014_x86_64" # PEP 599
- "quay.io/pypa/manylinux_2_24_x86_64" # PEP 600
# - "quay.io/pypa/manylinux2014_x86_64" # PEP 599
- "quay.io/pypa/manylinux_2_28_x86_64" # PEP 600
python-tags:
# - "cp37-cp37m"
- "cp38-cp38"
- "cp311-cp311"
- "cp310-cp310"
exclude:
# Skipping these as they have been built by
# other jobs
- platform: "quay.io/pypa/manylinux2010_x86_64"
python-tags: "cp37-cp37m"
- platform: "quay.io/pypa/manylinux_2_24_x86_64"
# - platform: "quay.io/pypa/manylinux2010_x86_64"
# python-tags: "cp37-cp37m"
- platform: "quay.io/pypa/manylinux_2_28_x86_64"
python-tags: "cp38-cp38"
- platform: "quay.io/pypa/manylinux_2_24_x86_64"
python-tags: "cp310-cp310"
# - platform: "quay.io/pypa/manylinux_2_28_x86_64"
# python-tags: "cp310-cp310"
- build-test-coverage:
requires:
- build-wheel-cp38-manylinux_2_24
- build-wheel-cp38-manylinux_2_28
filters:
branches:
only:
- master
- dev/pythonic_placer
- publish-wheel:
requires:
- build-wheel-all
filters:
branches:
only:
- master

- dev/pythonic_placer
24 changes: 12 additions & 12 deletions PlaceRouteHierFlow/thirdparty/ilpif.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,18 @@ if(NOT ilpsolverif_POPULATED)
add_library(ilp_solver::ilp_solver ALIAS ILPSolverIf)
else()
message(STATUS "ILP solver lib found in ${ilp_solver_lib}")
add_library(ilp_solver_if STATIC IMPORTED)
add_library(cbc_if STATIC IMPORTED)
add_library(clp_if STATIC IMPORTED)
add_library(cgl_if STATIC IMPORTED)
add_library(osi_if STATIC IMPORTED)
add_library(osiclp_if STATIC IMPORTED)
add_library(osicbc_if STATIC IMPORTED)
add_library(coinutils_if STATIC IMPORTED)
add_library(clpsolver_if STATIC IMPORTED)
add_library(cbcsolver_if STATIC IMPORTED)
add_library(sym_if STATIC IMPORTED)
add_library(osisym_if STATIC IMPORTED)
add_library(ilp_solver_if SHARED IMPORTED)
add_library(cbc_if SHARED IMPORTED)
add_library(clp_if SHARED IMPORTED)
add_library(cgl_if SHARED IMPORTED)
add_library(osi_if SHARED IMPORTED)
add_library(osiclp_if SHARED IMPORTED)
add_library(osicbc_if SHARED IMPORTED)
add_library(coinutils_if SHARED IMPORTED)
add_library(clpsolver_if SHARED IMPORTED)
add_library(cbcsolver_if SHARED IMPORTED)
add_library(sym_if SHARED IMPORTED)
add_library(osisym_if SHARED IMPORTED)
set_property(TARGET ilp_solver_if PROPERTY IMPORTED_LOCATION ${ilp_solver_lib})
target_include_directories(ilp_solver_if INTERFACE ${ilpsolverif_SOURCE_DIR}/ILPSolverIf)
target_include_directories(ilp_solver_if INTERFACE ${solver_search_path})
Expand Down
5 changes: 5 additions & 0 deletions bin/build_wheel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ case "$AUDITWHEEL_PLAT" in
#apt update
#apt -y install libboost-dev lp-solve
;;
"manylinux_2_28_x86_64")
# Not debian based (AlmaLinux 8)
#apt update
#apt -y install libboost-dev lp-solve
;;
*)
echo "WARNING: Unknown environment."
echo "Please make sure you are using a supported manylinux platform to run this script"
Expand Down