@@ -816,6 +816,8 @@ void acl_read_program_hostpipe(void *user_data, acl_device_op_t *op) {
816
816
// The host_pipe_info stored in the dev_prog->program_hostpipe_map
817
817
// Contains the static information of the pipe, like protocol
818
818
819
+ assert (event->command_queue ->device ->loaded_bin != NULL &&
820
+ " No loaded binary for read hostpipe" );
819
821
acl_device_program_info_t *dev_prog =
820
822
event->command_queue ->device ->loaded_bin ->get_dev_prog ();
821
823
auto host_pipe_info = dev_prog->program_hostpipe_map .at (
@@ -966,6 +968,8 @@ void acl_write_program_hostpipe(void *user_data, acl_device_op_t *op) {
966
968
// The host_pipe_info stored in the dev_prog->program_hostpipe_map
967
969
// Contains the static information of the pipe, like protocol
968
970
971
+ assert (event->command_queue ->device ->loaded_bin != NULL &&
972
+ " No loaded binary for write hostpipe" );
969
973
acl_device_program_info_t *dev_prog =
970
974
event->command_queue ->device ->loaded_bin ->get_dev_prog ();
971
975
auto host_pipe_info = dev_prog->program_hostpipe_map .at (
@@ -1198,6 +1202,8 @@ CL_API_ENTRY cl_int CL_API_CALL clEnqueueReadHostPipeINTEL(
1198
1202
ERR_RET (CL_INVALID_VALUE, context, " Invalid Pipe Symbol" );
1199
1203
}
1200
1204
1205
+ assert (device->loaded_bin != NULL &&
1206
+ " No loaded binary for enqueue hostpipe read" );
1201
1207
acl_device_program_info_t *dev_prog = device->loaded_bin ->get_dev_prog ();
1202
1208
1203
1209
auto search = dev_prog->program_hostpipe_map .find (std::string (pipe_symbol));
@@ -1271,6 +1277,8 @@ CL_API_ENTRY cl_int CL_API_CALL clEnqueueWriteHostPipeINTEL(
1271
1277
ERR_RET (CL_INVALID_VALUE, context, " Invalid Pipe Symbol" );
1272
1278
}
1273
1279
1280
+ assert (device->loaded_bin != NULL &&
1281
+ " No loaded binary for enqueue hostpipe write" );
1274
1282
acl_device_program_info_t *dev_prog = device->loaded_bin ->get_dev_prog ();
1275
1283
1276
1284
auto search = dev_prog->program_hostpipe_map .find (std::string (pipe_symbol));
0 commit comments