Skip to content

backends do not load in proper order #251

Open

Description

@zzjjbb

This line has a comment # Iterate in reverse order of preference. However, it loads them with some random order, because the object to iterate is a set, which doesn't keep the order. In my Linux computer, when I run import arrayfire as af, the function will be called and it loads "" first, and due to err!=0, it directly returns and not loads anything.

By the way, I simply change {"cpu", "opencl", "cuda", ""} to ["cuda"] and I can import arrayfire with no error.

Activity

  1. changed the title [-]backend does not load with proper order[/-] [+]backend does not load in proper order[/+] on Feb 24, 2021
  2. changed the title [-]backend does not load in proper order[/-] [+]backends do not load in proper order[/+] on Feb 24, 2021
  3. syurkevi commented on Feb 24, 2021

    @syurkevi
    Contributor

    This is a mistake in the dev branch, the master branch should still have the correct code. Thank you for catching that! I'll make sure to address if we decide merge dev into master. There are a few incoming changes (related to library.py) that need to go into effect before we will be looking at the dev branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions