use signed array size for OpenCL

This commit is contained in:
Tom Deakin 2021-01-12 10:21:48 +00:00
parent 693a7e7478
commit 94c7c3dbd8
2 changed files with 3 additions and 3 deletions

View File

@ -92,7 +92,7 @@ std::string kernels{R"CLC(
template <class T>
OCLStream<T>::OCLStream(const unsigned int ARRAY_SIZE, const int device_index)
OCLStream<T>::OCLStream(const int ARRAY_SIZE, const int device_index)
{
if (!cached)
getDeviceList();

View File

@ -26,7 +26,7 @@ class OCLStream : public Stream<T>
{
protected:
// Size of arrays
unsigned int array_size;
int array_size;
// Host array for partial sums for dot kernel
std::vector<T> sums;
@ -55,7 +55,7 @@ class OCLStream : public Stream<T>
public:
OCLStream(const unsigned int, const int);
OCLStream(const int, const int);
~OCLStream();
virtual void copy() override;