use signed array size for SYCL

This commit is contained in:
Tom Deakin 2021-01-12 10:24:00 +00:00
parent 20c3284629
commit 9a69d3d5d9
2 changed files with 3 additions and 3 deletions

View File

@ -17,7 +17,7 @@ std::vector<device> devices;
void getDeviceList(void); void getDeviceList(void);
template <class T> template <class T>
SYCLStream<T>::SYCLStream(const unsigned int ARRAY_SIZE, const int device_index) SYCLStream<T>::SYCLStream(const int ARRAY_SIZE, const int device_index)
{ {
if (!cached) if (!cached)
getDeviceList(); getDeviceList();

View File

@ -30,7 +30,7 @@ class SYCLStream : public Stream<T>
{ {
protected: protected:
// Size of arrays // Size of arrays
unsigned int array_size; int array_size;
// SYCL objects // SYCL objects
cl::sycl::queue *queue; cl::sycl::queue *queue;
@ -53,7 +53,7 @@ class SYCLStream : public Stream<T>
public: public:
SYCLStream(const unsigned int, const int); SYCLStream(const int, const int);
~SYCLStream(); ~SYCLStream();
virtual void copy() override; virtual void copy() override;