From ac0005ac1a12f327bd21d6fc892282e0d8289fea Mon Sep 17 00:00:00 2001 From: eshcherb <33529668+eshcherb@users.noreply.github.com> Date: Tue, 31 Dec 2019 07:10:18 -0600 Subject: [PATCH] Update roctracer_spec.md [ROCm/roctracer commit: e14a217e43fd38a3c87e28f3e86af0339132b505] --- projects/roctracer/doc/roctracer_spec.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/projects/roctracer/doc/roctracer_spec.md b/projects/roctracer/doc/roctracer_spec.md index 21358a2fa3..248de6604c 100644 --- a/projects/roctracer/doc/roctracer_spec.md +++ b/projects/roctracer/doc/roctracer_spec.md @@ -10,6 +10,7 @@ for tracing of runtime calls and asynchronous activity, like GPU kernel dispatches and memory moves. The tracing includes callback API for runtime API tracing and activity API for asynchronous activity records logging. + Depending on particular runtime intercepting mechanism, the rocTracer library can be dynamically linked, dynamically loaded by the runtime as a plugin or some API wrapper can be loaded using LD_PRELOAD. @@ -26,9 +27,11 @@ The library supports method for getting the error number and error string of the last failed library API call. It allows to check the conformance of used library API header and the library binary, the version macros and API methods can be used. + Returning the error and error string methods: • roctracer_status_t – error code enumeration • roctracer_error_string – method for returning the error string + Library version: • ROCTRACER_VERSION_MAJOR – API major version macro • ROCTRACER_VERSION_MINOR – API minor version macro @@ -37,7 +40,7 @@ Library version: ``` ### 2.2. Error codes and error string methods ``` -Error code enumeration +Error code enumeration: typedef enum { ROCTRACER_STATUS_SUCCESS = 0, ROCTRACER_STATUS_ERROR = 1,