diff --git a/Tests/GpuSharedMemoryTest.h b/Tests/GpuSharedMemoryTest.h index 5c778ef7db..b197127a6b 100644 --- a/Tests/GpuSharedMemoryTest.h +++ b/Tests/GpuSharedMemoryTest.h @@ -41,7 +41,7 @@ class StrideNumberGenerator : public NumberGenerator { public: StrideNumberGenerator(const int64_t start, const int64_t stride) - : crt_(start), stride_(stride) {} + : crt_(start), stride_(stride), start_(start) {} int64_t getNextValue() override { const auto crt = crt_; @@ -78,4 +78,4 @@ class GpuReductionTester : public GpuSharedMemCodeBuilder { private: CudaMgr_Namespace::CudaMgr* cuda_mgr_; llvm::Function* wrapper_kernel_; -}; \ No newline at end of file +};