Skip to content

Commit dbe486a

Browse files
author
Hugh Delaney
committed
Change func def
1 parent e3b9bc8 commit dbe486a

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

source/loader/layers/exception_sanitizer/ur_exceptionddi.cpp

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1805,10 +1805,16 @@ __urdlllocal ur_result_t UR_APICALL urProgramCreateWithIL(
18051805
/// @brief Intercept function for urProgramCreateWithBinary
18061806
__urdlllocal ur_result_t UR_APICALL urProgramCreateWithBinary(
18071807
ur_context_handle_t hContext, ///< [in] handle of the context instance
1808-
ur_device_handle_t
1809-
hDevice, ///< [in] handle to device associated with binary.
1810-
size_t size, ///< [in] size in bytes.
1811-
const uint8_t *pBinary, ///< [in] pointer to binary.
1808+
uint32_t numDevices, ///< [in] number of devices
1809+
ur_device_handle_t *
1810+
phDevices, ///< [in][range(0, numDevices)] a pointer to a list of device handles. The
1811+
///< binaries are loaded for devices specified in this list.
1812+
size_t *
1813+
pLengths, ///< [in][range(0, numDevices)] array of sizes of program binaries
1814+
///< specified by `pBinaries` (in bytes).
1815+
const uint8_t **
1816+
ppBinaries, ///< [in][range(0, numDevices)] pointer to program binaries to be loaded
1817+
///< for devices specified by `phDevices`.
18121818
const ur_program_properties_t *
18131819
pProperties, ///< [in][optional] pointer to program creation properties.
18141820
ur_program_handle_t
@@ -1823,8 +1829,8 @@ __urdlllocal ur_result_t UR_APICALL urProgramCreateWithBinary(
18231829

18241830
ur_result_t result = UR_RESULT_SUCCESS;
18251831
try {
1826-
result = pfnCreateWithBinary(hContext, hDevice, size, pBinary,
1827-
pProperties, phProgram);
1832+
result = pfnCreateWithBinary(hContext, numDevices, phDevices, pLengths,
1833+
ppBinaries, pProperties, phProgram);
18281834
} catch (...) {
18291835
std::cerr << "Exception caught from adapter layer in " << __func__
18301836
<< " aborting\n";

0 commit comments

Comments
 (0)