Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions sycl/cmake/modules/FetchUnifiedRuntime.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -116,14 +116,13 @@ if(SYCL_UR_USE_FETCH_CONTENT)
CACHE PATH "Path to external '${name}' adapter source dir" FORCE)
endfunction()

set(UNIFIED_RUNTIME_REPO "https://github.com/oneapi-src/unified-runtime.git")
# commit c742ca49efb12380a35b8b0b467e6577ab8174ce
# Merge: 3a8bf2c5 504d3b63
# Author: Kenneth Benzie (Benie) <k.benzie@codeplay.com>
# Date: Mon Oct 21 11:55:23 2024 +0100
# Merge pull request #2131 from Bensuo/ben/command-handle-fix
# [EXP][CMDBUF] Make command handle behaviour consistent
set(UNIFIED_RUNTIME_TAG c742ca49efb12380a35b8b0b467e6577ab8174ce)
set(UNIFIED_RUNTIME_REPO "https://github.com/oneapi-src/unified-runtime")
# commit 3db3a5e2d935630f2ffddd93a72ae0aa9af89acb
# Author: Artur Gainullin <artur.gainullin@intel.com>
# Date: Tue Oct 22 03:30:08 2024 -0700
#
# Support UR program creation from multiple device binaries (#2147)
set(UNIFIED_RUNTIME_TAG 3db3a5e2d935630f2ffddd93a72ae0aa9af89acb)

set(UMF_BUILD_EXAMPLES OFF CACHE INTERNAL "EXAMPLES")
# Due to the use of dependentloadflag and no installer for UMF and hwloc we need
Expand Down
3 changes: 2 additions & 1 deletion sycl/source/detail/program_manager/program_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ createBinaryProgram(const ContextImplPtr Context, const device &Device,
Properties.count = Metadata.size();
Properties.pMetadatas = Metadata.data();
Adapter->call<UrApiKind::urProgramCreateWithBinary>(
Context->getHandleRef(), UrDevice, DataLen, Data, &Properties, &Program);
Context->getHandleRef(), 1, &UrDevice, &DataLen, &Data, &Properties,
&Program);

if (BinaryStatus != UR_RESULT_SUCCESS) {
throw detail::set_ur_error(
Expand Down
3 changes: 2 additions & 1 deletion sycl/unittests/SYCL2020/KernelBundleStateFiltering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ ur_result_t redefinedUrProgramCreate(void *pParams) {

ur_result_t redefinedUrProgramCreateWithBinary(void *pParams) {
auto params = *static_cast<ur_program_create_with_binary_params_t *>(pParams);
redefinedUrProgramCreateCommon(*params.ppBinary);
for (uint32_t i = 0; i < *params.pnumDevices; ++i)
redefinedUrProgramCreateCommon(*params.pppBinaries[i]);
return UR_RESULT_SUCCESS;
}

Expand Down
2 changes: 1 addition & 1 deletion sycl/unittests/helpers/RuntimeLinkingCommon.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ static ur_result_t redefined_urProgramCreateWithIL(void *pParams) {

static ur_result_t redefined_urProgramCreateWithBinary(void *pParams) {
auto Params = *static_cast<ur_program_create_with_binary_params_t *>(pParams);
auto *Magic = reinterpret_cast<const unsigned char *>(*Params.ppBinary);
auto *Magic = reinterpret_cast<const unsigned char *>(*Params.pppBinaries[0]);
ur_program_handle_t *res = *Params.pphProgram;
*res = mock::createDummyHandle<ur_program_handle_t>(sizeof(unsigned));
reinterpret_cast<mock::dummy_handle_t>(*res)->setDataAs<unsigned>(*Magic);
Expand Down
5 changes: 3 additions & 2 deletions sycl/unittests/program_manager/CompileTarget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,9 @@ static ur_result_t redefinedDeviceGet(void *pParams) {
std::vector<std::string> createWithBinaryLog;
static ur_result_t redefinedProgramCreateWithBinary(void *pParams) {
auto params = *static_cast<ur_program_create_with_binary_params_t *>(pParams);
createWithBinaryLog.push_back(
reinterpret_cast<const char *>(*params.ppBinary));
for (uint32_t i = 0; i < *params.pnumDevices; ++i)
createWithBinaryLog.push_back(
reinterpret_cast<const char *>(*params.pppBinaries[i]));
return UR_RESULT_SUCCESS;
}

Expand Down
Loading