use signed array size for OpenCL
This commit is contained in:
parent
693a7e7478
commit
94c7c3dbd8
@ -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();
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user