SWDEV-292393 - [catch2][dtest] Tests for hipMemcpy related apis.

Migrated all hipMemcpy related APIs to CATCH2 framework by optmizing
the code and moving the stress related tests to stress folder.

Change-Id: Id47669b49304c35d1a68fabdaaf3f6e3ab0428a5
This commit is contained in:
DURGESH KROTTAPALLI
2021-07-06 23:48:24 +05:30
parent 8093223eec
commit 18591bc68f
20 ha cambiato i file con 3593 aggiunte e 62 eliminazioni
+18
Vedi File
@@ -55,6 +55,24 @@ THE SOFTWARE.
#include <chrono>
#endif
#define HIPCHECK(error) \
{ \
hipError_t localError = error; \
if ((localError != hipSuccess) && (localError != hipErrorPeerAccessAlreadyEnabled)) { \
printf("error: '%s'(%d) from %s at %s:%d\n", hipGetErrorString(localError), \
localError, #error, __FILE__, __LINE__); \
abort(); \
} \
}
#define HIPASSERT(condition) \
if (!(condition)) { \
printf("assertion %s at %s:%d \n", #condition, __FILE__, __LINE__); \
abort(); \
}
// Utility Functions
namespace HipTest {
static inline int getDeviceCount() {