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>
|
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)
|
if (!cached)
|
||||||
getDeviceList();
|
getDeviceList();
|
||||||
|
|||||||
@ -26,7 +26,7 @@ class OCLStream : public Stream<T>
|
|||||||
{
|
{
|
||||||
protected:
|
protected:
|
||||||
// Size of arrays
|
// Size of arrays
|
||||||
unsigned int array_size;
|
int array_size;
|
||||||
|
|
||||||
// Host array for partial sums for dot kernel
|
// Host array for partial sums for dot kernel
|
||||||
std::vector<T> sums;
|
std::vector<T> sums;
|
||||||
@ -55,7 +55,7 @@ class OCLStream : public Stream<T>
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
OCLStream(const unsigned int, const int);
|
OCLStream(const int, const int);
|
||||||
~OCLStream();
|
~OCLStream();
|
||||||
|
|
||||||
virtual void copy() override;
|
virtual void copy() override;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user