Loading src/TNL/DevicePointer.h +2 −0 Original line number Diff line number Diff line Loading @@ -431,6 +431,8 @@ class DevicePointer< Object, Devices::Cuda > : public SmartPointer bool modified() { if( ! this->pointer || ! this->last_sync_state ) return false; return std::memcmp( (void*) this->last_sync_state, (void*) this->pointer, sizeof( ObjectType ) ) != 0; } Loading src/TNL/SharedPointer.h +2 −0 Original line number Diff line number Diff line Loading @@ -572,6 +572,8 @@ class SharedPointer< Object, Devices::Cuda, lazy > : public SmartPointer bool modified() { if( ! this->pointer ) return false; return std::memcmp( (void*) (this->pointer + 1), (void*) this->pointer, sizeof( ObjectType ) ) != 0; } Loading src/TNL/UniquePointer.h +2 −0 Original line number Diff line number Diff line Loading @@ -246,6 +246,8 @@ class UniquePointer< Object, Devices::Cuda > : public SmartPointer bool modified() { if( ! this->pointer ) return false; return std::memcmp( (void*) (this->pointer + 1), (void*) this->pointer, sizeof( ObjectType ) ) != 0; } Loading Loading
src/TNL/DevicePointer.h +2 −0 Original line number Diff line number Diff line Loading @@ -431,6 +431,8 @@ class DevicePointer< Object, Devices::Cuda > : public SmartPointer bool modified() { if( ! this->pointer || ! this->last_sync_state ) return false; return std::memcmp( (void*) this->last_sync_state, (void*) this->pointer, sizeof( ObjectType ) ) != 0; } Loading
src/TNL/SharedPointer.h +2 −0 Original line number Diff line number Diff line Loading @@ -572,6 +572,8 @@ class SharedPointer< Object, Devices::Cuda, lazy > : public SmartPointer bool modified() { if( ! this->pointer ) return false; return std::memcmp( (void*) (this->pointer + 1), (void*) this->pointer, sizeof( ObjectType ) ) != 0; } Loading
src/TNL/UniquePointer.h +2 −0 Original line number Diff line number Diff line Loading @@ -246,6 +246,8 @@ class UniquePointer< Object, Devices::Cuda > : public SmartPointer bool modified() { if( ! this->pointer ) return false; return std::memcmp( (void*) (this->pointer + 1), (void*) this->pointer, sizeof( ObjectType ) ) != 0; } Loading