Skip to content

Commit

Permalink
Remove duplicated thread-pool API (#308)
Browse files Browse the repository at this point in the history
Removing an old and broken thread-pool module: 
```python
kvikio.thread_pool.num_threads_reset()
kvikio.thread_pool.get_num_threads()
```

Use the default module instead:
```python
kvikio.defaults.num_threads_reset()
kvikio.defaults.get_num_threads()
```

Authors:
  - Mads R. B. Kristensen (https://github.com/madsbk)

Approvers:
  - Lawrence Mitchell (https://github.com/wence-)

URL: #308
  • Loading branch information
madsbk authored Oct 25, 2023
1 parent c11f774 commit d56d88c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 36 deletions.
4 changes: 3 additions & 1 deletion python/kvikio/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ def num_threads_reset(nthreads: int) -> None:
Parameters
----------
nthreads : int
The number of threads to use.
The number of threads to use. The default value can be specified by setting
the `KVIKIO_NTHREADS` environment variable. If not set, the default value
is 1.
"""
libkvikio.thread_pool_nthreads_reset(nthreads)

Expand Down
35 changes: 0 additions & 35 deletions python/kvikio/thread_pool.py

This file was deleted.

0 comments on commit d56d88c

Please sign in to comment.