|
| 1 | +# Copyright (c) 2024 Intel Corporation |
| 2 | +# |
| 3 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | +# you may not use this file except in compliance with the License. |
| 5 | +# You may obtain a copy of the License at |
| 6 | +# |
| 7 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +# |
| 9 | +# Unless required by applicable law or agreed to in writing, software |
| 10 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | +# See the License for the specific language governing permissions and |
| 13 | +# limitations under the License. |
| 14 | + |
| 15 | +include: |
| 16 | + - path: |
| 17 | + - ../python/docker-compose.yaml |
| 18 | +services: |
| 19 | + jax-base: |
| 20 | + build: |
| 21 | + args: |
| 22 | + http_proxy: ${http_proxy} |
| 23 | + https_proxy: ${https_proxy} |
| 24 | + no_proxy: "" |
| 25 | + BASE_IMAGE_NAME: ${BASE_IMAGE_NAME:-ubuntu} |
| 26 | + BASE_IMAGE_TAG: ${BASE_IMAGE_TAG:-22.04} |
| 27 | + CCL_VER: ${CCL_VER:-2021.13.1-31} |
| 28 | + DPCPP_VER: ${DPCPP_VER:-2024.2.1-1079} |
| 29 | + GITHUB_RUN_NUMBER: ${GITHUB_RUN_NUMBER:-0} |
| 30 | + ICD_VER: ${ICD_VER:-24.22.29735.27-914~22.04} |
| 31 | + LEVEL_ZERO_DEV_VER: ${LEVEL_ZERO_DEV_VER:-1.17.6-914~22.04} |
| 32 | + LEVEL_ZERO_GPU_VER: ${LEVEL_ZERO_GPU_VER:-1.3.29735.27-914~22.04} |
| 33 | + LEVEL_ZERO_VER: ${LEVEL_ZERO_VER:-1.17.6-914~22.04} |
| 34 | + MINIFORGE_VERSION: ${MINIFORGE_VERSION:-Linux-x86_64} |
| 35 | + MKL_VER: ${MKL_VER:-2024.2.1-103} |
| 36 | + NO_PROXY: '' |
| 37 | + PACKAGE_OPTION: ${PACKAGE_OPTION:-pip} |
| 38 | + PYTHON_VERSION: ${PYTHON_VERSION:-3.10} |
| 39 | + REGISTRY: ${REGISTRY} |
| 40 | + REPO: ${REPO} |
| 41 | + context: . |
| 42 | + labels: |
| 43 | + dependency.python: ${PYTHON_VERSION:-3.10} |
| 44 | + dependency.apt.build-essential: true |
| 45 | + dependency.apt.clinfo: true |
| 46 | + dependency.apt.git: true |
| 47 | + dependency.apt.gnupg2: true |
| 48 | + dependency.apt.gpg-agent: true |
| 49 | + dependency.apt.intel-level-zero-gpu: ${LEVEL_ZERO_GPU_VER:-1.3.29735.27-914~22.04} |
| 50 | + dependency.apt.intel-oneapi-runtime-ccl: ${CCL_VER:-2021.13.1-31} |
| 51 | + dependency.apt.intel-oneapi-runtime-dpcpp-cpp: ${DPCPP_VER:-2024.2.1-1079} |
| 52 | + dependency.apt.intel-oneapi-runtime-mkl: ${MKL_VER:-2024.2.1-103} |
| 53 | + dependency.apt.intel-opencl-icd: ${ICD_VER:-23.43.27642.40-803~22.04} |
| 54 | + dependency.apt.level-zero: ${LEVEL_ZERO_VER:-1.17.6-914~22.04} |
| 55 | + dependency.apt.level-zero-dev: ${LEVEL_ZERO_DEV_VER:-1.17.6-914~22.04} |
| 56 | + dependency.apt.rsync: true |
| 57 | + dependency.apt.unzip: true |
| 58 | + dependency.idp.pip: false |
| 59 | + dependency.python.pip: requirements.txt |
| 60 | + docs: jax |
| 61 | + org.opencontainers.base.name: "intel/python:3.10-core" |
| 62 | + org.opencontainers.image.name: "intel/intel-optimized-xla" |
| 63 | + org.opencontainers.image.title: "Intel® Optimized XLA Base Image" |
| 64 | + org.opencontainers.image.version: ${INTEL_XLA_VERSION:-v0.4.0}-${PACKAGE_OPTION:-pip}-base |
| 65 | + target: jax-base |
| 66 | + command: > |
| 67 | + bash -c "python -c 'import jax; print(\"Jax Version:\", jax.__version__)'" |
| 68 | + depends_on: |
| 69 | + - ${PACKAGE_OPTION:-pip} |
| 70 | + image: ${REGISTRY}/${REPO}:b-${GITHUB_RUN_NUMBER:-0}-${BASE_IMAGE_NAME:-ubuntu}-${BASE_IMAGE_TAG:-22.04}-${PACKAGE_OPTION:-pip}-py${PYTHON_VERSION:-3.10}-xla-${INTEL_XLA_VERSION:-v0.4.0}-base |
| 71 | + pull_policy: always |
| 72 | + jupyter: |
| 73 | + build: |
| 74 | + labels: |
| 75 | + dependency.python.pip: jupyter-requirements.txt |
| 76 | + org.opencontainers.base.name: "intel/intel-optimized-xla:${INTEL_XLA_VERSION:-v0.4.0}-base" |
| 77 | + org.opencontainers.image.title: "Intel® Optimized XLA Jupyter Base Image" |
| 78 | + org.opencontainers.image.version: ${INTEL_XLA_VERSION:-v0.4.0}-jupyter |
| 79 | + target: jupyter |
| 80 | + command: > |
| 81 | + bash -c "python -m jupyter --version" |
| 82 | + environment: |
| 83 | + http_proxy: ${http_proxy} |
| 84 | + https_proxy: ${https_proxy} |
| 85 | + extends: jax-base |
| 86 | + image: ${REGISTRY}/${REPO}:b-${GITHUB_RUN_NUMBER:-0}-${BASE_IMAGE_NAME:-ubuntu}-${BASE_IMAGE_TAG:-22.04}-${PACKAGE_OPTION:-pip}-py${PYTHON_VERSION:-3.10}-xla-${INTEL_XLA_VERSION:-v0.4.0}-jupyter |
| 87 | + network_mode: host |
0 commit comments