Skip to content

Commit 718e917

Browse files
committed
Merge branch 'sycl' into peter/3channel
# Conflicts: # sycl/doc/extensions/experimental/sycl_ext_oneapi_bindless_images.asciidoc
2 parents f30fbaa + ec10ef1 commit 718e917

Some content is hidden

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

41 files changed

+612
-250
lines changed

devops/dependencies-igc-dev.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"linux": {
33
"igc_dev": {
4-
"github_tag": "igc-dev-97f373a",
5-
"version": "97f373a",
6-
"updated_at": "2024-08-25T22:46:47Z",
7-
"url": "https://api.github.com/repos/intel/intel-graphics-compiler/actions/artifacts/1852379596/zip",
4+
"github_tag": "igc-dev-427a492",
5+
"version": "427a492",
6+
"updated_at": "2024-08-27T03:48:42Z",
7+
"url": "https://api.github.com/repos/intel/intel-graphics-compiler/actions/artifacts/1857739280/zip",
88
"root": "{DEPS_ROOT}/opencl/runtime/linux/oclgpu"
99
}
1010
}

llvm/include/llvm/SYCLLowerIR/DeviceConfigFile.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def : TargetInfo<"__TestDeprecatedAspectList",
157157

158158
def : TargetInfo<"spir64", [], [], "", "", 1>;
159159
def : TargetInfo<"spir64_gen", [], [], "", "", 1>;
160-
def : TargetInfo<"spir64_x86_64", [AspectFp16, AspectFp64, AspectAtomic64], [4, 8, 16, 32, 64], "", "", 1>;
160+
def : TargetInfo<"spir64_x86_64", [AspectFp16, AspectFp64, AspectAtomic64, AspectExt_oneapi_ballot_group], [4, 8, 16, 32, 64], "", "", 1>;
161161
def : TargetInfo<"spir64_fpga", [], [], "", "", 1>;
162162
def : TargetInfo<"x86_64", [], [], "", "", 1>;
163163
// Examples of how to use a combination of explicitly specified values + predefined lists

sycl/cmake/modules/FetchUnifiedRuntime.cmake

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ endif()
1111

