From e417eb5d35ed64917de9edfcde02fdfd6e24ae41 Mon Sep 17 00:00:00 2001 From: Ben Sander Date: Fri, 5 May 2017 17:20:56 -0500 Subject: [PATCH] Refactor hipHostRegister test. Run all tests in one command. Run 128 offsets. --- hipamd/tests/src/runtimeApi/memory/hipHostRegister.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/hipamd/tests/src/runtimeApi/memory/hipHostRegister.cpp b/hipamd/tests/src/runtimeApi/memory/hipHostRegister.cpp index 8cf0979261..3376ee04f1 100644 --- a/hipamd/tests/src/runtimeApi/memory/hipHostRegister.cpp +++ b/hipamd/tests/src/runtimeApi/memory/hipHostRegister.cpp @@ -19,9 +19,7 @@ THE SOFTWARE. /* HIT_START * BUILD: %t %s ../../test_common.cpp - * RUN: %t --tests 0x1 - * RUN: %t --tests 0x2 - * RUN: %t --tests 0x4 + * RUN: %t * HIT_END */ @@ -131,7 +129,7 @@ int main(int argc, char *argv[]) HIPCHECK(hipMalloc(&Bd, size)); // TODO - set to 128 -#define OFFSETS_TO_TRY 1 +#define OFFSETS_TO_TRY 128 assert (N>OFFSETS_TO_TRY); if (p_tests & 0x2) {