use signed array size for SYCL
This commit is contained in:
parent
20c3284629
commit
9a69d3d5d9
@ -17,7 +17,7 @@ std::vector<device> devices;
|
||||
void getDeviceList(void);
|
||||
|
||||
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)
|
||||
getDeviceList();
|
||||
|
||||
@ -30,7 +30,7 @@ class SYCLStream : public Stream<T>
|
||||
{
|
||||
protected:
|
||||
// Size of arrays
|
||||
unsigned int array_size;
|
||||
int array_size;
|
||||
|
||||
// SYCL objects
|
||||
cl::sycl::queue *queue;
|
||||
@ -53,7 +53,7 @@ class SYCLStream : public Stream<T>
|
||||
|
||||
public:
|
||||
|
||||
SYCLStream(const unsigned int, const int);
|
||||
SYCLStream(const int, const int);
|
||||
~SYCLStream();
|
||||
|
||||
virtual void copy() override;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user