From c7519a237a44eeb7b8a26076ebe97c2821bd968f Mon Sep 17 00:00:00 2001 From: Peter Boyle Date: Sun, 24 May 2020 14:02:47 -0400 Subject: [PATCH] Assertions fail on HIP foor unknown reasons - dedbugging --- Grid/util/Coordinate.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Grid/util/Coordinate.h b/Grid/util/Coordinate.h index c319a14d..7f1d31c0 100644 --- a/Grid/util/Coordinate.h +++ b/Grid/util/Coordinate.h @@ -52,14 +52,14 @@ public: accelerator_inline size_type size(void) const { return _size; }; accelerator_inline void clear(void) { resize(0);} accelerator_inline void resize(size_type sz) { +#ifndef GRID_HIP assert(sz>=0); assert(sz<=MaxEntries); +#endif _size = sz; } accelerator_inline void resize(size_type sz,const value &val) { - assert(sz>=0); - assert(sz<=MaxEntries); - _size = sz; + resize(sz); for(int s=0;s ©me) {