-
Notifications
You must be signed in to change notification settings - Fork 35
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
Missing built-in mad_hi #11
Comments
What platform are you using/targeting? DAR Prof. MAAD wrote:
David Richie, Ph.D. |
I'm currently testing with the COPRTHR backend on a core i7. The ultimate target is going to be the parallella, though. COPRTHR version is 1.6.0. I've got it working, by now. I had to add my own implementation of mad_hi and had to transform a lot of OpenCL vector initializers of the form
to
|
This is not a complete solution, but rather a quick fix you can use to keep going. #define mad_hi(a,b,c) ((unsigned int)(((unsigned long long)a*b)>>32)+c) On x86 this is what that function is going to be. Same for Epiphany. We can add this and related wrappers into the next update. Please let me know if you have any questions or if this still presents an issue. Prof. MAAD wrote:
David Richie, Ph.D. |
Thanks, that Is pretty much what I did, except I put it in a function. What would be nice would be an overview of the state of standards compliance of COPRTHR for the current OpenCL versions. |
Such a document exists. Let me try to track it down. It used to be posted with the other information. We will try to add these related functions, mad_hi(), etc., to the 1.6 branch for next update release. |
Hi,
I'm currently trying to get any kind of PRNG to compile via COPRTHR, but so far I am having absolutely no luck.
Specifically, I am trying to get this to work: http://cas.ee.ic.ac.uk/people/dt10/research/rngs-gpu-mwc64x.html
The problem I am facing at the moment is the following:
It appears that neither mad_hi nor mul_hi are defined when I try to compile this in an OpenCL kernel via clcc.
The text was updated successfully, but these errors were encountered: