From b32079fec68825900595886db621eb41a0169d45 Mon Sep 17 00:00:00 2001 From: wangkaiqiang Date: Mon, 27 Oct 2025 09:13:21 +0800 Subject: [PATCH] add oneapi-2025.0 cuda-12.5.1 --- AI/cuda/12.5.1/23/base/Dockerfile | 11 +++++++++ AI/cuda/buildspec.yml | 12 ++++++++++ AI/cuda/version.yml | 8 +++++++ AI/oneapi/2025.0/23/basekit/Dockerfile | 29 +++++++++++++++++++++++ AI/oneapi/2025.0/23/runtime/Dockerfile | 32 ++++++++++++++++++++++++++ AI/oneapi/buildspec.yml | 28 ++++++++++++++++++++++ AI/oneapi/version.yml | 7 ++++++ 7 files changed, 127 insertions(+) create mode 100644 AI/cuda/12.5.1/23/base/Dockerfile create mode 100644 AI/oneapi/2025.0/23/basekit/Dockerfile create mode 100644 AI/oneapi/2025.0/23/runtime/Dockerfile diff --git a/AI/cuda/12.5.1/23/base/Dockerfile b/AI/cuda/12.5.1/23/base/Dockerfile new file mode 100644 index 0000000..05d16f9 --- /dev/null +++ b/AI/cuda/12.5.1/23/base/Dockerfile @@ -0,0 +1,11 @@ +FROM registry.openanolis.cn/openanolis/anolisos:23 + +LABEL \ + maintainer="OpenAnolis AI SIG" \ + org.opencontainers.image.title="cuda base with cudart" \ + org.opencontainers.image.version="12.5.1-23-base" + +RUN dnf install anolis-epao-release -y +RUN dnf install cuda-cudart-12-5 cuda-compat-12-5 -y + +CMD ["/bin/bash"] diff --git a/AI/cuda/buildspec.yml b/AI/cuda/buildspec.yml index 7ee27a4..aafeda2 100644 --- a/AI/cuda/buildspec.yml +++ b/AI/cuda/buildspec.yml @@ -57,3 +57,15 @@ images: registry: [*ACR_PROD] # 测试配置 test_config: [*WORKSPACE, *PROJECT, *TEST_SUITE, *TEST_CONF, '', *CLOUD_SERVER_TAG[0], ''] + # 分组名称,支持自定义 + BuildCudaBase-12.5.1DockerImage: + # 定义是否构建参数 + build: true + docker_file: + path: AI/cuda/12.5.1/23/base/Dockerfile + scene: + args: [] + tags: [12.5.1-23-base] + registry: [*ACR_PROD] + # 测试配置 + test_config: [*WORKSPACE, *PROJECT, *TEST_SUITE, *TEST_CONF, '', *CLOUD_SERVER_TAG[0], ''] diff --git a/AI/cuda/version.yml b/AI/cuda/version.yml index 096adeb..de815d4 100644 --- a/AI/cuda/version.yml +++ b/AI/cuda/version.yml @@ -12,3 +12,11 @@ Dependency: cuda_version: [] # 对 baseos 的要求,*AnolisOS8.6 表示 Anolis8.6 baseos_version: [*AnolisOS23] + versions: + 12.5.1: + # 对 AI 框架版本对 python 版本的要求 + python_version: [] + # gpu 对 cuda 版本的要求 + cuda_version: [] + # 对 baseos 的要求,*AnolisOS8.6 表示 Anolis8.6 + baseos_version: [*AnolisOS23] diff --git a/AI/oneapi/2025.0/23/basekit/Dockerfile b/AI/oneapi/2025.0/23/basekit/Dockerfile new file mode 100644 index 0000000..08e143a --- /dev/null +++ b/AI/oneapi/2025.0/23/basekit/Dockerfile @@ -0,0 +1,29 @@ +FROM registry.openanolis.cn/openanolis/anolisos:23 + +LABEL \ + maintainer="OpenAnolis AI SIG" \ + org.opencontainers.image.title="oneapi basekit" \ + org.opencontainers.image.version="2025.0-basekit" + +RUN arch | grep -q x86_64 || (echo "Intel oneAPI only supports x86_64" && exit 1) + +RUN echo $'\ +[oneAPI]\n\ +name=Intel(R) oneAPI repository\n\ +baseurl=https://yum.repos.intel.com/oneapi\n\ +enabled=1\n\ +gpgcheck=1\n\ +repo_gpgcheck=1\n\ +gpgkey=https://yum.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023.PUB' \ +> /etc/yum.repos.d/oneAPI.repo + +RUN yum install -y procps-ng \ + intel-oneapi-base-toolkit-2025.0 && \ + yum clean all && \ + rm -rf /var/cache/yum + +RUN echo 'source /opt/intel/oneapi/setvars.sh --force > /dev/null' \ + > /etc/profile.d/oneapi.sh + +CMD ["/bin/bash"] + diff --git a/AI/oneapi/2025.0/23/runtime/Dockerfile b/AI/oneapi/2025.0/23/runtime/Dockerfile new file mode 100644 index 0000000..ecfe046 --- /dev/null +++ b/AI/oneapi/2025.0/23/runtime/Dockerfile @@ -0,0 +1,32 @@ +FROM registry.openanolis.cn/openanolis/anolisos:23 + +LABEL \ + maintainer="OpenAnolis AI SIG" \ + org.opencontainers.image.title="oneapi runtime" \ + org.opencontainers.image.version="2025.0-runtime" + +RUN arch | grep -q x86_64 || (echo "Intel oneAPI runtime only supports x86_64" && exit 1) + +RUN echo $'\ +[oneAPI]\n\ +name=Intel(R) oneAPI repository\n\ +baseurl=https://yum.repos.intel.com/oneapi\n\ +enabled=1\n\ +gpgcheck=1\n\ +repo_gpgcheck=1\n\ +gpgkey=https://yum.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023.PUB' \ +> /etc/yum.repos.d/oneAPI.repo + +RUN yum install -y --setopt=tsflags=nodocs \ + intel-oneapi-mkl-2025.0 \ + intel-oneapi-compiler-dpcpp-cpp-runtime-2025.0 \ + intel-oneapi-compiler-shared-runtime-2025.0 \ + procps-ng && \ + yum clean all + + +RUN echo 'source /opt/intel/oneapi/setvars.sh' >> /root/.bashrc + + +ENTRYPOINT ["bash"] + diff --git a/AI/oneapi/buildspec.yml b/AI/oneapi/buildspec.yml index 3cd4e46..7fc5ece 100644 --- a/AI/oneapi/buildspec.yml +++ b/AI/oneapi/buildspec.yml @@ -49,3 +49,31 @@ images: registry: [*ACR_PROD] # 测试配置 test_config: [*WORKSPACE, *PROJECT, *TEST_SUITE, *TEST_CONF, '', *CLOUD_SERVER_TAG[0], ''] + # 分组名称,支持自定义 + BuildCudaBase2025.0DockerImage: + # 定义是否构建参数 + build: true + test: false + platform: [linux/amd64] + docker_file: + path: AI/oneapi/2025.0/23/basekit/Dockerfile + scene: + args: [] + tags: [2025.0-23-basekit] + registry: [*ACR_PROD] + # 测试配置 + test_config: [*WORKSPACE, *PROJECT, *TEST_SUITE, *TEST_CONF, '', *CLOUD_SERVER_TAG[0], ''] + # 分组名称,支持自定义 + BuildCudaRuntime2025.0DockerImage: + # 定义是否构建参数 + build: true + test: false + platform: [linux/amd64] + docker_file: + path: AI/oneapi/2025.0/23/runtime/Dockerfile + scene: + args: [] + tags: [2025.0-23-runtime] + registry: [*ACR_PROD] + # 测试配置 + test_config: [*WORKSPACE, *PROJECT, *TEST_SUITE, *TEST_CONF, '', *CLOUD_SERVER_TAG[0], ''] diff --git a/AI/oneapi/version.yml b/AI/oneapi/version.yml index 17d6d35..3fff3f1 100644 --- a/AI/oneapi/version.yml +++ b/AI/oneapi/version.yml @@ -12,3 +12,10 @@ Dependency: oneapi_version: [] # 对 baseos 的要求,*AnolisOS8.6 表示 Anolis8.6 baseos_version: [*AnolisOS23] + 2025.0: + # 对 AI 框架版本对 python 版本的要求 + python_version: [] + # gpu 对 Intel(R) oneAPI 版本的要求 + oneapi_version: [] + # 对 baseos 的要求,*AnolisOS8.6 表示 Anolis8.6 + baseos_version: [*AnolisOS23] -- Gitee