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

Fix indexing error and add support for CUDA 11.1 #3023

Merged
merged 2 commits into from
Oct 5, 2020

Conversation

umar456
Copy link
Member

@umar456 umar456 commented Oct 5, 2020

Fix an issue with indexing where uncommon usage of the indexing object caused a segfault.

Description

When copying indexing objects, the reference count was not incremented. this caused a segfault. This becomes an issue when you are directly using the indexing object.

Added support for CUDA 11 and compute capability 8.6(GTX 3090)

Changes to Users

N/A

Checklist

  • Rebased on latest master
  • Code compiles
  • Tests pass
  • [ ] Functions added to unified API
  • [ ] Functions documented

Array based indexing caused segfaults sometimes when the index object was not
immidiately consumed by the indexing operations. This PR fixes this by
retaining the index array on the copy constructor
@umar456 umar456 added this to the 3.8.0 milestone Oct 5, 2020
@umar456 umar456 merged commit db3c333 into arrayfire:master Oct 5, 2020
@jacobkahn
Copy link
Contributor

Thanks again for this @umar456.

@umar456 umar456 deleted the index_fix branch October 26, 2020 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants