Skip to content

Commit

Permalink
fix sync method (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
getumen authored Jan 23, 2024
1 parent 176539c commit 62b7b98
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ USER root

RUN sed -i -r 's@http://(jp\.)?archive\.ubuntu\.com/ubuntu/?@http://ftp.jaist.ac.jp/pub/Linux/ubuntu/@g' /etc/apt/sources.list

ENV CPATH=/opt/conda/include:/opt/conda/include/rapids
ENV LIBRARY_PATH=$LIBRARY_PATH:/opt/conda/lib:/opt/conda/lib/rapids
ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/conda/lib:/opt/conda/lib/rapids
ENV CPATH=/opt/conda/include:/opt/conda/include/rapids:/usr/local/include
ENV LIBRARY_PATH=$LIBRARY_PATH:/opt/conda/lib:/opt/conda/lib/rapids:/usr/local/lib
ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/conda/lib:/opt/conda/lib/rapids:/usr/local/lib

RUN apt-get update \
&& apt-get install -y \
Expand Down
2 changes: 1 addition & 1 deletion rust/src/sys/bindings.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* automatically generated by rust-bindgen 0.66.1 */
/* automatically generated by rust-bindgen 0.69.2 */

#![allow(non_camel_case_types, non_snake_case, non_upper_case_globals, unused)]

Expand Down
2 changes: 1 addition & 1 deletion src/agglomerative_clustering.cu
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ __host__ int AgglomerativeClusteringFit(
d_children.size(),
handle_p->handle->get_stream());

handle_p->handle->get_stream().synchronize();
handle_p->handle->sync_stream();

return 0;
}
2 changes: 1 addition & 1 deletion src/dbscan.cu
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ __host__ int DbscanFit(
d_labels.size(),
handle_p->handle->get_stream());

handle_p->handle->get_stream().synchronize();
handle_p->handle->sync_stream();

return 0;
}
2 changes: 1 addition & 1 deletion src/fil.cu
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ __host__ int FILPredict(
d_preds.size(),
handle_p->handle->get_stream());

handle_p->handle->get_stream().synchronize();
handle_p->handle->sync_stream();

return FIL_SUCCESS;
}
2 changes: 1 addition & 1 deletion src/kmeans.cu
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ KmeansFit(
d_centroids.size(),
handle_p->handle->get_stream());

handle_p->handle->get_stream().synchronize();
handle_p->handle->sync_stream();

return 0;
}
6 changes: 3 additions & 3 deletions src/linear_regression.cu
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ __host__ int OlsFit(
d_coef.size(),
handle_p->handle->get_stream());

handle_p->handle->get_stream().synchronize();
handle_p->handle->sync_stream();

return 0;
}
Expand Down Expand Up @@ -125,7 +125,7 @@ __host__ int RidgeFit(
d_coef.size(),
handle_p->handle->get_stream());

handle_p->handle->get_stream().synchronize();
handle_p->handle->sync_stream();

return 0;
}
Expand Down Expand Up @@ -177,7 +177,7 @@ __host__ int GemmPredict(
d_preds.size(),
handle_p->handle->get_stream());

handle_p->handle->get_stream().synchronize();
handle_p->handle->sync_stream();

return 0;
}

0 comments on commit 62b7b98

Please sign in to comment.