-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
An example using RViennaCL for matrix multiplication #3
Comments
Hi @ndrubins, currently the best I have available would be in my gpuR package. The R matrix needs to first be copied to a
These two steps are demonstrated in this section of
Naturally, all of this assumes you are trying to leverage a GPU. If you are using the OpenMP backend, you shouldn't need to worry about copying back and forth with host->device->host. But I am not as familiar with that and you would need to consult the ViennaCL documentation. I hope this helps. I want to work on RViennaCL and make it more usable beyond the wonderful headers but I only have so much time and other things take priority currently. |
@ndrubins I would like to add though if you make an attempt at this and run in to problems. Feel free to upload your code to git and I will help when I can. |
Thanks a lot. I started by trying to write a simple matrix multiplication function in a
Builds fine:
But seems like a
So I tried to define
But still failing:
|
Hi @cdeterman ,
Would it be possible to get an example code that does matrix multiplication using RViennaCL?
Thanks a lot,
The text was updated successfully, but these errors were encountered: