jeffwong / cudaglmnet

A lasso solver on the GPU
11 stars 3 forks source link

some device vectors do not need to be init to 0 #8

Closed jeffwong closed 11 years ago

jeffwong commented 11 years ago

thrust::device_vector(n, init) initializes device memory than does a memcpy to initialize the values. It is only necessary to init X and y, the other vectors can be left alone with random values, saving many memcpys