Skip to content

Commit

Permalink
Removing APEX counters (llvm won't link them?)
Browse files Browse the repository at this point in the history
  • Loading branch information
khuck committed Apr 12, 2021
1 parent ec1743e commit 4486847
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/unit_tests/CUDA/apex_cuda.cu
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/* For user instrumentation */
#include "nvToolsExt.h"

#define ITERATIONS 4
#define ITERATIONS 1

#define DRIVER_API_CALL(apiFuncCall) \
do { \
Expand Down Expand Up @@ -89,7 +89,7 @@ void do_marker_payload(const char * name, int payload, nvtxDomainHandle_t domain
}

void launch(DataElement *elem) {
APEX_SCOPED_TIMER;
//APEX_SCOPED_TIMER;
nvtxDomainHandle_t domain = nvtxDomainCreateA("apex.example.loop.domain");
do_marker_payload(elem->name, elem->value, domain);
Kernel<<< 1, 1 >>>(elem);
Expand Down
2 changes: 1 addition & 1 deletion src/unit_tests/CUDA/apex_multi_cuda.cu
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ void Kernel(DataElement *elem) {
}

void launch(DataElement *elem) {
APEX_SCOPED_TIMER;
//APEX_SCOPED_TIMER;
Kernel<<< 1, 1 >>>(elem);
RUNTIME_API_CALL(cudaDeviceSynchronize());
}
Expand Down
2 changes: 1 addition & 1 deletion src/unit_tests/CUDA/apex_vector.cu
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ VecSub(const int* A, const int* B, int* C, int N)
static void
do_pass(cudaStream_t stream)
{
APEX_SCOPED_TIMER;
//APEX_SCOPED_TIMER;
int *h_A, *h_B, *h_C;
int *d_A, *d_B, *d_C;
size_t size = COMPUTE_N * sizeof(int);
Expand Down
2 changes: 1 addition & 1 deletion src/unit_tests/CUDA/multiGpuThread.cu
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ __global__ void kernel_fc(int *dev_arr, int *dev_result)

void *thread_func(void* struc)
{
APEX_SCOPED_TIMER;
//APEX_SCOPED_TIMER;
cuda_st * data = (cuda_st*)struc;
printf("thread %d func start\n", data->thr_num);
int i;
Expand Down

0 comments on commit 4486847

Please sign in to comment.