mstxRangeStartA
Prototype
C/C++ function prototype: mstxRangeId mstxRangeStartA(const char *message, aclrtStream stream)
Description
Start position of the mstx range capability.
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
message |
Input |
message indicates the marked text, which carries the dotting information. Data type in C/C++: const char *. The default value is None. |
stream |
Input |
stream indicates the thread that uses the mark. Data type in C/C++: aclrtStream. The default value is None. |
Return
If 0 is returned, the operation fails.
Example
- C/C++ calling:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
... bool RunOp() { // create op desc ... char message = "h1"; mstxRangeId id = mstxRangeStartA(message, NULL); ... // Run op if (!opRunner.RunOp()) { ERROR_LOG("Run op failed"); return false; } mstxRangeEnd(id); ...
Parent topic: msProf External APIs