Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions taichi/program/ndarray.h
Original file line number Diff line number Diff line change
Expand Up @@ -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_|
Expand Down