Skip to content

Commit 477da77

Browse files
committed
all gpus
1 parent d39afb4 commit 477da77

File tree

2 files changed

+43
-10
lines changed

2 files changed

+43
-10
lines changed

.github/workflows/ur-build-hw.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,14 +144,14 @@ jobs:
144144
# TODO_2: if needed here, only install it for level zero jobs; and install required staff for other adapters under other 'if'
145145
#
146146
# it seems there's image for intel drivers (L0):
147-
# ghcr.io/intel/llvm/ubuntu2404_intel_drivers:alldeps
147+
# ghcr.io/intel/llvm/ubuntu2404_intel_drivers:alldeps JESLI ZADZIALA TO BEZ INSTAL
148148
# and for other adapters (HIP, CUDA):
149149
# ghcr.io/intel/llvm/ubuntu2204_build:latest
150150
# or
151151
# ghcr.io/intel/llvm/ubuntu2404_build:latest
152152
# not sure on OpenCL and NativeCPU - to be checked.
153153
- name: Install Intel Level Zero GPU
154-
if: ${{inputs.adapter_name}} == "L0" || ${{inputs.adapter_name}} == "L0_V2"
154+
# if: ${{ inputs.adapter_name == 'L0' || inputs.adapter_name == 'L0_V2' }}
155155
run: |
156156
wget -qO - https://repositories.intel.com/gpu/intel-graphics.key | \
157157
sudo gpg --yes --dearmor --output /usr/share/keyrings/intel-graphics.gpg
@@ -161,6 +161,15 @@ jobs:
161161
sudo apt-get install -y libze-intel-gpu1 libze1 libze-dev intel-opencl-icd
162162
# libstdc++-12-dev
163163
164+
- name: Install OpenCL
165+
if: ${{ inputs.adapter_name == 'OPENCL' }}
166+
run: |
167+
wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB \
168+
| gpg --dearmor | sudo tee /usr/share/keyrings/oneapi-archive-keyring.gpg > /dev/null
169+
echo "deb [signed-by=/usr/share/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main" | sudo tee /etc/apt/sources.list.d/oneAPI.list
170+
sudo apt-get update
171+
sudo apt-get install -y intel-oneapi-runtime-opencl intel-oneapi-base-toolkit
172+
164173
- name: Configure Unified Runtime project
165174
# ">" is used to avoid adding "\" at the end of each line; this command is quite long
166175
run: >

.github/workflows/ur-precommit.yml

Lines changed: 32 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -76,18 +76,42 @@ jobs:
7676
docker_image: "ghcr.io/intel/llvm/ubuntu2204_build:latest"
7777
image_options: -u 1001 --device=/dev/dri -v /dev/dri/by-path:/dev/dri/by-path --privileged --cap-add SYS_ADMIN
7878
other_adapter: NATIVE_CPU
79+
- name: HIP
80+
runner: UR_HIP
81+
docker_image: "ghcr.io/intel/llvm/ubuntu2204_build:latest"
82+
image_options: -u 1001 --device=/dev/dri --device=/dev/kfd --cap-add=SYS_ADMIN
83+
- name: CUDA
84+
runner: UR_CUDA
85+
docker_image: "ghcr.io/intel/llvm/ubuntu2204_build:latest"
86+
image_options: -u 1001 --privileged --cap-add SYS_ADMIN --gpus all
87+
- name: OPENCL
88+
runner: UR_OPENCL
89+
platform: "Intel(R) OpenCL"
90+
docker_image: "ghcr.io/intel/llvm/ubuntu2204_build:latest"
91+
image_options: -u 1001 --device=/dev/dri --device=/dev/kfd --privileged --cap-add SYS_ADMIN
92+
- name: OPENCL
93+
runner: UR_OPENCL
94+
platform: "OPENCL:Intel(R) OpenCL"
95+
docker_image: "ghcr.io/intel/llvm/ubuntu2204_build:latest"
96+
image_options: -u 1001 --device=/dev/dri --device=/dev/kfd --privileged --cap-add SYS_ADMIN
97+
other_adapter: NATIVE_CPU
98+
- name: NATIVE_CPU
99+
runner: UR_NATIVE_CPU
100+
docker_image: "ghcr.io/intel/llvm/ubuntu2204_build:latest"
101+
image_options: -u 1001 --device=/dev/dri --privileged --cap-add SYS_ADMIN
102+
79103
# Extra native CPU jobs are here to force the loader to be used.
80104
# UR will not use the loader if there is only one target.
81105
# adapter: [
82106
# {name: L0, runner: UR_L0, docker_image: "ghcr.io/intel/llvm/ubuntu2204_build:latest"},
83-
# # {name: L0_V2, runner: UR_L0},
84-
# # {name: L0, runner: UR_L0, static: ON},
85-
# # {name: OPENCL, runner: UR_OPENCL, platform: "Intel(R) OpenCL"},
86-
# # {name: CUDA, runner: UR_CUDA},
87-
# # {name: HIP, runner: UR_HIP},
88-
# # {name: NATIVE_CPU, runner: UR_NATIVE_CPU},
89-
# # {name: OPENCL, runner: UR_OPENCL, other_adapter: NATIVE_CPU, platform: "OPENCL:Intel(R) OpenCL"},
90-
# # {name: L0, runner: UR_L0, other_adapter: NATIVE_CPU},
107+
# {name: L0_V2, runner: UR_L0},
108+
# {name: L0, runner: UR_L0, static: ON},
109+
# {name: OPENCL, runner: UR_OPENCL, platform: "Intel(R) OpenCL"},
110+
# {name: CUDA, runner: UR_CUDA},
111+
# {name: HIP, runner: UR_HIP},
112+
# {name: NATIVE_CPU, runner: UR_NATIVE_CPU},
113+
# {name: OPENCL, runner: UR_OPENCL, other_adapter: NATIVE_CPU, platform: "OPENCL:Intel(R) OpenCL"},
114+
# {name: L0, runner: UR_L0, other_adapter: NATIVE_CPU},
91115
# ]
92116
uses: ./.github/workflows/ur-build-hw.yml
93117
with:

0 commit comments

Comments
 (0)