@@ -348,10 +348,10 @@ template<typename T> class Memory {
348348 inline const T operator ()(const ulong i) const { return host_buffer[i]; }
349349 inline const T operator ()(const ulong i, const uint dimension) const { return host_buffer[i+(ulong)dimension*N]; } // array of structures
350350 inline void read_from_device (const bool blocking=true , const vector<Event>* event_waitlist=nullptr , Event* event_returned=nullptr ) {
351- if (host_buffer_exists&&device_buffer_exists) cl_queue.enqueueReadBuffer (device_buffer, blocking, 0u , capacity (), (void *)host_buffer, event_waitlist, event_returned);
351+ if (host_buffer_exists&&device_buffer_exists) cl_queue.enqueueReadBuffer (device_buffer, blocking, 0ull , capacity (), (void *)host_buffer, event_waitlist, event_returned);
352352 }
353353 inline void write_to_device (const bool blocking=true , const vector<Event>* event_waitlist=nullptr , Event* event_returned=nullptr ) {
354- if (host_buffer_exists&&device_buffer_exists) cl_queue.enqueueWriteBuffer (device_buffer, blocking, 0u , capacity (), (void *)host_buffer, event_waitlist, event_returned);
354+ if (host_buffer_exists&&device_buffer_exists) cl_queue.enqueueWriteBuffer (device_buffer, blocking, 0ull , capacity (), (void *)host_buffer, event_waitlist, event_returned);
355355 }
356356 inline void read_from_device (const ulong offset, const ulong length, const bool blocking=true , const vector<Event>* event_waitlist=nullptr , Event* event_returned=nullptr ) {
357357 if (host_buffer_exists&&device_buffer_exists) {
0 commit comments