Skip to content

Overriding blosc threads #1054

Closed
Closed

Description

@jakirkham

Would be nice to expose to the user a way to set the number of threads to use with blosc. Suggested options would be a config file setting and some Python API to do this. Both would be great.

xref: #606 (review)

Activity

  1. mrocklin commented on May 9, 2017

    @mrocklin
    Member

    An entry in the config file sounds good to me. Client.run could probably handle the Python API in a pinch.

    def f(nthreads, dask_worker=None):
        import blosc
        blosc.set_nthreads(nthreads)
    
    client.run(f, 4)
  2. jakirkham commented on Jun 18, 2018

    @jakirkham
    MemberAuthor

    So now that the config is revamped, how might one go about moving this parameter into the config?

  3. mrocklin commented on Jun 18, 2018

    @mrocklin
    Member

    Replace this line in distributed/protocol/compression.py:

    n = blosc.set_nthreads(2)
    

    With something like this?

    n = blosc.set_nthreads(dask.config.get('distributed.comm.blosc.nthreads`)) 
    

    And then add a suitable entry to distributed/distributed.yaml

  4. jakirkham commented on Nov 2, 2018

    @jakirkham
    MemberAuthor

    What about adding it to the config?

  5. mrocklin commented on Nov 2, 2018

    @mrocklin
    Member

    Yes, I think that that's a good idea

  6. added
    enhancement
    good second issue
    on Oct 15, 2021
  7. jakirkham commented on Jun 21, 2022

    @jakirkham
    MemberAuthor

    Closing as Blosc was dropped ( #6027 )

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

    enhancementgood second issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions