Skip to content

Commit

Permalink
[CI] Fix Dask Pytest fixture (#6024)
Browse files Browse the repository at this point in the history
  • Loading branch information
hcho3 committed Aug 17, 2020
1 parent d240463 commit 14d5ce7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/python-gpu/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,12 @@ def local_cuda_cluster(request, pytestconfig):
raise ImportError('The --use-rmm-pool option requires the RMM package')
import rmm
from dask_cuda.utils import get_n_gpus
rmm.reinitialize()
kwargs['rmm_pool_size'] = '2GB'
if tm.no_dask_cuda()['condition']:
raise ImportError('The local_cuda_cluster fixture requires dask_cuda package')
from dask_cuda import LocalCUDACluster
cluster = LocalCUDACluster(**kwargs)
yield cluster
cluster.close()
with LocalCUDACluster(**kwargs) as cluster:
yield cluster

def pytest_addoption(parser):
parser.addoption('--use-rmm-pool', action='store_true', default=False, help='Use RMM pool')

0 comments on commit 14d5ce7

Please sign in to comment.