diff --git a/gloo/cuda_allreduce_halving_doubling.h b/gloo/cuda_allreduce_halving_doubling.h index c4df85c73..04ba7c463 100644 --- a/gloo/cuda_allreduce_halving_doubling.h +++ b/gloo/cuda_allreduce_halving_doubling.h @@ -60,7 +60,7 @@ class CudaAllreduceHalvingDoubling : public Algorithm { void initReductionsAndBroadcasts( typename std::enable_if< std::is_same>::value, - typename U::Pointer>::type* = 0); + typename U::Pointer>::type* = NULL); std::vector> devicePtrs_; std::vector streams_; diff --git a/gloo/cuda_broadcast_one_to_all.h b/gloo/cuda_broadcast_one_to_all.h index 67cac9d47..794691221 100644 --- a/gloo/cuda_broadcast_one_to_all.h +++ b/gloo/cuda_broadcast_one_to_all.h @@ -36,13 +36,13 @@ class CudaBroadcastOneToAll : public Algorithm { void init( typename std::enable_if< std::is_same>::value, - typename U::Pointer>::type* = 0); + typename U::Pointer>::type* = NULL); template void init( typename std::enable_if< std::is_same>::value, - typename U::Pointer>::type* = 0); + typename U::Pointer>::type* = NULL); std::vector> devicePtrs_; std::vector streams_;