diff --git a/docs/markdown/hip_faq.md b/docs/markdown/hip_faq.md index d62f40510a..e21fc984e2 100644 --- a/docs/markdown/hip_faq.md +++ b/docs/markdown/hip_faq.md @@ -213,6 +213,9 @@ export HIP_ATP_MARKER=1 ```shell # Use profile to generate timeline view: /opt/rocm/bin/rocm-profiler -o -A + +Or +/opt/rocm/bin/rocm-profiler -e HIP_ATP_MARKER=1 -o -A ``` #### Using HIP_TRACE_API diff --git a/tests/README.md b/tests/README.md index c762b09ceb..de73652e43 100644 --- a/tests/README.md +++ b/tests/README.md @@ -50,3 +50,12 @@ ctest ctest -R Memcpy ``` + +### If a test fails: + +Extract the commandline from the testing log: +$ grep -A3 -m2 hipMemcpy-size Testing/Temporary/LastTest.log +36/47 Testing: hipMemcpy-size +36/47 Test: hipMemcpy-size +Command: "/home/bensander/git/compute/external/hip/hip/tests/b6.hcc-LC.debug/runtimeApi/memory/hipMemcpy" "--tests" "0x6" +Directory: /home/bensander/git/compute/external/hip/hip/tests/b6.hcc-LC.debug/runtimeApi/memory diff --git a/tests/src/CMakeLists.txt b/tests/src/CMakeLists.txt index 86ba712ead..eea43659dc 100644 --- a/tests/src/CMakeLists.txt +++ b/tests/src/CMakeLists.txt @@ -166,7 +166,8 @@ build_hip_executable (hipEventRecord hipEventRecord.cpp) build_hip_executable_libcpp (hipHcc hipHcc.cpp) #set_source_files_properties (hipHcc.cpp PROPERTIES COMPILE_FLAGS --stdlib=libc++ ) -build_hip_executable_libcpp (hipPointerAttrib hipPointerAttrib.cpp) +# __workweek fix. +#build_hip_executable_libcpp (hipPointerAttrib hipPointerAttrib.cpp) build_hip_executable (hipHostAlloc hipHostAlloc.cpp) build_hip_executable (hipHostGetFlags hipHostGetFlags.cpp) build_hip_executable (hipHostRegister hipHostRegister.cpp) diff --git a/tests/src/hipModule.cpp b/tests/src/hipModule.cpp index 86ccb3ab9f..44855fb74f 100644 --- a/tests/src/hipModule.cpp +++ b/tests/src/hipModule.cpp @@ -23,6 +23,8 @@ THE SOFTWARE. #include #include +#include "test_common.h" + #define LEN 64 #define SIZE LEN<<2 @@ -45,17 +47,17 @@ int main(){ std::cout<