diff --git a/src/components/cuda/Rules.cuda b/src/components/cuda/Rules.cuda index 8656cf468..f8935cdd8 100644 --- a/src/components/cuda/Rules.cuda +++ b/src/components/cuda/Rules.cuda @@ -8,11 +8,11 @@ CUDA_MACS+= -DPAPI_CUDA_CUPTI=$(PAPI_CUDA_CUPTI) -DPAPI_CUDA_PERFWORKS=$(PAPI_CU COMPSRCS += components/cuda/linux-cuda.c \ components/cuda/cupti_dispatch.c \ components/cuda/cupti_utils.c \ - components/cuda/cupti_common.c \ + components/cuda/papi_cupti_common.c \ components/cuda/cupti_profiler.c \ components/cuda/cupti_events.c \ -COMPOBJS += linux-cuda.o cupti_dispatch.o cupti_utils.o cupti_common.o cupti_profiler.o cupti_events.o +COMPOBJS += linux-cuda.o cupti_dispatch.o cupti_utils.o papi_cupti_common.o cupti_profiler.o cupti_events.o # CFLAGS specifies compile flags; need include files here, and macro defines. CFLAGS += -I$(PAPI_CUDA_ROOT)/include -I$(PAPI_CUDA_ROOT)/extras/CUPTI/include -g $(CUDA_MACS) @@ -27,8 +27,8 @@ cupti_dispatch.o: components/cuda/cupti_dispatch.c cupti_utils.o: components/cuda/cupti_utils.c $(HEADERS) $(CC) $(LIBCFLAGS) $(OPTFLAGS) -c components/cuda/cupti_utils.c -o cupti_utils.o -cupti_common.o: components/cuda/cupti_common.c - $(CC) $(LIBCFLAGS) $(OPTFLAGS) -c components/cuda/cupti_common.c -o cupti_common.o +papi_cupti_common.o: components/cuda/papi_cupti_common.c + $(CC) $(LIBCFLAGS) $(OPTFLAGS) -c components/cuda/papi_cupti_common.c -o papi_cupti_common.o cupti_profiler.o: components/cuda/cupti_profiler.c $(CC) $(LIBCFLAGS) $(OPTFLAGS) -c components/cuda/cupti_profiler.c -o cupti_profiler.o diff --git a/src/components/cuda/cupti_dispatch.c b/src/components/cuda/cupti_dispatch.c index 1091278f0..b0584827f 100644 --- a/src/components/cuda/cupti_dispatch.c +++ b/src/components/cuda/cupti_dispatch.c @@ -5,7 +5,7 @@ */ #include "cupti_config.h" -#include "cupti_common.h" +#include "papi_cupti_common.h" #include "cupti_dispatch.h" #include "lcuda_debug.h" diff --git a/src/components/cuda/cupti_events.c b/src/components/cuda/cupti_events.c index 3ca99fe98..30f90426c 100644 --- a/src/components/cuda/cupti_events.c +++ b/src/components/cuda/cupti_events.c @@ -6,7 +6,7 @@ #include #include "cupti_events.h" -#include "cupti_common.h" +#include "papi_cupti_common.h" #pragma GCC diagnostic ignored "-Wunused-parameter" /* Functions needed by CUPTI Events API */ diff --git a/src/components/cuda/cupti_profiler.c b/src/components/cuda/cupti_profiler.c index 6229c10d3..b0e03e232 100644 --- a/src/components/cuda/cupti_profiler.c +++ b/src/components/cuda/cupti_profiler.c @@ -14,7 +14,7 @@ #include #include -#include "cupti_common.h" +#include "papi_cupti_common.h" #include "cupti_profiler.h" #include "lcuda_debug.h" diff --git a/src/components/cuda/cupti_common.c b/src/components/cuda/papi_cupti_common.c similarity index 99% rename from src/components/cuda/cupti_common.c rename to src/components/cuda/papi_cupti_common.c index a7d7de52c..0d91f2e70 100644 --- a/src/components/cuda/cupti_common.c +++ b/src/components/cuda/papi_cupti_common.c @@ -1,5 +1,5 @@ /** - * @file cupti_common.c + * @file papi_cupti_common.c * @author Anustuv Pal * anustuv@icl.utk.edu */ @@ -11,7 +11,7 @@ #include "papi_memory.h" #include "cupti_config.h" -#include "cupti_common.h" +#include "papi_cupti_common.h" static void *dl_drv, *dl_rt; diff --git a/src/components/cuda/cupti_common.h b/src/components/cuda/papi_cupti_common.h similarity index 96% rename from src/components/cuda/cupti_common.h rename to src/components/cuda/papi_cupti_common.h index 89e5f9623..04b94d741 100644 --- a/src/components/cuda/cupti_common.h +++ b/src/components/cuda/papi_cupti_common.h @@ -1,11 +1,11 @@ /** - * @file cupti_common.h + * @file papi_cupti_common.h * @author Anustuv Pal * anustuv@icl.utk.edu */ -#ifndef __CUPTI_COMMON_H__ -#define __CUPTI_COMMON_H__ +#ifndef __PAPI_CUPTI_COMMON_H__ +#define __PAPI_CUPTI_COMMON_H__ #include #include @@ -107,4 +107,4 @@ int cuptic_ctxarr_destroy(cuptic_info_t *pinfo); int cuptic_device_acquire(cuptiu_event_table_t *evt_table); int cuptic_device_release(cuptiu_event_table_t *evt_table); -#endif /* __CUPTI_COMMON_H__ */ +#endif /* __PAPI_CUPTI_COMMON_H__ */