Skip to content

Commit

Permalink
Merge fa9b367 into f43415e
Browse files Browse the repository at this point in the history
  • Loading branch information
harrism authored Jun 11, 2021
2 parents f43415e + fa9b367 commit 155c27f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
8 changes: 4 additions & 4 deletions ci/gpu/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,6 @@ gpuci_conda_retry install -y \
# gpuci_conda_retry remove --force rapids-build-env rapids-notebook-env
# gpuci_conda_retry install -y "your-pkg=1.0.0"

gpuci_logger "Install the master version of dask and distributed"
pip install "git+https://github.com/dask/distributed.git" --upgrade --no-deps
pip install "git+https://github.com/dask/dask.git" --upgrade --no-deps

gpuci_logger "Check versions"
python --version
$CC --version
Expand Down Expand Up @@ -108,6 +104,10 @@ else
echo "Installing $CONDA_FILE"
conda install -c ${CONDA_ARTIFACT_PATH} "$CONDA_FILE"

gpuci_logger "Install the master version of dask and distributed"
pip install "git+https://github.com/dask/distributed.git" --upgrade --no-deps
pip install "git+https://github.com/dask/dask.git" --upgrade --no-deps

echo "Build cugraph..."
$WORKSPACE/build.sh cugraph
fi
Expand Down
2 changes: 1 addition & 1 deletion cpp/src/components/weakly_connected_components.cu
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ void weakly_connected_components_impl(raft::handle_t const &handle,
edge_first,
edge_first + new_num_edge_inserts);
auto num_unique_edges = static_cast<size_t>(thrust::distance(edge_first, unique_edge_last));
num_edge_inserts.set_value(num_unique_edges, handle.get_stream_view());
num_edge_inserts.set_value_async(num_unique_edges, handle.get_stream_view());
}

vertex_frontier.get_bucket(static_cast<size_t>(Bucket::cur)).clear();
Expand Down
8 changes: 6 additions & 2 deletions cpp/src/traversal/tsp.cu
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@

#include <utilities/high_res_timer.hpp>

#include <rmm/cuda_stream_view.hpp>

#include "tsp.hpp"
#include "tsp_solver.hpp"

Expand Down Expand Up @@ -53,6 +55,8 @@ TSP::TSP(raft::handle_t const &handle,
warp_size_(handle_.get_device_properties().warpSize),
sm_count_(handle_.get_device_properties().multiProcessorCount),
restart_batch_(8192),
mylock_scalar_(stream_),
best_cost_scalar_(stream_),
neighbors_vec_((k_ + 1) * nodes_, stream_),
work_vec_(restart_batch_ * ((4 * nodes_ + 3 + warp_size_ - 1) / warp_size_ * warp_size_),
stream_),
Expand Down Expand Up @@ -81,9 +85,9 @@ void TSP::setup()

void TSP::reset_batch()
{
mylock_scalar_.set_value_zero(stream_);
mylock_scalar_.set_value_to_zero_async(stream_);
auto const max{std::numeric_limits<int>::max()};
best_cost_scalar_.set_value(max, stream_);
best_cost_scalar_.set_value_async(max, stream_);
}

void TSP::get_initial_solution(int const batch)
Expand Down

0 comments on commit 155c27f

Please sign in to comment.