Skip to content

Commit 6b2006a

Browse files
author
iclsrc
committed
Merge from 'sycl' to 'sycl-web' (7 commits)
2 parents 9608ce9 + 98a87f3 commit 6b2006a

File tree

73 files changed

+1103
-434
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+1103
-434
lines changed

.github/workflows/sycl-containers-igc-dev.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ jobs:
3535
imagefile: ubuntu2404_intel_drivers
3636
tag: devigc
3737
build_args: |
38-
"use_unstable_driver=false"
3938
"use_igc_dev=true"
4039
steps:
4140
- name: Checkout

.github/workflows/sycl-containers.yaml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,29 +54,23 @@ jobs:
5454
- name: Intel Drivers Ubuntu 22.04 Docker image
5555
file: ubuntu2204_intel_drivers
5656
tag: latest
57-
build_args: "use_unstable_driver=false"
57+
build_args: ""
5858
- name: Intel Drivers Ubuntu 24.04 Docker image
5959
file: ubuntu2404_intel_drivers
6060
tag: latest
61-
build_args: "use_unstable_driver=false"
62-
- name: Intel Drivers (unstable) Ubuntu 24.04 Docker image
63-
file: ubuntu2404_intel_drivers
64-
tag: unstable
65-
build_args: "use_unstable_driver=true"
61+
build_args: ""
6662
- name: Build + Intel Drivers Ubuntu 22.04 Docker image
6763
file: ubuntu2204_intel_drivers
6864
tag: alldeps
6965
build_args: |
7066
base_image=ghcr.io/intel/llvm/ubuntu2204_build
7167
base_tag=latest
72-
use_unstable_driver=false
7368
- name: Build + Intel Drivers Ubuntu 24.04 Docker image
7469
file: ubuntu2404_intel_drivers
7570
tag: alldeps
7671
build_args: |
7772
base_image=ghcr.io/intel/llvm/ubuntu2404_build
7873
base_tag=latest
79-
use_unstable_driver=false
8074
steps:
8175
- name: Checkout
8276
uses: actions/checkout@v4

devops/containers/ubuntu2204_intel_drivers.Dockerfile

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ FROM $base_image:$base_tag
55

66
ENV DEBIAN_FRONTEND=noninteractive
77

8-
ARG use_unstable_driver=true
9-
108
USER root
119

1210
RUN apt update && apt install -yqq wget
@@ -18,12 +16,7 @@ COPY dependencies.json /
1816
RUN mkdir /runtimes
1917
ENV INSTALL_LOCATION=/runtimes
2018
RUN --mount=type=secret,id=github_token \
21-
if [ "$use_unstable_driver" = "true" ]; then \
22-
install_driver_opt=" --use-latest"; \
23-
else \
24-
install_driver_opt=" dependencies.json"; \
25-
fi && \
26-
GITHUB_TOKEN=$(cat /run/secrets/github_token) /install_drivers.sh $install_driver_opt --all
19+
GITHUB_TOKEN=$(cat /run/secrets/github_token) /install_drivers.sh dependencies.json --all
2720

2821
COPY scripts/drivers_entrypoint.sh /drivers_entrypoint.sh
2922

devops/containers/ubuntu2404_intel_drivers.Dockerfile

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ FROM $base_image:$base_tag
55

66
ENV DEBIAN_FRONTEND=noninteractive
77

8-
ARG use_unstable_driver=true
9-
108
USER root
119

1210
RUN apt update && apt install -yqq wget
@@ -18,12 +16,7 @@ COPY dependencies.json /
1816
RUN mkdir /runtimes
1917
ENV INSTALL_LOCATION=/runtimes
2018
RUN --mount=type=secret,id=github_token \
21-
if [ "$use_unstable_driver" = "true" ]; then \
22-
install_driver_opt=" --use-latest"; \
23-
else \
24-
install_driver_opt=" dependencies.json"; \
25-
fi && \
26-
GITHUB_TOKEN=$(cat /run/secrets/github_token) /install_drivers.sh $install_driver_opt --all
19+
GITHUB_TOKEN=$(cat /run/secrets/github_token) /install_drivers.sh dependencies.json --all
2720