1212
# Options to override the default behaviour of the FetchContent to include UR
1313
# source code.
14-
set(SYCL_PI_UR_OVERRIDE_FETCH_CONTENT_REPO
14+
set(SYCL_UR_OVERRIDE_FETCH_CONTENT_REPO
1515
"" CACHE STRING "Override the Unified Runtime FetchContent repository")
16-
set(SYCL_PI_UR_OVERRIDE_FETCH_CONTENT_TAG
16+
set(SYCL_UR_OVERRIDE_FETCH_CONTENT_TAG
1717
"" CACHE STRING "Override the Unified Runtime FetchContent tag")
1818

1919
# Options to disable use of FetchContent to include Unified Runtime source code
@@ -160,11 +160,11 @@ if(SYCL_UR_USE_FETCH_CONTENT)
160160
${UNIFIED_RUNTIME_TAG}
161161
)
162162

163-
if(SYCL_PI_UR_OVERRIDE_FETCH_CONTENT_REPO)
164-
set(UNIFIED_RUNTIME_REPO "${SYCL_PI_UR_OVERRIDE_FETCH_CONTENT_REPO}")
163+
if(SYCL_UR_OVERRIDE_FETCH_CONTENT_REPO)
164+
set(UNIFIED_RUNTIME_REPO "${SYCL_UR_OVERRIDE_FETCH_CONTENT_REPO}")
165165
endif()
166-
if(SYCL_PI_UR_OVERRIDE_FETCH_CONTENT_TAG)
167-
set(UNIFIED_RUNTIME_TAG "${SYCL_PI_UR_OVERRIDE_FETCH_CONTENT_TAG}")
166+
if(SYCL_UR_OVERRIDE_FETCH_CONTENT_TAG)
167+
set(UNIFIED_RUNTIME_TAG "${SYCL_UR_OVERRIDE_FETCH_CONTENT_TAG}")
168168
endif()
169169

170170
message(STATUS "Will fetch Unified Runtime from ${UNIFIED_RUNTIME_REPO}")

sycl/doc/GetStartedGuide.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,10 +348,10 @@ specific repository URL and revision tag used can be found in the file
348348
In order to enable developers, a number of CMake variables are available to
349349
control which revision of Unified Runtime should be used when building DPC++:
350350

351-
* `SYCL_PI_UR_OVERRIDE_FETCH_CONTENT_REPO` is a variable which can be used to
351+
* `SYCL_UR_OVERRIDE_FETCH_CONTENT_REPO` is a variable which can be used to
352352
override the `UNIFIED_RUNTIME_REPO` variable used by `FetchContent` to attain
353353
the Unified Runtime source code.
354-
* `SYCL_PI_UR_OVERRIDE_FETCH_CONTENT_TAG` is a variable which can be used to
354+
* `SYCL_UR_OVERRIDE_FETCH_CONTENT_TAG` is a variable which can be used to
355355
override the `UNIFIED_RUNTIME_TAG` variable used by `FetchContent` to attain
356356
the Unified Runtime source code.
357357
* `SYCL_UR_USE_FETCH_CONTENT` is an option to control if CMake should use

sycl/doc/extensions/experimental/sycl_ext_oneapi_bindless_images.asciidoc

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,13 @@ implementation supports.
114114

115115
[frame="none",options="header"]
116116
|======================
117-
|Rev |Description
118-
|1 |Initial draft of the proposal
119-
|2 |Second revision of the proposal
120-
|3 |Third revision of the proposal
121-
|4 |Fourth revision of the proposal
117+
|Rev | Description
118+
|1 | Initial draft of the proposal
119+
|2 | Second revision of the proposal
120+
|3 | Third revision of the proposal
121+
|4 | Fourth revision of the proposal
122+
|5 | Fifth revision of the proposal
123+
|6 | Sixth revision of the proposal
122124
|======================
123125

124126
See the revision history at the bottom of this document for features added in
@@ -2877,7 +2879,7 @@ These features still need to be handled:
28772879
funcs.
28782880
|5.14|2024-07-17| - Rename `destroy_external_semaphore` to
28792881
`release_external_semaphore`.
2880-
|5.15|2024-07-19 - Add missing device queries for image arrays, sampling USM
2882+
|5.15|2024-07-19| - Add missing device queries for image arrays, sampling USM
28812883
images and unique addressing per dimension.
28822884
- Remove aspects for semaphore export, memory export and fetch
28832885
3D USM images as they are not supported on any platform.
@@ -2892,5 +2894,7 @@ These features still need to be handled:
28922894
handles and the imported `interop_xxx_handle`.
28932895
|5.17|2024-07-30| - Add support for mapping external memory to linear USM using
28942896
`map_external_linear_memory`.
2895-
|5.18|2024-08-27| - Allow 3-channel image formats on some backends.
2897+
|6 |2024-08-29 | - Collated all changes since revision 5.
2898+
- Bumped SYCL_EXT_ONEAPI_BINDLESS_IMAGES to number 6.
2899+
- Allow 3-channel image formats on some backends.
28962900
|======================

sycl/doc/extensions/experimental/sycl_ext_oneapi_graph.asciidoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1284,7 +1284,7 @@ begin_recording(queue& recordingQueue,
12841284
----
12851285

12861286
|Synchronously changes the state of `recordingQueue` to the
1287-
`queue_state::recording` state. This operation is a no-op if `recordingQueue`
1287+
`queue_state::recording` state. This operation is an error if `recordingQueue`
12881288
is already in the `queue_state::recording` state.
12891289

12901290
Parameters:
@@ -1299,7 +1299,7 @@ Parameters:
12991299
Exceptions:
13001300

13011301
* Throws synchronously with error code `invalid` if `recordingQueue` is
1302-
already recording to a different graph.
1302+
already recording to a graph.
13031303

13041304
* Throws synchronously with error code `invalid` if `recordingQueue` is
13051305
associated with a device or context that is different from the device
@@ -1314,7 +1314,7 @@ begin_recording(const std::vector<queue>& recordingQueues,
13141314
----
13151315

13161316
|Synchronously changes the state of each queue in `recordingQueues` to the
1317-
`queue_state::recording` state. This operation is a no-op for any queue in
1317+
`queue_state::recording` state. This operation is an error for any queue in
13181318
`recordingQueues` that is already in the `queue_state::recording` state.
13191319

13201320
Parameters:
@@ -1328,8 +1328,8 @@ Parameters:
13281328

13291329
Exceptions:
13301330

1331-
* Throws synchronously with error code `invalid` if the any queue in
1332-
`recordingQueues` is already recording to a different graph.
1331+
* Throws synchronously with error code `invalid` if any queue in
1332+
`recordingQueues` is already recording to a graph.
13331333

13341334
* Throws synchronously with error code `invalid` if any of `recordingQueues`
13351335
is associated with a device or context that is different from the device

sycl/include/sycl/ext/intel/esimd/simd.hpp

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -77,14 +77,19 @@ class simd : public detail::simd_obj_impl<
7777
}
7878

7979
// Implicit conversion constructor from sycl::ext::oneapi::experimental::simd
80-
template <
81-
int N1 = N, class Ty1 = Ty,
82-
class SFINAE = std::enable_if_t<
83-
(N1 == N) && (N1 <= std::experimental::simd_abi::max_fixed_size<
84-
Ty>)&&!detail::is_wrapper_elem_type_v<Ty1>>>
80+
template <int N1 = N, class Ty1 = Ty,
81+
class SFINAE = std::enable_if_t<
82+
(N1 == N) &&
83+
(N1 <= std::experimental::simd_abi::max_fixed_size<Ty>) &&
84+
!detail::is_wrapper_elem_type_v<Ty1>>>
8585
simd(const sycl::ext::oneapi::experimental::simd<Ty, N1> &v)
8686
: simd(static_cast<raw_vector_type>(v)) {}
8787

88+
// Implicit conversion constructor from 1D simd_view
89+
template <typename BaseTy, int Stride>
90+
simd(simd_view<BaseTy, region_base<false, Ty, 1, 1, N, Stride>> &v)
91+
: simd(v.read()) {}
92+
8893
/// Broadcast constructor with conversion. Converts given value to
8994
/// #element_type and replicates it in all elements.
9095
/// Available when \c T1 is a valid simd element type.
@@ -113,11 +118,11 @@ class simd : public detail::simd_obj_impl<
113118
/// object. Available when the number of elements does not exceed maximum
114119
/// fixed size of the oneapi's simd_abi and (TODO, temporary limitation) the
115120
/// element type is a primitive type (e.g. can't be sycl::half).
116-
template <
117-
int N1, class Ty1 = Ty,
118-
class SFINAE = std::enable_if_t<
119-
(N1 == N) && (N1 <= std::experimental::simd_abi::max_fixed_size<
120-
Ty>)&&!detail::is_wrapper_elem_type_v<Ty1>>>
121+
template <int N1, class Ty1 = Ty,
122+
class SFINAE = std::enable_if_t<
123+
(N1 == N) &&
124+
(N1 <= std::experimental::simd_abi::max_fixed_size<Ty>) &&
125+
!detail::is_wrapper_elem_type_v<Ty1>>>
121126
operator sycl::ext::oneapi::experimental::simd<Ty, N1>() {
122127
return sycl::ext::oneapi::experimental::simd<Ty, N1>(base_type::data());
123128
}
@@ -210,7 +215,8 @@ template <int N> using simd_mask = detail::simd_mask_type<N>;
210215
template <typename Ty, int N>
211216
std::ostream &operator<<(std::ostream &OS, const __ESIMD_NS::simd<Ty, N> &V)
212217
#ifdef __SYCL_DEVICE_ONLY__
213-
{}
218+
{
219+
}
214220
#else
215221
{
216222
__ESIMD_UNSUPPORTED_ON_HOST;

0 commit comments

Comments
 (0)