Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • CodeursIntensifs/grayscott/GrayScottSyclSetup
1 result
Show changes
Commits on Source (17)
......@@ -5,47 +5,64 @@ variables:
stages:
- build
- test
placeholder:
stage: build
script:
- echo "Nothing more to expect from the CI"
only:
- branches
build_alpine_vscode_image:
build_ubuntu_vscode_image:
stage: build
image:
#name: gcr.io/kaniko-project/executor:debug
name: gcr.io/kaniko-project/executor:v1.18.0-debug
entrypoint: [""]
script:
- ${CI_PROJECT_DIR}/scripts/scriptCreateImage.sh docker/micromamba_vscode/Dockerfile "gray_scott_sycl_alpine_micromamba_vscode:latest"
only:
- branches
- tags
#refs:
#- master
- ${CI_PROJECT_DIR}/scripts/scriptCreateImage.sh docker/micromamba_vscode/Dockerfile "gray_scott_sycl_ubuntu_micromamba_vscode:latest"
rules:
#- when: always
- when: never
#only:
#- branches
#- tags
##refs:
##- master
build_alpine_code_server_image:
build_ubuntu_code_server_image:
stage: build
image:
#name: gcr.io/kaniko-project/executor:debug
name: gcr.io/kaniko-project/executor:v1.18.0-debug
entrypoint: [""]
script:
- ${CI_PROJECT_DIR}/scripts/scriptCreateImage.sh docker/code_server/Dockerfile "gray_scott_sycl_alpine_micromamba_code_server:latest"
only:
- branches
- tags
- ${CI_PROJECT_DIR}/scripts/scriptCreateImage.sh docker/ubuntu_micromama_code_server/Dockerfile "gray_scott_sycl_ubuntu_micromamba_code_server:latest"
rules:
#- when: always
- when: never
#only:
#- branches
#- tags
#refs:
#- master
build_alpine_light_image:
build_ubuntu_light_image:
stage: build
image:
#name: gcr.io/kaniko-project/executor:debug
name: gcr.io/kaniko-project/executor:v1.18.0-debug
entrypoint: [""]
script:
- ${CI_PROJECT_DIR}/scripts/scriptCreateImage.sh docker/alpine_light/Dockerfile "gray_scott_sycl_alpine_light:latest"
only:
- branches
- tags
#refs:
#- master
- ${CI_PROJECT_DIR}/scripts/scriptCreateImage.sh docker/ubuntu_light/Dockerfile "gray_scott_sycl_ubuntu_light:latest"
rules:
#- when: always
- when: never
#only:
#- branches
#- tags
##refs:
##- master
FROM ubuntu:22.04
COPY docker/ubuntu_micromama_code_server/README.md /home/$MAMBA_USER/Examples/README.md
COPY CheckOneApiCpu /home/$MAMBA_USER/Examples/CheckOneApiCpu
COPY CheckOneApiCuda /home/$MAMBA_USER/Examples/CheckOneApiCuda
COPY GrayScottSeq /home/$MAMBA_USER/Examples/GrayScottSeq
# micromamba dockerfile makes use of SHELL. If it is overwritten
# the auto-activate might not work
# https://micromamba-docker.readthedocs.io/en/latest/advanced_usage.html#use-of-the-shell-command-within-a-dockerfile
# Note: if defining entrypoints one must make sure to not overwrite the
# micromamba entrypoint, otherwise the base environment won't be loaded.
# https://micromamba-docker.readthedocs.io/en/latest/advanced_usage.html#use-of-the-entrypoint-command-within-a-dockerfile
# We need git for setuptools scm to automatically detect version
ENV GIT_SSL_NO_VERIFY=1
USER root
RUN apt-get -y update && apt-get install -y gcc g++ cmake make git wget libtbb-dev curl gpg && \
apt-get -y clean autoremove
RUN wget https://registrationcenter-download.intel.com/akdlm/IRC_NAS/b6f11fab-a0ff-4d44-a5a0-ed59d0fa971c/l_dpcpp-cpp-compiler_p_2024.1.2.504.sh -O intelCompilerInstall.sh && \
chmod a+x ./intelCompilerInstall.sh && \
./intelCompilerInstall.sh -a -s --eula accept && \
rm ./intelCompilerInstall.sh
RUN apt-get -y install nvidia-cuda-toolkit && apt-get -y clean autoremove
COPY docker/ubuntu_light/source_intel.sh /bin/source_intel.sh
ENTRYPOINT ["source_intel.sh"]
# docker login gitlab-registry.in2p3.fr
# docker build -t gitlab-registry.in2p3.fr/codeursintensifs/grayscott/grayscottsyclsetup/gray_scott_sycl_ubuntu_cuda_light -f docker/ubuntu_cuda_light/Dockerfile .
# docker push gitlab-registry.in2p3.fr/codeursintensifs/grayscott/grayscottsyclsetup/gray_scott_sycl_ubuntu_cuda_light
FROM gitlab-registry.in2p3.fr/cta-lapp/cours/lecturedockerimages/ubuntu_micromamba_code_server:0.1
COPY docker/ubuntu_micromama_code_server/README.md /home/$MAMBA_USER/Examples/README.md
COPY CheckOneApiCpu /home/$MAMBA_USER/Examples/CheckOneApiCpu
COPY CheckOneApiCuda /home/$MAMBA_USER/Examples/CheckOneApiCuda
COPY GrayScottSeq /home/$MAMBA_USER/Examples/GrayScottSeq
# micromamba dockerfile makes use of SHELL. If it is overwritten
# the auto-activate might not work
# https://micromamba-docker.readthedocs.io/en/latest/advanced_usage.html#use-of-the-shell-command-within-a-dockerfile
# Note: if defining entrypoints one must make sure to not overwrite the
# micromamba entrypoint, otherwise the base environment won't be loaded.
# https://micromamba-docker.readthedocs.io/en/latest/advanced_usage.html#use-of-the-entrypoint-command-within-a-dockerfile
# We need git for setuptools scm to automatically detect version
ENV GIT_SSL_NO_VERIFY=1
USER root
RUN apt-get -y update && apt-get install -y gcc g++ cmake make git wget libtbb-dev curl gpg && \
apt-get -y clean autoremove
RUN wget https://registrationcenter-download.intel.com/akdlm/IRC_NAS/b6f11fab-a0ff-4d44-a5a0-ed59d0fa971c/l_dpcpp-cpp-compiler_p_2024.1.2.504.sh -O intelCompilerInstall.sh && \
chmod a+x ./intelCompilerInstall.sh && \
./intelCompilerInstall.sh -a -s --eula accept && \
rm ./intelCompilerInstall.sh
RUN apt-get -y install nvidia-cuda-toolkit && apt-get -y clean autoremove
USER $MAMBA_USER
COPY docker/ubuntu_micromama_code_server/start_code_server.sh /bin/start_code_server.sh
# ENTRYPOINT ["/usr/local/bin/_entrypoint.sh"]
# Optional: if you want to customize the ENTRYPOINT and have a conda
# environment activated, then do this:
ENTRYPOINT ["/usr/local/bin/_entrypoint.sh", "start_code_server.sh"]
# docker login gitlab-registry.in2p3.fr
# docker build -t gitlab-registry.in2p3.fr/codeursintensifs/grayscott/grayscottsyclsetup/gray_scott_sycl_ubuntu_cuda_micromama_code_server -f docker/ubuntu_cuda_micromama_code_server/Dockerfile .
# docker push gitlab-registry.in2p3.fr/codeursintensifs/grayscott/grayscottsyclsetup/gray_scott_sycl_ubuntu_cuda_micromama_code_server
FROM gitlab-registry.in2p3.fr/cta-lapp/cours/lecturedockerimages/ubuntu_micromamba_vscode:0.1
COPY docker/ubuntu_micromama_code_server/README.md /home/$MAMBA_USER/Examples/README.md
COPY CheckOneApiCpu /home/$MAMBA_USER/Examples/CheckOneApiCpu
COPY CheckOneApiCuda /home/$MAMBA_USER/Examples/CheckOneApiCuda
COPY GrayScottSeq /home/$MAMBA_USER/Examples/GrayScottSeq
# micromamba dockerfile makes use of SHELL. If it is overwritten
# the auto-activate might not work
# https://micromamba-docker.readthedocs.io/en/latest/advanced_usage.html#use-of-the-shell-command-within-a-dockerfile
# Note: if defining entrypoints one must make sure to not overwrite the
# micromamba entrypoint, otherwise the base environment won't be loaded.
# https://micromamba-docker.readthedocs.io/en/latest/advanced_usage.html#use-of-the-entrypoint-command-within-a-dockerfile
# We need git for setuptools scm to automatically detect version
ENV GIT_SSL_NO_VERIFY=1
USER root
RUN apt-get -y update && apt-get install -y gcc g++ cmake make git wget libtbb-dev curl gpg && \
apt-get -y clean autoremove
RUN wget https://registrationcenter-download.intel.com/akdlm/IRC_NAS/b6f11fab-a0ff-4d44-a5a0-ed59d0fa971c/l_dpcpp-cpp-compiler_p_2024.1.2.504.sh -O intelCompilerInstall.sh && \
chmod a+x ./intelCompilerInstall.sh && \
./intelCompilerInstall.sh -a -s --eula accept && \
rm ./intelCompilerInstall.sh
RUN apt-get -y install nvidia-cuda-toolkit && apt-get -y clean autoremove
USER $MAMBA_USER
# Let's us the start of the other recipe
COPY docker/ubuntu_micromama_code_server/start_code_server.sh /bin/start_code_server.sh
# ENTRYPOINT ["/usr/local/bin/_entrypoint.sh"]
# Optional: if you want to customize the ENTRYPOINT and have a conda
# environment activated, then do this:
ENTRYPOINT ["/usr/local/bin/_entrypoint.sh", "start_code_server.sh"]
# docker login gitlab-registry.in2p3.fr
# docker build -t gitlab-registry.in2p3.fr/codeursintensifs/grayscott/grayscottsyclsetup/gray_scott_sycl_ubuntu_cuda_micromama_vscode -f docker/ubuntu_cuda_micromama_vscode/Dockerfile .
# docker push gitlab-registry.in2p3.fr/codeursintensifs/grayscott/grayscottsyclsetup/gray_scott_sycl_ubuntu_cuda_micromama_vscode
FROM ubuntu:22.04
COPY docker/ubuntu_micromama_code_server/README.md /home/$MAMBA_USER/Examples/README.md
COPY CheckOneApiCpu /home/$MAMBA_USER/Examples/CheckOneApiCpu
COPY CheckOneApiCuda /home/$MAMBA_USER/Examples/CheckOneApiCuda
COPY GrayScottSeq /home/$MAMBA_USER/Examples/GrayScottSeq
# micromamba dockerfile makes use of SHELL. If it is overwritten
# the auto-activate might not work
# https://micromamba-docker.readthedocs.io/en/latest/advanced_usage.html#use-of-the-shell-command-within-a-dockerfile
# Note: if defining entrypoints one must make sure to not overwrite the
# micromamba entrypoint, otherwise the base environment won't be loaded.
# https://micromamba-docker.readthedocs.io/en/latest/advanced_usage.html#use-of-the-entrypoint-command-within-a-dockerfile
# We need git for setuptools scm to automatically detect version
ENV GIT_SSL_NO_VERIFY=1
USER root
RUN apt-get -y update && apt-get install -y gcc g++ cmake make git wget libtbb-dev curl gpg && \
apt-get -y clean autoremove
RUN wget https://registrationcenter-download.intel.com/akdlm/IRC_NAS/b6f11fab-a0ff-4d44-a5a0-ed59d0fa971c/l_dpcpp-cpp-compiler_p_2024.1.2.504.sh -O intelCompilerInstall.sh && \
chmod a+x ./intelCompilerInstall.sh && \
./intelCompilerInstall.sh -a -s --eula accept && \
rm ./intelCompilerInstall.sh
COPY docker/ubuntu_light/source_intel.sh /bin/source_intel.sh
ENTRYPOINT ["source_intel.sh"]
# docker login gitlab-registry.in2p3.fr
# docker build -t gitlab-registry.in2p3.fr/codeursintensifs/grayscott/grayscottsyclsetup/gray_scott_sycl_ubuntu_light -f docker/ubuntu_light/Dockerfile .
# docker push gitlab-registry.in2p3.fr/codeursintensifs/grayscott/grayscottsyclsetup/gray_scott_sycl_ubuntu_light
#!/bin/bash
source /opt/intel/oneapi/setvars.sh
FROM gitlab-registry.in2p3.fr/cta-lapp/cours/lecturedockerimages/ubuntu_micromamba_code_server:0.1
COPY docker/ubuntu_micromama_code_server/README.md /home/$MAMBA_USER/Examples/README.md
COPY CheckOneApiCpu /home/$MAMBA_USER/Examples/CheckOneApiCpu
COPY CheckOneApiCuda /home/$MAMBA_USER/Examples/CheckOneApiCuda
COPY GrayScottSeq /home/$MAMBA_USER/Examples/GrayScottSeq
# micromamba dockerfile makes use of SHELL. If it is overwritten
# the auto-activate might not work
# https://micromamba-docker.readthedocs.io/en/latest/advanced_usage.html#use-of-the-shell-command-within-a-dockerfile
# Note: if defining entrypoints one must make sure to not overwrite the
# micromamba entrypoint, otherwise the base environment won't be loaded.
# https://micromamba-docker.readthedocs.io/en/latest/advanced_usage.html#use-of-the-entrypoint-command-within-a-dockerfile
# We need git for setuptools scm to automatically detect version
ENV GIT_SSL_NO_VERIFY=1
USER $MAMBA_USER
RUN eval "$(micromamba shell hook --shell bash)" && \
micromamba install --yes -n base -c intel dpcpp-cpp-rt onednn && \
micromamba clean --all --yes
USER root
RUN apt-get -y update && apt-get install -y gcc g++ cmake make git wget libtbb-dev curl gpg && \
apt-get -y clean autoremove
RUN wget https://registrationcenter-download.intel.com/akdlm/IRC_NAS/b6f11fab-a0ff-4d44-a5a0-ed59d0fa971c/l_dpcpp-cpp-compiler_p_2024.1.2.504.sh -O intelCompilerInstall.sh && \
chmod a+x ./intelCompilerInstall.sh && \
./intelCompilerInstall.sh -a -s --eula accept && \
rm ./intelCompilerInstall.sh
USER $MAMBA_USER
COPY docker/ubuntu_micromama_code_server/start_code_server.sh /bin/start_code_server.sh
# ENTRYPOINT ["/usr/local/bin/_entrypoint.sh"]
# Optional: if you want to customize the ENTRYPOINT and have a conda
# environment activated, then do this:
ENTRYPOINT ["/usr/local/bin/_entrypoint.sh", "start_code_server.sh"]
# docker login gitlab-registry.in2p3.fr
# docker build -t gitlab-registry.in2p3.fr/codeursintensifs/grayscott/grayscottsyclsetup/gray_scott_sycl_ubuntu_micromamba_code_server -f docker/ubuntu_micromama_code_server/Dockerfile .
# docker push gitlab-registry.in2p3.fr/codeursintensifs/grayscott/grayscottsyclsetup/gray_scott_sycl_ubuntu_micromamba_code_server
# Gray-Scott with SYCL
Follow the lecture at : https://gitlab.in2p3.fr/CodeursIntensifs/grayscott/GrayScottSyclSetup/-/blob/main/README.md?ref_type=heads
#!/bin/bash
source /opt/intel/oneapi/setvars.sh
code-server /home/${MAMBA_USER}/Examples/
FROM gitlab-registry.in2p3.fr/cta-lapp/cours/lecturedockerimages/ubuntu_micromamba_vscode:0.1
COPY docker/ubuntu_micromama_code_server/README.md /home/$MAMBA_USER/Examples/README.md
COPY CheckOneApiCpu /home/$MAMBA_USER/Examples/CheckOneApiCpu
COPY CheckOneApiCuda /home/$MAMBA_USER/Examples/CheckOneApiCuda
COPY GrayScottSeq /home/$MAMBA_USER/Examples/GrayScottSeq
# micromamba dockerfile makes use of SHELL. If it is overwritten
# the auto-activate might not work
# https://micromamba-docker.readthedocs.io/en/latest/advanced_usage.html#use-of-the-shell-command-within-a-dockerfile
# Note: if defining entrypoints one must make sure to not overwrite the
# micromamba entrypoint, otherwise the base environment won't be loaded.
# https://micromamba-docker.readthedocs.io/en/latest/advanced_usage.html#use-of-the-entrypoint-command-within-a-dockerfile
# We need git for setuptools scm to automatically detect version
ENV GIT_SSL_NO_VERIFY=1
USER $MAMBA_USER
RUN eval "$(micromamba shell hook --shell bash)" && \
micromamba install --yes -n base -c intel dpcpp-cpp-rt onednn && \
micromamba clean --all --yes
USER root
RUN apt-get -y update && apt-get install -y gcc g++ cmake make git wget libtbb-dev curl gpg && \
apt-get -y clean autoremove
RUN wget https://registrationcenter-download.intel.com/akdlm/IRC_NAS/b6f11fab-a0ff-4d44-a5a0-ed59d0fa971c/l_dpcpp-cpp-compiler_p_2024.1.2.504.sh -O intelCompilerInstall.sh && \
chmod a+x ./intelCompilerInstall.sh && \
./intelCompilerInstall.sh -a -s --eula accept && \
rm ./intelCompilerInstall.sh
USER $MAMBA_USER
# Let's us the start of the other recipe
COPY docker/ubuntu_micromama_code_server/start_code_server.sh /bin/start_code_server.sh
# ENTRYPOINT ["/usr/local/bin/_entrypoint.sh"]
# Optional: if you want to customize the ENTRYPOINT and have a conda
# environment activated, then do this:
ENTRYPOINT ["/usr/local/bin/_entrypoint.sh", "start_code_server.sh"]
# docker login gitlab-registry.in2p3.fr
# docker build -t gitlab-registry.in2p3.fr/codeursintensifs/grayscott/grayscottsyclsetup/gray_scott_sycl_ubuntu_micromamba_vscode -f docker/ubuntu_micromama_vscode/Dockerfile .
# docker push gitlab-registry.in2p3.fr/codeursintensifs/grayscott/grayscottsyclsetup/gray_scott_sycl_ubuntu_micromamba_vscode