From 2b192e70b570fca3dc6cd52ef3e7a993fe363d6d Mon Sep 17 00:00:00 2001 From: Third Party Date: Sat, 6 Jan 2024 21:52:54 +0000 Subject: [PATCH] Run clang-format --- examples/thrust/thrust.cu | 50 +++++++++++++++++++-------------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/examples/thrust/thrust.cu b/examples/thrust/thrust.cu index cba96abd0f..b80f62a099 100644 --- a/examples/thrust/thrust.cu +++ b/examples/thrust/thrust.cu @@ -1,4 +1,4 @@ -//#define THRUST_DEBUG_SYNC +// #define THRUST_DEBUG_SYNC #include "../common/Stopwatch.hpp" #include "../common/hostname.hpp" @@ -17,11 +17,11 @@ #include #include #include -//#include +// #include #include #include #include -//#include +// #include #include #include #include @@ -408,28 +408,28 @@ void run(std::ostream& plotFile) thrust::fill(thrust::device, b, e, 0); syncWithCuda(); - //#if THRUST_DEVICE_SYSTEM == THRUST_DEVICE_SYSTEM_CUDA - // thrust::counting_iterator ci(0); - // thrust::transform( - // thrust::device, - // ci, - // ci + N, - // view.begin(), - // [] LLAMA_FN_HOST_ACC_INLINE(std::size_t i) - // { - // thrust::default_random_engine e; - // e.discard(i); - // thrust::uniform_real_distribution d{-1.0f, 1.0f}; - // return d(e); - // }); - //#else - // { - // std::default_random_engine e; - // std::uniform_real_distribution d{-1.0f, 1.0f}; - // for(auto vr : view) - // vr = d(e); - // } - //#endif + // #if THRUST_DEVICE_SYSTEM == THRUST_DEVICE_SYSTEM_CUDA + // thrust::counting_iterator ci(0); + // thrust::transform( + // thrust::device, + // ci, + // ci + N, + // view.begin(), + // [] LLAMA_FN_HOST_ACC_INLINE(std::size_t i) + // { + // thrust::default_random_engine e; + // e.discard(i); + // thrust::uniform_real_distribution d{-1.0f, 1.0f}; + // return d(e); + // }); + // #else + // { + // std::default_random_engine e; + // std::uniform_real_distribution d{-1.0f, 1.0f}; + // for(auto vr : view) + // vr = d(e); + // } + // #endif double tabulateTotal = 0; // double shuffleTotal = 0;