mirror of
https://github.com/facebookresearch/faiss.git
synced 2025-06-03 21:54:02 +08:00
Use nullptr
in faiss/gpu/StandardGpuResources.cpp (#4232)
Summary: Pull Request resolved: https://github.com/facebookresearch/faiss/pull/4232 `nullptr` is preferable to `0` or `NULL`. Let's use it everywhere so we can enable `-Wzero-as-null-pointer-constant`. - If you approve of this diff, please use the "Accept & Ship" button :-) Reviewed By: dtolnay Differential Revision: D70818157 fbshipit-source-id: a46d64b6d80844f5246f7df236eb6ec54ce2886f
This commit is contained in:
parent
3d96ad56a4
commit
653be59386
@ -411,7 +411,7 @@ void StandardGpuResourcesImpl::initializeForDevice(int device) {
|
||||
raftHandles_.emplace(std::make_pair(device, defaultStream));
|
||||
#endif
|
||||
|
||||
cudaStream_t asyncCopyStream = 0;
|
||||
cudaStream_t asyncCopyStream = nullptr;
|
||||
CUDA_VERIFY(
|
||||
cudaStreamCreateWithFlags(&asyncCopyStream, cudaStreamNonBlocking));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user