SWDEV-419965: Enabling and fixing AyncCopyTest in runTracerFeatureTests

Change-Id: Iceeaae11b5367483ac03db0c500dd27f4037e53e


[ROCm/rocprofiler commit: a1f9b244c8]
This commit is contained in:
Manjunath-Jakaraddi
2024-02-02 13:12:24 -08:00
committed by Gopesh Bhardwaj
parent 81db692b1c
commit b04aa8f36d
2 changed files with 4 additions and 4 deletions
@@ -194,7 +194,7 @@ static hsa_status_t AsyncCpyTest(async_mem_cpy_agent* dst, async_mem_cpy_agent*
// Initialize the system and destination buffers with a value so we can later
// validate it has been overwritten
void* sysPtr = args->cpu.ptr;
void* sysPtr = dst->ptr;
err = hsa_amd_memory_fill(src->ptr, val, sz / sizeof(uint32_t));
RET_IF_HSA_ERR(err);
@@ -303,7 +303,7 @@ int main() {
reinterpret_cast<void**>(&args.gpu2.ptr));
RET_IF_HSA_ERR(err);
fprintf(stdout, "Copying %lu bytes from gpu1 memory to gpu2 memory...\n", sz);
err = AsyncCpyTest(&args.gpu1, &args.gpu2, &args, sz, kTestFillValue3);
err = AsyncCpyTest(&args.gpu2, &args.gpu1, &args, sz, kTestFillValue3);
RET_IF_HSA_ERR(err);
fprintf(stdout, "Success!\n");
}
@@ -303,7 +303,7 @@ class AsyncCopyTest : public Tracertest {
// Test:1 Compares total num of kernel-names in golden output against current
// tracer output
TEST_F(AsyncCopyTest, DISABLED_WhenRunningTracerWithAppThenAsyncCopyOutputIsGenerated) {
TEST_F(AsyncCopyTest, WhenRunningTracerWithAppThenAsyncCopyOutputIsGenerated) {
// kernel info in current profler run
std::vector<tracer_kernel_info_t> current_kernel_info;
@@ -312,7 +312,7 @@ TEST_F(AsyncCopyTest, DISABLED_WhenRunningTracerWithAppThenAsyncCopyOutputIsGene
}
// Test:2 Matches coelation Ids
TEST_F(AsyncCopyTest, DISABLED_WhenRunningTracerWithAppThenAsyncCorelationCountIsCorrect) {
TEST_F(AsyncCopyTest, WhenRunningTracerWithAppThenAsyncCorelationCountIsCorrect) {
// kernel info in current profler run
std::vector<tracer_kernel_info_t> current_kernel_info;