Skip to content

Commit 0099672

Browse files
Weiming Zhaoweimingzha0
Weiming Zhao
authored andcommitted
[ODLA] Add device arg for LoadExecutable
1 parent 4d23a95 commit 0099672

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

Diff for: ODLA/include/ODLA/odla_compute.h

+4-3
Original file line numberDiff line numberDiff line change
@@ -272,14 +272,15 @@ odla_CreateExecutable(odla_executable* executable, odla_context context,
272272
//! \brief Load an executable from the file system
273273
/*!
274274
\param file_name the file name
275+
\param device the device object
275276
\param executable the pointer to the loaded executable object
276277
\param context the pointer to the loaded context object
277278
\param computation the pointer to the loaded computation object
278279
\return odla_status
279280
*/
280-
extern ODLA_API_EXPORT odla_status ODLA_API_CALL
281-
odla_LoadExecutable(const odla_char* file_name, odla_executable* executable,
282-
odla_context* context, odla_computation* computation);
281+
extern ODLA_API_EXPORT odla_status ODLA_API_CALL odla_LoadExecutable(
282+
const odla_char* file_name, odla_device device, odla_executable* executable,
283+
odla_context* context, odla_computation* computation);
283284

284285
//! \brief Store an executable object into the file system
285286
/*!

Diff for: ODLA/platforms/odla_popart/odla_compute.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ odla_status odla_StoreExecutable(const odla_char* file_name,
6969
return ODLA_SUCCESS;
7070
}
7171

72-
odla_status odla_LoadExecutable(const odla_char* file_name,
72+
odla_status odla_LoadExecutable(const odla_char* file_name, odla_device device,
7373
odla_executable* executable,
7474
odla_context* context,
7575
odla_computation* computation) {

Diff for: ODLA/platforms/tensorrt/odla_tensorrt.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,7 @@ static odla_status odla_LoadEngine(odla_context context,
778778
return ODLA_SUCCESS;
779779
}
780780

781-
odla_status odla_LoadExecutable(const odla_char* file_name,
781+
odla_status odla_LoadExecutable(const odla_char* file_name, odla_device device,
782782
odla_executable* executable,
783783
odla_context* context,
784784
odla_computation* computation) {

0 commit comments

Comments
 (0)