Skip to content

Commit cbe963b

Browse files
authored
Use nullptr in gloo/cuda_allreduce_halving_doubling.h
Differential Revision: D70818154 Pull Request resolved: #417
1 parent 9578bb1 commit cbe963b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

gloo/cuda_allreduce_halving_doubling.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class CudaAllreduceHalvingDoubling : public Algorithm {
6060
void initReductionsAndBroadcasts(
6161
typename std::enable_if<
6262
std::is_same<U, CudaDeviceWorkspace<T>>::value,
63-
typename U::Pointer>::type* = 0);
63+
typename U::Pointer>::type* = NULL);
6464

6565
std::vector<CudaDevicePointer<T>> devicePtrs_;
6666
std::vector<CudaStream> streams_;

gloo/cuda_broadcast_one_to_all.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ class CudaBroadcastOneToAll : public Algorithm {
3636
void init(
3737
typename std::enable_if<
3838
std::is_same<U, CudaHostWorkspace<T>>::value,
39-
typename U::Pointer>::type* = 0);
39+
typename U::Pointer>::type* = NULL);
4040

4141
template <typename U = W>
4242
void init(
4343
typename std::enable_if<
4444
std::is_same<U, CudaDeviceWorkspace<T>>::value,
45-
typename U::Pointer>::type* = 0);
45+
typename U::Pointer>::type* = NULL);
4646

4747
std::vector<CudaDevicePointer<T>> devicePtrs_;
4848
std::vector<CudaStream> streams_;

0 commit comments

Comments
 (0)