From e410953dfc1c193f2471786020cdd510d165d16d Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 9 Aug 2024 05:10:53 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- c_api/tests/c_api_interop_test.cpp | 2 +- taichi/rhi/cuda/cuda_context.cpp | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/c_api/tests/c_api_interop_test.cpp b/c_api/tests/c_api_interop_test.cpp index ff3a1227f2bd1..45fcaf08400b8 100644 --- a/c_api/tests/c_api_interop_test.cpp +++ b/c_api/tests/c_api_interop_test.cpp @@ -164,7 +164,7 @@ TEST_F(CapiTest, TestCUDAImport) { #ifdef TI_WITH_CUDA TEST_F(CapiTest, TestCUDAStreamSet) { EXPECT_EQ(ti_get_cuda_stream(), nullptr); - + void *stream1 = reinterpret_cast(0x12345678); void *stream2 = reinterpret_cast(0x87654321); diff --git a/taichi/rhi/cuda/cuda_context.cpp b/taichi/rhi/cuda/cuda_context.cpp index bf79a13e18a8c..a71833e89c18a 100644 --- a/taichi/rhi/cuda/cuda_context.cpp +++ b/taichi/rhi/cuda/cuda_context.cpp @@ -12,7 +12,9 @@ namespace taichi::lang { CUDAContext::CUDAContext() - : profiler_(nullptr), driver_(CUDADriver::get_instance_without_context()), stream_(nullptr) { + : profiler_(nullptr), + driver_(CUDADriver::get_instance_without_context()), + stream_(nullptr) { // CUDA initialization dev_count_ = 0; driver_.init(0);