Commit 31cb96a4 authored by rok-cesnovar's avatar rok-cesnovar
Browse files

dst first in unpack

Showing with 3 additions and 3 deletions
+3 -3
......@@ -146,7 +146,7 @@ inline void packed_copy(matrix_cl& dst, const std::vector<double>& src) {
queue.enqueueWriteBuffer(oclBuffer_packed, CL_TRUE, 0,
sizeof(double) * packed_size, src.data());
stan::math::opencl_kernels::unpack(
cl::NDRange(dst.rows(), dst.rows()), oclBuffer_packed, dst.buffer(),
cl::NDRange(dst.rows(), dst.rows()), dst.buffer(), oclBuffer_packed,
dst.rows(), dst.rows(), triangular_view);
} catch (const cl::Error& e) {
check_opencl_error("packed_copy std::vector->OpenCL", e);
......
......@@ -14,8 +14,8 @@ static const char* unpack_kernel_code = STRINGIFY(
* Unpacks a packed triangular matrix to a flat
* matrix
*
* @param[in] A packed buffer
* @param[out] B flat matrix
* @param[in] A packed buffer
* @param rows number of columns for matrix B
* @param cols number of columns for matrix B
* @param part parameter that defines the triangularity of the
......@@ -27,7 +27,7 @@ static const char* unpack_kernel_code = STRINGIFY(
* <code>unpack_kernel_code.</code>
* This kernel uses the helper macros available in helpers.cl.
*/
__kernel void unpack(__global double* A, __global double* B,
__kernel void unpack(__global double* B, __global double* A,
unsigned int rows, unsigned int cols,
unsigned int part) {
int i = get_global_id(0);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment