From 3cced7d3ff33928ffac2ef452563fac334cab3dc Mon Sep 17 00:00:00 2001 From: Bo Qiao Date: Thu, 6 Jan 2022 23:48:16 +0800 Subject: [PATCH] Add wrong private var --- taichi/program/ndarray.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/taichi/program/ndarray.h b/taichi/program/ndarray.h index fddcbdf6a..5e545ca48 100644 --- a/taichi/program/ndarray.h +++ b/taichi/program/ndarray.h @@ -43,8 +43,8 @@ class Ndarray { DeviceAllocation ndarray_alloc_{kDeviceNullAllocation}; // Invariant: // data_ptr_ is not nullptr iff arch is a llvm backend - uint64_t *data_ptr_{nullptr}; - std::size_t nelement_{1}; + uint64_t *data_ptr{nullptr}; + std::size_t nelement{1}; std::size_t element_size_{1}; // Ndarrays manage their own |DeviceAllocation| so this must be shared with // |OpenGlRuntime|. Without the ownership, when the program exits |device_|