-
Notifications
You must be signed in to change notification settings - Fork 58
Add unified API support and fix the build mechanism appropriately. #42
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
Conversation
…so add a unified example
src/defines.rs
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This enum's value in ArrayFire is 4, this is probably the reason OpenCL is not working. ArrayFIre OpenCL libs will be built but i believe it can't be used if this value is not 4 since ArrayFire's native enum has 4 for this backend.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was a recent change actually which is probably why it is not working.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
On my home laptop(Linux), only CPU and |
|
Try now, should work. What is 'linux' backend? |
|
@jramapuram My bad, instead of OpenCL i wrote linux. |
|
@9prady9 : no worries. Can you pull latest changes & try with: > git submodule update --init
> rm -rf arrayfire/build |
|
I did these also after the commands you pasted and it worked fine on my office machine (doesn't have CUDA though). I will have to test CUDA on another machine or later from my laptop. |
|
👍 |
…m and update example
…ire-rust into feature/unified
|
@9prady9 : added the new function as well fyi |
|
@jramapuram I have tested on my laptop with cuda device, CUDA backend still doesn't work for me in the unified example. CPU and OpenCL are running fine though. |
|
@9prady9 : Hmm, not sure what is going on. It is working fine for me on linux and osx. Couple things:
|
|
Sdk path may be the reason, will check it out. I would assume cmkae will On Fri, Oct 23, 2015, 8:48 AM Jason Ramapuram notifications@github.com
|
Add unified API support and fix the build mechanism appropriately.
@9prady9 : Can you test opencl on linux? For some reason my linux box isn't building libafopencl. It should work as expected though. It does work fine on OSX though :)
Running `target/debug/examples/unified` There are 2 available backends ArrayFire v3.2.0 (CPU, 64-bit Linux, build c607f62) [0] Intel: Intel(R) Core(TM) i7-5820K CPU @ 3.30GHz Max threads(12) Create a 10-by-10 matrix of random floats on the compute device No Name Array [10 10 1 1] 0.0000 0.3835 0.4175 0.9103 0.2470 0.7665 0.9047 0.5007 0.8278 0.2332 0.1315 0.5194 0.6868 0.7622 0.9826 0.4777 0.5045 0.3841 0.1254 0.3063 0.7556 0.8310 0.5890 0.2625 0.7227 0.2378 0.5163 0.2771 0.0159 0.3510 0.4587 0.0346 0.9304 0.0475 0.7534 0.2749 0.3190 0.9138 0.6885 0.5133 0.5328 0.0535 0.8462 0.7361 0.6515 0.3593 0.9866 0.5297 0.8682 0.5911 0.2190 0.5297 0.5269 0.3282 0.0727 0.1665 0.4940 0.4644 0.6295 0.8460 0.0470 0.6711 0.0920 0.6326 0.6316 0.4865 0.2661 0.9410 0.7362 0.4121 0.6789 0.0077 0.6539 0.7564 0.8847 0.8977 0.0907 0.0501 0.7254 0.8415 0.6793 0.3834 0.4160 0.9910 0.2727 0.9092 0.9478 0.7615 0.9995 0.2693 0.9347 0.0668 0.7012 0.3653 0.4364 0.0606 0.0737 0.7702 0.8886 0.4154 ArrayFire v3.2.0 (CUDA, 64-bit Linux, build c607f62) Platform: CUDA Toolkit 7.5, Driver: 352.39 [0] GeForce GTX TITAN X, 12285 MB, CUDA Compute 5.2 Create a 10-by-10 matrix of random floats on the compute device No Name Array [10 10 1 1] 0.7402 0.7762 0.2080 0.3557 0.2849 0.9200 0.2674 0.9910 0.4942 0.1528 0.9210 0.2948 0.6110 0.7229 0.7793 0.1872 0.0208 0.8793 0.3031 0.0119 0.0390 0.7140 0.3073 0.2783 0.2133 0.1820 0.8331 0.9996 0.8094 0.1726 0.9690 0.3585 0.4156 0.6192 0.4131 0.5984 0.7218 0.2068 0.1293 0.4784 0.9251 0.6814 0.2343 0.5876 0.0328 0.7082 0.6087 0.4372 0.7832 0.8051 0.4464 0.2920 0.8793 0.3750 0.5360 0.0421 0.6301 0.3727 0.0732 0.6872 0.6673 0.3194 0.6462 0.2405 0.7214 0.7305 0.5298 0.4468 0.1236 0.3022 0.1099 0.8109 0.9264 0.4148 0.3546 0.9400 0.8127 0.2376 0.2229 0.8077 0.4702 0.1541 0.5786 0.0937 0.2527 0.8432 0.0593 0.0345 0.7420 0.4071 0.5132 0.4452 0.5538 0.6326 0.9847 0.6116 0.4797 0.7308 0.6273 0.7513 OpenCL backend not available: Unkown ErrorOSX Result:
fixes #29