Skip to content

Commit

Permalink
Cleaning up trace event stream names
Browse files Browse the repository at this point in the history
  • Loading branch information
khuck committed Jul 30, 2020
1 parent ce512e9 commit 1ea3789
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
8 changes: 6 additions & 2 deletions src/apex/trace_event_listener.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include <iostream>
#include <fstream>
#include <memory>
#include <iomanip>

using namespace std;

Expand Down Expand Up @@ -202,9 +203,12 @@ std::string trace_event_listener::make_tid (uint32_t device, uint32_t context, u
<< ",\"args\":{\"name\":"
<< "\"GPU Dev:" << device;
if (context > 0) {
ss << " Ctx:" << context;
ss << std::setfill('0');
ss << " Ctx:";
ss << std::setw(2) << context;
if (stream > 0) {
ss << " Str:" << stream;
ss << " Str:";
ss << setw(5) << stream;
}
}
ss << "\"";
Expand Down
1 change: 1 addition & 0 deletions src/unit_tests/CUDA/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ link_directories (${APEX_BINARY_DIR}/src/apex)

set(example_programs
apex_cuda
apex_multi_cuda
apex_vector
multiGpuThread
)
Expand Down
2 changes: 1 addition & 1 deletion src/unit_tests/CUDA/apex_cuda.cu
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include <stdio.h>
#include "apex_api.hpp"

#define ITERATIONS 64
#define ITERATIONS 4

#define RUNTIME_API_CALL(apiFuncCall) \
do { \
Expand Down

0 comments on commit 1ea3789

Please sign in to comment.