From 0e922da87483d63c2458f95f00b1851a377c3af3 Mon Sep 17 00:00:00 2001 From: RichardoLuo <50363844+RichardoLuo@users.noreply.github.com> Date: Sun, 15 May 2022 08:59:50 +0800 Subject: [PATCH] [NFC] polish colossalai/kernel/cuda_native/csrc/kernels/include/context.h code style (#956) Co-authored-by: RichardoLuo <14049555596@qq.com> --- colossalai/kernel/cuda_native/csrc/kernels/include/context.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/colossalai/kernel/cuda_native/csrc/kernels/include/context.h b/colossalai/kernel/cuda_native/csrc/kernels/include/context.h index dc80881f9..f7d75f38c 100644 --- a/colossalai/kernel/cuda_native/csrc/kernels/include/context.h +++ b/colossalai/kernel/cuda_native/csrc/kernels/include/context.h @@ -9,7 +9,7 @@ #include "cuda_util.h" class Context { -public: + public: Context() : _stream(nullptr) { CHECK_GPU_ERROR(cublasCreate(&_cublasHandle)); } @@ -30,7 +30,7 @@ public: cublasHandle_t get_cublashandle() { return _cublasHandle; } -private: + private: cudaStream_t _stream; cublasHandle_t _cublasHandle; };