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
field.cpp example on Arch linux breaks on all backends #3369
Labels
Comments
willyborn
added a commit
to willyborn/arrayfire
that referenced
this issue
Mar 12, 2023
Unitiliazed buffer used to collect partial join. Join now accepts any buffer as out array, as long as it is large enough.
3 tasks
willyborn
added a commit
to willyborn/arrayfire
that referenced
this issue
Mar 28, 2023
Corrected possible buffer overflow in vector_field Join now accepts any buffer as out array, as long as it is large enough.
willyborn
added a commit
to willyborn/arrayfire
that referenced
this issue
Mar 28, 2023
Corrected buffer overflow in vector_field Join now accepts any buffer as out array, as long as it is large enough.
Mine does this as well for field_* with openCL, CUDA, and CPU. I'm running Ubuntu 22.04, x86_64 architecture. I built from source from master, as of 2024-02-26. All other example graphics work. See below:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
building field.cpp in the examples and executing field_cuda, field_cpu, field_opencl results in errors
Seems to be caused by the join operation in line 41
array hbowl = join(1, constant(1, x.elements()), flat(bvals));
Description
After installing ArrayFire 3.8.3 from the community package in Arch linux I did check the examples from the corresponding github release tar. All executables for the field.cpp example produce errors
field_cpu breaks with
field_cuda breaks with
field_opencl breaks with
Did you build ArrayFire yourself or did you use the official installers
I used the Arch community build
Which backend is experiencing this issue? (CPU, CUDA, OpenCL)
All
Do you have a workaround?
No
Can the bug be reproduced reliably on your system?
Yes
A clear and concise description of what you expected to happen.
join operation on two arrays
Run your executable with AF_TRACE=all and AF_PRINT_ERRORS=1 environment
variables set.
Screenshot or terminal output of the results
Reproducible Code and/or Steps
System Information
The text was updated successfully, but these errors were encountered: