-
Notifications
You must be signed in to change notification settings - Fork 58
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
Creating an Array throws an "Unknown Error" #105
Comments
@dchammond I see that you have installed ArrayFire v3.3.2 but using arrayfire-rust crate 3.4.1. The following is the API/ABI match between crate and the upstream ArrayFire.
|
@9prady9 not sure how that affects this particular bug |
@pavanky I have tried both the versions @dchammond provided and they run fine for me - because they are basically the same. I am not sure if the problem is with code itself. It could be his environment, so pointed out that he is using mismatched version of arrayfire crate. Updated: |
@dchammond I can also confirm that this works in 1.14 |
@9prady9 @pavanky After doing this, I find that the same test program no longer runs on stable rust, only nightly. On stable it exits without printing anything (no errors either) except that the process has an error code of 1. On nightly the code does run but the same issue presents itself (needing a temp variable). |
@dchammond
Only change I made to your code was remove the space between |
@dchammond can you run the example with |
I edited my original comment, the space between Running with
After following the link, I noticed that my |
@dchammond You'll need to set |
|
@dchammond That is a dependency mismatch on your system. I think freeimage is using a newer or older version of libJPEG than what you have. |
@pavanky Is the machine you are testing on also a Mac? I would really appreciate anyone describing their installation method and version numbers of free image and/or libjpeg (whether with home-brew or from source) so that I can compare and find the problem on my machine. |
@mlloreda can you help out? |
@dchammond Sorry for the delay. I was finally able to replicate the problem in partial on our end. I am getting a crash but the error message is different from yours. This issue doesn't seem to be happening on non-OSX platforms.
I will update here once i find the cause of it. |
So far, i haven't been able to find out why |
@9prady9 is this OpenCL on nvidia gpus or OpenCL on other gpus ? |
@pavanky The device name says "Iris", I think it is a Intel integrated GPU. |
@dchammond just so you know Apple's support for OpenCL has been horrid. Even more so on AMD GPUs. |
@9prady9 @pavanky I uninstalled the Homebrew version of Arrayfire and wiped any symlinks, then installed Arrayfire 3.4.2 from the binary installer and verified that the examples built and ran. Here is some information on my environment (similar to last time):
As you can see, running the executable directly works fine, while running with It is worth noting that some of the original problem also still applies. This does not work (even with running the executable directly):
Nor this:
Both failing with:
|
@9prady9 @pavanky Where The original issue is still not solved however. |
@dchammond There isn't much we can do about cargo messing up environment variables. May be such issues will be ironed out with Cargo's stable release or next nightly. As far as the original issue, I am quite surprised as to why it is happening although it is a perfectly valid syntax. I will give it another shot and update here if I find out anything. |
Thanks fro your help @9prady9 This is certainly a strange bug. The different methods of calling If I find some spare moments I can also try some digging and testing out different calls. Maybe I'll get lucky and find something. |
@dchammond I am marking this as If anyone else face a similar issue, kindly upvote the original issue description and we will give it another try. |
Two simple test programs demonstrate this error:
(This same result also occurs on the latest nightly:
rustc 1.17.0-nightly (956e2bcba 2017-02-12)
)Cargo.toml:
src/main.rs:
This works and prints:
However the following does not work:
src/main.rs:
And errors out with:
I have installed arrayfire v3.3.2 (the library) with Homebrew and verified it works.
Output of $AF_PATH:
The text was updated successfully, but these errors were encountered: