Skip to content
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

Tests fail on OS X #9

Closed
lattwood opened this issue Jan 29, 2016 · 10 comments
Closed

Tests fail on OS X #9

lattwood opened this issue Jan 29, 2016 · 10 comments

Comments

@lattwood
Copy link
Contributor

No idea where to start.

running 2 tests
thread 'thread '<unnamed><unnamed>' panicked at '' panicked at 'assertion failed: `(left == right)` (left: `326`, right: `306`)assertion failed: `(left == right)` (left: `326`, right: `316`)', ', src/tests.rssrc/tests.rs::3232

libc++abi.dylib: libc++abi.dylib: terminating with uncaught foreign exceptionterminating with uncaught foreign exception
@c0gent
Copy link
Member

c0gent commented Jan 29, 2016

It's probably just something screwy with that particular test, which I just tossed together and haven't touched in a while. For now just comment out line 32 of tests.rs or just remove the test_events() function and I'll have a look at it sometime soon.

Edit: Comment out lines 32 and 33 that is.

@c0gent
Copy link
Member

c0gent commented Jan 29, 2016

Just made that change on master.

@c0gent
Copy link
Member

c0gent commented Feb 3, 2016

Would be curious to know how things are working on OS X before I close this issue.

@lattwood
Copy link
Contributor Author

lattwood commented Feb 4, 2016

I'll try to take a look this weekend. Unfortunately I needed to use the OpenCL image APIs and I wasn't about to learn Rust and OpenCL while building out the OpenCL functions I needed in Rust- that's a bit of a steep learning curve.

Ended up going with this golang lib unfortunately, it had the needed wrapper functions :-/

https://github.com/xfong/go-opencl/blob/master/cl/image.go

@c0gent
Copy link
Member

c0gent commented Feb 20, 2016

I'm about to add image support to this library, would appreciate another look in a few weeks and possibly some feedback.

@c0gent c0gent closed this as completed Feb 20, 2016
@lattwood
Copy link
Contributor Author

Looking forward to it.

@c0gent
Copy link
Member

c0gent commented Feb 28, 2016

Just pushed version 0.7. The new Image type has most of the basic stuff implemented. I'd like to maybe add some sort of mechanism so that different sized format channels and data_types provide some guidance on the type and size of vector needed to work with them but I'm not sure how much assistance is too much.

Having zero experience with OpenCL images myself, I'd really appreciate your feedback and even design ideas if you have any.

Links: Image, ImageBuilder, examples/image.rs

@c0gent c0gent reopened this Feb 28, 2016
@c0gent c0gent closed this as completed Feb 28, 2016
@neverfox
Copy link

neverfox commented Feb 4, 2017

This may be related in that the error looks similar to one I get running the events example panics (on OS X with an Intel Iris Pro GPU). Here's the output:

Enqueuing kernel [itr:0]...
Enqueuing read buffer [itr:0]...
Setting callback (verify_result, buncha_stuff[0]) [i:0]...
Enqueuing kernel [itr:1]...
Enqueuing read buffer [itr:1]...

Event: `0x7fadd33004d0` has completed with status: `0`, data_set_size: '262144`, addend: 11, itr: `0`.
correct_result: 448, result_vec[0]:448
correct_result: 18, result_vec[1]:18
correct_result: 261, result_vec[2]:261
correct_result: 213, result_vec[3]:213
correct_result: 488, result_vec[4]:488
Setting callback (verify_result, buncha_stuff[1]) [i:1]...
Enqueuing kernel [itr:2]...

Event: `0x7fadd0d0a3b0` has completed with status: `0`, data_set_size: '262144`, addend: 11, itr: `1`.
correct_result: 459, result_vec[0]:459
correct_result: 29, result_vec[1]:29
correct_result: 272, result_vec[2]:272
correct_result: 224, result_vec[3]:224
correct_result: 499, result_vec[4]:499
Enqueuing read buffer [itr:2]...
thread '<unnamed>' panicked at 'assertion failed: `(left == right)` (left: `317`, right: `306`)', examples/events.rs:52
note: Run with `RUST_BACKTRACE=1` for a backtrace.
Setting callback (verify_result, buncha_stuff[2]) [i:2]...
thread '<unnamed>' panicked at 'assertion failed: `(left == right)` (left: `265`, right: `254`)', libc++abi.dylib: examples/events.rs:52
terminating with uncaught foreign exceptionEnqueuing kernel [itr:3]...


Event: `0x7fadd33008d0` has completed with status: `0`, data_set_size: '262144`, addend: 11, itr: `2`.
libc++abi.dylib: %

@c0gent
Copy link
Member

c0gent commented Feb 5, 2017

@neverfox

Alright let's get to the bottom of it... Would you mind creating a new issue and just referencing this one?

@neverfox
Copy link

neverfox commented Feb 5, 2017

Sure thing, @c0gent.

c0gent added a commit that referenced this issue Nov 12, 2017
GL Acquire/Release multi-buffer versions added.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants