Skip to content

Commit

Permalink
Unify MarkerAPI names, LIKWID_NVMARKER_* -> NVMON_MARKER_* in example…
Browse files Browse the repository at this point in the history
… code
  • Loading branch information
TomTheBear committed Nov 13, 2024
1 parent 42f2b7d commit 6c56128
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions examples/C-nvMarkerAPI.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#include <unistd.h>
#include <stdint.h>

#include <likwid-gpumarker.h>
#include <likwid-marker.h>

extern int cuda_function(int gpu, size_t size);

Expand All @@ -44,16 +44,16 @@ int main(int argc, char* argv[])
int i = 0;
int numDevices = 1;

LIKWID_GPUMARKER_INIT;
NVMON_MARKER_INIT;

LIKWID_GPUMARKER_START("matmul");
NVMON_MARKER_START("matmul");
// You can read the environment variable LIKWID_NVMON_GPUS to determine list of GPUs
for (i = 0; i < numDevices; i++)
int err = cuda_function(0, 3200);

LIKWID_GPUMARKER_STOP("matmul");
NVMON_MARKER_STOP("matmul");

LIKWID_GPUMARKER_CLOSE;
NVMON_MARKER_CLOSE;

return 0;
}

0 comments on commit 6c56128

Please sign in to comment.