Closed naturalmechanics closed 1 year ago
The T
is not in the argument list, but in the template argument list. It is also in the docs and in the header file. The type T
tells the function whether your data is 32-bits or 64-bits (or even of complex data-type). In your example, assuming you are using 32-bits single-precision you should add <float>
after the function call, e.g.:
status = clblast::Copy<float>(n,B_buffer(), xoff,incx,X_buffer(),yoff,incy, &queue_plain, &event);
This works for both copy and swap. Thank you
I have this code:
status = clblast::Copy(n,B_buffer(), xoff,incx,X_buffer(),yoff,incy, &queue_plain, &event);
n
,x/yOff
andincx/y
are defined as size_t.B/X_buffer
are created usingcl::Buffer
function, asauto
types. All of these work fine in aclblast::Gemv
call.But the
Copy
call is giving me this error:However, there is no
T
in teh c++ api of xCopy according to the api docs.I think it is my mistake, I am looking for a tutorial to use the
Copy
call correctly. Thank you.