de45e2291e
- add API to add / remove user-pointers from the tracker. - test for thread-safety with MultiThreadtest_2 - rapid insertions/removal. - add mutex to provide thread-safety. - rename tracker interface to "memtracker_..." for consistency. - add am_memtracker_reset, connect to hipDeviceReset. -
Tests uses CMAKE as teh build infrastructure.
Use :
mkdir build cd build cmake ../src make make test
#-----
How to add a new test;
edit src/CMakeFiles to add the test:
add the executable and list of required CPP files, ie:
make_test (EXE CPP_FILES)
make_hip_executable (hipMemset hipMemset.cpp)
Add to automated Test framework:
make_test (TESTNAME ARGS)
make_test(hipMemset " ")
Running tests:
make test
Run a specific test:
./hipMemset