Skip to content

Commit 93fa2ea

Browse files
committed
Merge branch 'main' into review/yang/misalign_access
2 parents 48bb4d4 + ded4b88 commit 93fa2ea

File tree

8 files changed

+159
-137
lines changed

8 files changed

+159
-137
lines changed

source/adapters/level_zero/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ if (NOT DEFINED LEVEL_ZERO_LIBRARY OR NOT DEFINED LEVEL_ZERO_INCLUDE_DIR)
4242
set(UR_LEVEL_ZERO_LOADER_REPO "https://github.com/oneapi-src/level-zero.git")
4343
endif()
4444
if (UR_LEVEL_ZERO_LOADER_TAG STREQUAL "")
45-
set(UR_LEVEL_ZERO_LOADER_TAG v1.16.1)
45+
set(UR_LEVEL_ZERO_LOADER_TAG v1.17.0)
4646
endif()
4747

4848
# Disable due to a bug https://github.com/oneapi-src/level-zero/issues/104

source/adapters/level_zero/common.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,14 @@ template <> ze_structure_type_t getZeStructureType<ze_command_queue_desc_t>() {
229229
template <> ze_structure_type_t getZeStructureType<ze_image_desc_t>() {
230230
return ZE_STRUCTURE_TYPE_IMAGE_DESC;
231231
}
232+
template <>
233+
ze_structure_type_t getZeStructureType<ze_image_bindless_exp_desc_t>() {
234+
return ZE_STRUCTURE_TYPE_BINDLESS_IMAGE_EXP_DESC;
235+
}
236+
template <>
237+
ze_structure_type_t getZeStructureType<ze_image_pitched_exp_desc_t>() {
238+
return ZE_STRUCTURE_TYPE_PITCHED_IMAGE_EXP_DESC;
239+
}
232240
template <> ze_structure_type_t getZeStructureType<ze_module_desc_t>() {
233241
return ZE_STRUCTURE_TYPE_MODULE_DESC;
234242
}

source/adapters/level_zero/image.cpp

Lines changed: 138 additions & 128 deletions
Large diffs are not rendered by default.

source/adapters/level_zero/sampler.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urSamplerCreate(
9999

100100
try {
101101
ur_sampler_handle_t_ *UrSampler = new ur_sampler_handle_t_(ZeSampler);
102+
UrSampler->ZeSamplerDesc = ZeSamplerDesc;
102103
*Sampler = reinterpret_cast<ur_sampler_handle_t>(UrSampler);
103104
} catch (const std::bad_alloc &) {
104105
return UR_RESULT_ERROR_OUT_OF_HOST_MEMORY;

source/adapters/level_zero/sampler.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,6 @@ struct ur_sampler_handle_t_ : _ur_object {
1616

1717
// Level Zero sampler handle.
1818
ze_sampler_handle_t ZeSampler;
19+
20+
ZeStruct<ze_sampler_desc_t> ZeSamplerDesc;
1921
};

source/adapters/native_cpu/device.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
9090
// TODO : Populate return string accordingly - e.g. cl_khr_fp16,
9191
// cl_khr_fp64, cl_khr_int64_base_atomics,
9292
// cl_khr_int64_extended_atomics
93-
return ReturnValue("cl_khr_fp64 ");
93+
return ReturnValue("cl_khr_fp16, cl_khr_fp64 ");
9494
case UR_DEVICE_INFO_VERSION:
9595
return ReturnValue("0.1");
9696
case UR_DEVICE_INFO_COMPILER_AVAILABLE:

source/common/logger/ur_logger.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ namespace logger {
1717
Logger create_logger(std::string logger_name, bool skip_prefix = false,
1818
bool skip_linebreak = false);
1919

20-
inline Logger &get_logger(std::string name = "common") {
21-
static Logger logger = create_logger(std::move(name));
20+
inline Logger &get_logger(const char *name = "common") {
21+
static Logger logger = create_logger(name);
2222
return logger;
2323
}
2424

25-
inline void init(std::string name) { get_logger(std::move(name)); }
25+
inline void init(const std::string &name) { get_logger(name.c_str()); }
2626

2727
template <typename... Args>
2828
inline void debug(const char *format, Args &&...args) {

test/conformance/program/program_adapter_cuda.match

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@ urProgramBuildTest.BuildFailure/NVIDIA_CUDA_BACKEND___{{.*}}_
22
{{OPT}}urProgramCreateWithILTest.Success/NVIDIA_CUDA_BACKEND___{{.*}}
33
{{OPT}}urProgramCreateWithILTest.SuccessWithProperties/NVIDIA_CUDA_BACKEND___{{.*}}
44
{{OPT}}urProgramCreateWithILTest.BuildInvalidProgram/NVIDIA_CUDA_BACKEND___{{.*}}
5+
# This test flakily fails
56
{{OPT}}urProgramGetBuildInfoSingleTest.LogIsNullTerminated/NVIDIA_CUDA_BACKEND___{{.*}}
6-
{{OPT}}urProgramGetInfoTest.Success/NVIDIA_CUDA_BACKEND___{{.*}}
7-
{{OPT}}urProgramGetInfoTest.Success/NVIDIA_CUDA_BACKEND___{{.*}}
8-
{{OPT}}urProgramGetInfoTest.Success/NVIDIA_CUDA_BACKEND___{{.*}}
9-
{{OPT}}urProgramGetInfoSingleTest.NumDevicesMatchesDeviceArray/NVIDIA_CUDA_BACKEND___{{.*}}
7+
# CUDA doesn't expose kernel numbers or names
8+
urProgramGetInfoTest.Success/NVIDIA_CUDA_BACKEND___{{.*}}___UR_PROGRAM_INFO_NUM_KERNELS
9+
urProgramGetInfoTest.Success/NVIDIA_CUDA_BACKEND___{{.*}}___UR_PROGRAM_INFO_KERNEL_NAMES
10+
1011
{{OPT}}urProgramSetSpecializationConstantsTest.Success/NVIDIA_CUDA_BACKEND___{{.*}}
1112
{{OPT}}urProgramSetSpecializationConstantsTest.UseDefaultValue/NVIDIA_CUDA_BACKEND___{{.*}}
1213
urProgramSetMultipleSpecializationConstantsTest.MultipleCalls/NVIDIA_CUDA_BACKEND___{{.*}}

0 commit comments

Comments
 (0)