Skip to content

Commit

Permalink
Merge pull request rapidsai#1343 from drobison00/bug-nccl-fix
Browse files Browse the repository at this point in the history
[REVIEW] API update to match RAFT PR rapidsai#120
  • Loading branch information
BradReesWork committed Jan 21, 2021
2 parents ccd6f09 + 8170d0e commit 7596db6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ else(DEFINED ENV{RAFT_PATH})

ExternalProject_Add(raft
GIT_REPOSITORY https://github.com/rapidsai/raft.git
GIT_TAG f75d7b437bf1da3df749108161b8a0505fb6b7b3
GIT_TAG 9dbf2c8a9134ce8135f7fe947ec523d874fcab6a
PREFIX ${RAFT_DIR}
CONFIGURE_COMMAND ""
BUILD_COMMAND ""
Expand Down
10 changes: 5 additions & 5 deletions python/cugraph/comms/comms.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2018-2020, NVIDIA CORPORATION.
# Copyright (c) 2018-2021, NVIDIA CORPORATION.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
Expand All @@ -12,7 +12,7 @@
# limitations under the License.

from cugraph.raft.dask.common.comms import Comms as raftComms
from cugraph.raft.dask.common.comms import worker_state
from cugraph.raft.dask.common.comms import get_raft_comm_state
from cugraph.raft.common.handle import Handle
from cugraph.comms.comms_wrapper import init_subcomms as c_init_subcomms
from dask.distributed import default_client
Expand Down Expand Up @@ -196,12 +196,12 @@ def get_default_handle():
# Functions to be called from within workers

def get_handle(sID):
sessionstate = worker_state(sID)
sessionstate = get_raft_comm_state(sID)
return sessionstate['handle']


def get_worker_id(sID):
sessionstate = worker_state(sID)
sessionstate = get_raft_comm_state(sID)
return sessionstate['wid']


Expand All @@ -216,5 +216,5 @@ def get_n_workers(sID=None):
if sID is None:
return read_utils.get_n_workers()
else:
sessionstate = worker_state(sID)
sessionstate = get_raft_comm_state(sID)
return sessionstate['nworkers']

0 comments on commit 7596db6

Please sign in to comment.