blob: 0b51269312e37480dc7914b387f18e872d2d6507 [file]
#include "THCStorage.h"
#include <thrust/fill.h>
void THCudaStorage_fill(THCudaStorage *self, float value)
{
thrust::device_ptr<float> self_data(self->data);
thrust::fill(self_data, self_data+self->size, value);
}