File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
sycl/include/sycl/ext/intel/experimental Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -104,11 +104,11 @@ class pipe : public pipe_base {
104
104
105
105
const void *HostPipePtr = &m_Storage;
106
106
const std::string PipeName = pipe_base::get_pipe_name (HostPipePtr);
107
- void *DataPtr = &Data;
107
+ void *DataPtr = const_cast < void *>( &Data) ;
108
108
109
109
event E = Q.submit ([=](handler &CGH) {
110
110
CGH.ext_intel_write_host_pipe (
111
- PipeName, ( void *) DataPtr, sizeof (_dataT) /* non-blocking */ );
111
+ PipeName, DataPtr, sizeof (_dataT) /* non-blocking */ );
112
112
});
113
113
E.wait ();
114
114
Success = E.get_info <sycl::info::event::command_execution_status>() ==
@@ -249,7 +249,7 @@ class pipe : public pipe_base {
249
249
}
250
250
const void *HostPipePtr = &m_Storage;
251
251
const std::string PipeName = pipe_base::get_pipe_name (HostPipePtr);
252
- void *DataPtr = &Data;
252
+ void *DataPtr = const_cast < void *>( &Data) ;
253
253
event E = Q.submit ([=](handler &CGH) {
254
254
CGH.ext_intel_write_host_pipe (PipeName, (void *)DataPtr,
255
255
sizeof (_dataT), true /* blocking */ );
You can’t perform that action at this time.
0 commit comments