2821
COPY scripts/drivers_entrypoint.sh /drivers_entrypoint.sh
2922

devops/scripts/install_drivers.sh

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,6 @@ if [ -f "$1" ]; then
1919
IGC_DEV_VER=$(jq -r '.linux.igc_dev.version' $CONFIG_FILE_IGC_DEV)
2020
IGC_DEV_URL=$(jq -r '.linux.igc_dev.url' $CONFIG_FILE_IGC_DEV)
2121
fi
22-
elif [[ "$*" == *"--use-latest"* ]]; then
23-
CR_TAG=latest
24-
IGC_TAG=latest
25-
CM_TAG=latest
26-
L0_TAG=latest
27-
TBB_TAG=latest
28-
FPGA_TAG=latest
29-
CPU_TAG=latest
3022
else
3123
CR_TAG=$compute_runtime_tag
3224
IGC_TAG=$igc_tag
@@ -43,11 +35,7 @@ fi
4335
function get_release() {
4436
REPO=$1
4537
TAG=$2
46-
if [ "$TAG" == "latest" ]; then
47-
URL="https://api.github.com/repos/${REPO}/releases/latest"
48-
else
49-
URL="https://api.github.com/repos/${REPO}/releases/tags/${TAG}"
50-
fi
38+
URL="https://api.github.com/repos/${REPO}/releases/tags/${TAG}"
5139
HEADER=""
5240
if [ "$GITHUB_TOKEN" != "" ]; then
5341
HEADER="Authorization: Bearer $GITHUB_TOKEN"
@@ -149,7 +137,7 @@ InstallIGFX () {
149137
# Backup and install it from release igc as a temporarily workaround
150138
# while we working to resolve the issue.
151139
echo "Backup libopencl-clang"
152-
cp -d /usr/local/lib/libopencl-clang2.so.14* .
140+
cp -d /usr/local/lib/libopencl-clang2.so.15* .
153141
echo "Download IGC dev git hash $IGC_DEV_VER"
154142
get_pre_release_igfx $IGC_DEV_URL $IGC_DEV_VER
155143
echo "Install IGC dev git hash $IGC_DEV_VER"
@@ -158,12 +146,12 @@ InstallIGFX () {
158146
dpkg -i --force-all *.deb
159147
echo "Install libopencl-clang"
160148
# Workaround only, will download deb and install with dpkg once fixed.
161-
cp -d libopencl-clang2.so.14* /usr/local/lib/
149+
cp -d libopencl-clang2.so.15* /usr/local/lib/
162150
rm /usr/local/lib/libigc.so /usr/local/lib/libigc.so.1* && \
163151
ln -s /usr/local/lib/libigc.so.2 /usr/local/lib/libigc.so && \
164152
ln -s /usr/local/lib/libigc.so.2 /usr/local/lib/libigc.so.1
165153
echo "Clean up"
166-
rm *.deb libopencl-clang2.so.14*
154+
rm *.deb libopencl-clang2.so.15*
167155
echo "$IGC_DEV_TAG" > /usr/local/lib/igc/IGCTAG.txt
168156
fi
169157
}
@@ -215,7 +203,6 @@ if [[ $# -eq 0 ]] ; then
215203
echo "--use-dev-igc - Install development version of Intel Graphics drivers instead"
216204
echo "--cpu - Install Intel CPU OpenCL runtime"
217205
echo "--fpga-emu - Install Intel FPGA Fast emulator"
218-
echo "--use-latest - Use latest for all tags"
219206
echo "Set INSTALL_LOCATION env variable to specify install location"
220207
exit 0
221208
fi

llvm/include/llvm/SYCLLowerIR/DeviceConfigFile.td

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,10 @@ class CudaTargetInfo<string targetName, list<Aspect> aspectList, int subGroupSiz
262262
assert !eq(subGroupSize, 32), "sub-group size for Cuda must be equal to 32 and not " # subGroupSize # ".";
263263
}
264264

265-
defvar CudaMinAspects = !listconcat(AllUSMAspects, [AspectGpu, AspectFp64, AspectOnline_compiler, AspectOnline_linker,
265+
defvar CudaMinUSMAspects = [AspectUsm_device_allocations, AspectUsm_host_allocations, AspectUsm_shared_allocations];
266+
defvar CudaSM90USMAspects = [AspectUsm_system_allocations, AspectUsm_atomic_host_allocations, AspectUsm_atomic_shared_allocations];
267+
268+
defvar CudaMinAspects = !listconcat(CudaMinUSMAspects, [AspectGpu, AspectFp64, AspectOnline_compiler, AspectOnline_linker,
266269
AspectQueue_profiling, AspectExt_intel_pci_address, AspectExt_intel_max_mem_bandwidth, AspectExt_intel_memory_bus_width,
267270
AspectExt_intel_device_info_uuid, AspectExt_oneapi_native_assert, AspectExt_intel_free_memory, AspectExt_intel_device_id,
268271
AspectExt_intel_memory_clock_rate, AspectExt_oneapi_ballot_group, AspectExt_oneapi_fixed_size_group,
@@ -292,9 +295,9 @@ def : CudaTargetInfo<"nvidia_gpu_sm_87", !listconcat(CudaMinAspects, CudaBindles
292295
[AspectFp16, AspectAtomic64, AspectExt_oneapi_cuda_async_barrier])>;
293296
def : CudaTargetInfo<"nvidia_gpu_sm_89", !listconcat(CudaMinAspects, CudaBindlessImagesAspects,
294297
[AspectFp16, AspectAtomic64, AspectExt_oneapi_cuda_async_barrier])>;
295-
def : CudaTargetInfo<"nvidia_gpu_sm_90", !listconcat(CudaMinAspects, CudaBindlessImagesAspects,
298+
def : CudaTargetInfo<"nvidia_gpu_sm_90", !listconcat(CudaMinAspects, CudaSM90USMAspects, CudaBindlessImagesAspects,
296299
[AspectFp16, AspectAtomic64, AspectExt_oneapi_cuda_async_barrier, AspectExt_oneapi_cuda_cluster_group])>;
297-
def : CudaTargetInfo<"nvidia_gpu_sm_90a", !listconcat(CudaMinAspects, CudaBindlessImagesAspects,
300+
def : CudaTargetInfo<"nvidia_gpu_sm_90a", !listconcat(CudaMinAspects, CudaSM90USMAspects, CudaBindlessImagesAspects,
298301
[AspectFp16, AspectAtomic64, AspectExt_oneapi_cuda_async_barrier, AspectExt_oneapi_cuda_cluster_group])>;
299302

300303
//

sycl/CMakeLists.txt

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ if(MSVC)
8282
endif()
8383
endif()
8484

85+
include(FetchEmhash)
8586
include(FetchUnifiedRuntime)
8687

8788
# The change in SYCL_MAJOR_VERSION must be accompanied with the same update in
@@ -213,9 +214,6 @@ install(FILES
213214
DESTINATION "${SYCL_INCLUDE_DIR}/sycl"
214215
COMPONENT sycl-headers)
215216

216-
include(AddBoostMp11Headers)
217-
include(FetchBoostUnorderedHeaders)
218-
219217
# This is workaround to detect changes (add or modify) in subtree which
220218
# are not detected by copy_directory command.
221219
# TODO: detect and process remove header/directory case
@@ -250,7 +248,7 @@ add_custom_target(sycl-headers
250248
${OUT_HEADERS_IN_SYCLCOMPAT_DIR}
251249
${OUT_UR_HEADERS}
252250
sycl-device-aspect-macros-header
253-
boost_mp11-headers)
251+
)
254252

255253
add_custom_command(
256254
OUTPUT ${OUT_HEADERS_IN_SYCL_DIR}
@@ -275,7 +273,6 @@ add_custom_command(
275273
install(DIRECTORY "${sycl_inc_dir}/sycl" DESTINATION ${SYCL_INCLUDE_DIR} COMPONENT sycl-headers)
276274
install(DIRECTORY "${sycl_inc_dir}/CL" DESTINATION ${SYCL_INCLUDE_DIR}/ COMPONENT sycl-headers)
277275
install(DIRECTORY "${sycl_inc_dir}/std" DESTINATION ${SYCL_INCLUDE_DIR} COMPONENT sycl-headers)
278-
install(DIRECTORY ${BOOST_MP11_DESTINATION_DIR} DESTINATION ${SYCL_INCLUDE_DIR}/sycl/detail COMPONENT boost_mp11-headers)
279276
install(DIRECTORY "${sycl_inc_dir}/syclcompat" DESTINATION ${SYCL_INCLUDE_DIR} COMPONENT sycl-headers)
280277
install(FILES "${sycl_inc_dir}/syclcompat.hpp" DESTINATION ${SYCL_INCLUDE_DIR} COMPONENT sycl-headers)
281278
install(FILES "${UNIFIED_RUNTIME_INCLUDE_DIR}/ur_api.h" DESTINATION ${SYCL_INCLUDE_DIR}
@@ -458,7 +455,6 @@ get_property(SYCL_TOOLCHAIN_DEPS GLOBAL PROPERTY SYCL_TOOLCHAIN_INSTALL_COMPONEN
458455
# Listed here are component names contributing the package
459456
set( SYCL_TOOLCHAIN_DEPLOY_COMPONENTS
460457
append-file
461-
boost_mp11-headers
462458
clang
463459
clang-offload-wrapper
464460
clang-offload-bundler

sycl/cmake/modules/AddBoostMp11Headers.cmake

Lines changed: 0 additions & 54 deletions
This file was deleted.

sycl/cmake/modules/FetchBoostUnorderedHeaders.cmake

Lines changed: 0 additions & 101 deletions
This file was deleted.

sycl/cmake/modules/FetchEmhash.cmake

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Finds or fetches emhash.
2+
if(DEFINED SYCL_EMHASH_DIR OR DEFINED EMHASH_SYS_LOC)
3+
return()
4+
endif()
5+
find_file(EMHASH_SYS_LOC "hash_table8.hpp" PATH_SUFFIXES "emhash")
6+
if(NOT EMHASH_SYS_LOC)
7+
set(EMHASH_REPO https://github.com/ktprime/emhash)
8+
message(STATUS "Will fetch emhash from ${EMHASH_REPO}")
9+
FetchContent_Declare(emhash
10+
GIT_REPOSITORY ${EMHASH_REPO}
11+
GIT_TAG 3ba9abdfdc2e0430fcc2fd8993cad31945b6a02b
12+
SOURCE_SUBDIR emhash
13+
)
14+
FetchContent_MakeAvailable(emhash)
15+
16+
# FetchContent downloads the files into a directory with
17+
# '-src' as the suffix and emhash has the headers in the
18+
# top level directory in the repo, so copy the headers to a directory
19+
# named `emhash` so source files can include with <emhash/header.hpp>
20+
file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/include/emhash)
21+
file(GLOB HEADERS "${emhash_SOURCE_DIR}/*.h*")
22+
file(COPY ${HEADERS} DESTINATION ${CMAKE_BINARY_DIR}/include/emhash)
23+
set(SYCL_EMHASH_DIR ${CMAKE_BINARY_DIR}/include/ CACHE INTERNAL "")
24+
endif()

0 commit comments

Comments
 (0)