Attempting to build local PAPI rpm with cuda enabled

69 views
Skip to first unread message

William Cohen

unread,
Jun 16, 2024, 10:48:56 PM6/16/24
to ptools-...@icl.utk.edu, wco...@redhat.com
Hi,
As an experiment I took the papi papi srpm in rawhide ()https://kojipkgs.fedoraproject.org//packages/papi/7.1.0/4.fc41/src/papi-7.1.0-4.fc41.src.rpm and attempted to adjust the papi.spec to build the cuda component. The modified papi.spec file is attached. I am attempting to built the RPM on a fedora 39 machine with cuda-nvcc-12-4-12.4.131-1.x86_64
and other nvidia tools installed on the machine. There appears to be some issues with the build due the tighter rpm constraints (-Werror). Below is the section of the output related to the cuda failures. The sprintf looks trivial to fix. There might be some issues with how I have things set up in the rpmbuild. How are other people building the cuda component?

-Will


gcc -fPIC -DPIC -shared -Wl,-soname -Wl,libpapi.so.7.1 -Xlinker "-rpath" -Xlinker "/usr/lib64" -DPAPI_NO_MEMORY_MANAGEMENT -DSTATIC_PAPI_EVENTS_TABLE -DUSE_PERFEVENT_RDPMC=1 -DPEINCLUDE=\"/usr/include/perfmon/perf_event.h\" -D_REENTRANT -D_GNU_SOURCE -DUSE_COMPILER_TLS -fvisibility=hidden -I. -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DHAVE_CUDA -DHAVE_NVML -DPAPI_NUM_COMP=16 -I/usr/local/cuda-12.4/include -I/usr/local/cuda-12.4/extras/CUPTI/include -g -DPAPI_CUDA_MAIN= -DPAPI_CUDA_RUNTIME= -DPAPI_CUDA_CUPTI= -DPAPI_CUDA_PERFWORKS= -I/usr/include -I/usr/include/sensors -g -DPAPI_LMSENSORS_MAIN=\"\" -I/usr/include -I/usr/include/pcp -g -DPAPI_PCP_MAIN=\"\" -I/usr/local/cuda-12.4/include -DOSLOCK=\"linux-lock.h\" -DOSCONTEXT=\"linux-context.h\" -O2 x86_cpuid_info.c papi_libpfm4_events.c papi.c papi_internal.c high-level/papi_hl.c extras.c sw_multiplex.c upper_PAPI_FWRAPPERS.c papi_fwrappers_.c papi_fwrappers__.c threads.c cpus.c linux-memory.c linux-timer.c linux-common.c papi_preset.c papi_vector.c papi_memory.c components/perf_event/perf_event.c components/perf_event/pe_libpfm4_events.c components/perf_event_uncore/perf_event_uncore.c components/appio/appio.c components/cuda/linux-cuda.c components/cuda/cupti_dispatch.c components/cuda/cupti_utils.c components/cuda/cupti_common.c components/cuda/cupti_profiler.c components/cuda/cupti_events.c components/coretemp/linux-coretemp.c components/example/example.c components/infiniband/linux-infiniband.c components/lmsensors/linux-lmsensors.c components/lustre/linux-lustre.c components/micpower/linux-micpower.c components/mx/linux-mx.c components/net/linux-net.c components/pcp/linux-pcp.c components/rapl/linux-rapl.c components/stealtime/linux-stealtime.c components/sysdetect/sysdetect.c components/sysdetect/nvidia_gpu.c components/sysdetect/amd_gpu.c components/sysdetect/cpu.c components/sysdetect/cpu_utils.c components/sysdetect/os_cpu_utils.c components/sysdetect/linux_cpu_utils.c components/sysdetect/x86_cpu_utils.c -o libpapi.so.7.1.0.0 -Bdynamic -L/usr/lib64 -lpfm -ldl -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -Wl,-rpath=/home/wcohen/rpmbuild/BUILD/papi-7.1.0/src/libpfm4/lib:/home/wcohen/rpmbuild/BUILD/papi-7.1.0/src,--enable-new-dtags -g -g
ar rv libtestlib.a test_utils.o ftests_util.o
ar: creating libtestlib.a
a - test_utils.o
a - ftests_util.o
make[1]: Leaving directory '/home/wcohen/rpmbuild/BUILD/papi-7.1.0/src/testlib'
components/cuda/linux-cuda.c: In function ‘cuda_init_private’:
components/cuda/linux-cuda.c:158:9: error: format not a string literal and no format arguments [-Werror=format-security]
158 | sprintf(_cuda_vector.cmp_info.disabled_reason, disabled_reason);
| ^~~~~~~
cc1: some warnings being treated as errors
In file included from components/cuda/cupti_dispatch.c:13:
components/cuda/cupti_profiler.h:15:62: error: unknown type name ‘cuptic_info_t’; did you mean ‘cuptid_info_t’?
15 | int cuptip_control_create(cuptiu_event_table_t *event_names, cuptic_info_t thr_info, cuptip_control_t *pstate);
| ^~~~~~~~~~~~~
| cuptid_info_t
components/cuda/cupti_dispatch.c: In function ‘cuptid_shutdown’:
components/cuda/cupti_dispatch.c:23:9: warning: implicit declaration of function ‘cuptic_is_runtime_perfworks_api’ [-Wimplicit-function-declaration]
23 | if (cuptic_is_runtime_perfworks_api()) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
components/cuda/cupti_dispatch.c:32:16: warning: implicit declaration of function ‘cuptic_is_runtime_events_api’ [-Wimplicit-function-declaration]
32 | } else if (cuptic_is_runtime_events_api()) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
components/cuda/cupti_dispatch.c:43:12: warning: implicit declaration of function ‘cuptic_shutdown’; did you mean ‘cuptie_shutdown’? [-Wimplicit-function-declaration]
43 | return cuptic_shutdown();
| ^~~~~~~~~~~~~~~
| cuptie_shutdown
components/cuda/cupti_dispatch.c: In function ‘cuptid_disabled_reason_get’:
components/cuda/cupti_dispatch.c:48:5: warning: implicit declaration of function ‘cuptic_disabled_reason_get’; did you mean ‘cuptid_disabled_reason_get’? [-Wimplicit-function-declaration]
48 | cuptic_disabled_reason_get(msg);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
| cuptid_disabled_reason_get
components/cuda/cupti_dispatch.c: In function ‘cuptid_init’:
components/cuda/cupti_dispatch.c:54:18: warning: implicit declaration of function ‘cuptic_init’; did you mean ‘cuptie_init’? [-Wimplicit-function-declaration]
54 | papi_errno = cuptic_init();
| ^~~~~~~~~~~
| cuptie_init
components/cuda/cupti_dispatch.c:79:9: warning: implicit declaration of function ‘cuptic_disabled_reason_set’; did you mean ‘cuptid_disabled_reason_get’? [-Wimplicit-function-declaration]
79 | cuptic_disabled_reason_set("CUDA configuration not supported.");
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
| cuptid_disabled_reason_get
components/cuda/cupti_dispatch.c: In function ‘cuptid_thread_info_create’:
components/cuda/cupti_dispatch.c:88:12: warning: implicit declaration of function ‘cuptic_ctxarr_create’; did you mean ‘cuptie_control_create’? [-Wimplicit-function-declaration]
88 | return cuptic_ctxarr_create((cuptic_info_t *) info);
| ^~~~~~~~~~~~~~~~~~~~
| cuptie_control_create
components/cuda/cupti_dispatch.c:88:34: error: ‘cuptic_info_t’ undeclared (first use in this function); did you mean ‘cuptid_info_t’?
88 | return cuptic_ctxarr_create((cuptic_info_t *) info);
| ^~~~~~~~~~~~~
| cuptid_info_t
components/cuda/cupti_dispatch.c:88:34: note: each undeclared identifier is reported only once for each function it appears in
components/cuda/cupti_dispatch.c:88:49: error: expected expression before ‘)’ token
88 | return cuptic_ctxarr_create((cuptic_info_t *) info);
| ^
components/cuda/cupti_dispatch.c: In function ‘cuptid_thread_info_destroy’:
components/cuda/cupti_dispatch.c:93:12: warning: implicit declaration of function ‘cuptic_ctxarr_destroy’; did you mean ‘cuptie_control_destroy’? [-Wimplicit-function-declaration]
93 | return cuptic_ctxarr_destroy((cuptic_info_t *) info);
| ^~~~~~~~~~~~~~~~~~~~~
| cuptie_control_destroy
components/cuda/cupti_dispatch.c:93:35: error: ‘cuptic_info_t’ undeclared (first use in this function); did you mean ‘cuptid_info_t’?
93 | return cuptic_ctxarr_destroy((cuptic_info_t *) info);
| ^~~~~~~~~~~~~
| cuptid_info_t
components/cuda/cupti_dispatch.c:93:50: error: expected expression before ‘)’ token
93 | return cuptic_ctxarr_destroy((cuptic_info_t *) info);
| ^
components/cuda/cupti_dispatch.c: In function ‘cuptid_control_create’:
components/cuda/cupti_dispatch.c:101:16: warning: implicit declaration of function ‘cuptip_control_create’; did you mean ‘cuptie_control_create’? [-Wimplicit-function-declaration]
101 | return cuptip_control_create(event_names, (cuptic_info_t) info, (cuptip_control_t *) pcupti_ctl);
| ^~~~~~~~~~~~~~~~~~~~~
| cuptie_control_create
components/cuda/cupti_dispatch.c:101:52: error: ‘cuptic_info_t’ undeclared (first use in this function); did you mean ‘cuptid_info_t’?
101 | return cuptip_control_create(event_names, (cuptic_info_t) info, (cuptip_control_t *) pcupti_ctl);
| ^~~~~~~~~~~~~
| cuptid_info_t
components/cuda/cupti_dispatch.c:101:66: error: expected ‘)’ before ‘info’
101 | return cuptip_control_create(event_names, (cuptic_info_t) info, (cuptip_control_t *) pcupti_ctl);
| ~ ^~~~~
| )
components/cuda/cupti_dispatch.c:107:66: error: expected ‘)’ before ‘info’
107 | return cuptie_control_create(event_names, (cuptic_info_t) info, (cuptie_control_t *) pcupti_ctl);
| ~ ^~~~~
| )
components/cuda/cupti_dispatch.c:107:16: error: too few arguments to function ‘cuptie_control_create’
107 | return cuptie_control_create(event_names, (cuptic_info_t) info, (cuptie_control_t *) pcupti_ctl);
| ^~~~~~~~~~~~~~~~~~~~~
In file included from components/cuda/cupti_dispatch.c:17:
components/cuda/cupti_events.h:15:5: note: declared here
15 | int cuptie_control_create(cuptiu_event_table_t *event_names, void *thr_info, cuptie_control_t *pctl);
| ^~~~~~~~~~~~~~~~~~~~~
components/cuda/cupti_dispatch.c: In function ‘cuptid_thread_info_create’:
components/cuda/cupti_dispatch.c:89:1: warning: control reaches end of non-void function [-Wreturn-type]
89 | }
| ^
components/cuda/cupti_dispatch.c: In function ‘cuptid_thread_info_destroy’:
components/cuda/cupti_dispatch.c:94:1: warning: control reaches end of non-void function [-Wreturn-type]
94 | }
| ^
components/cuda/cupti_common.c: In function ‘load_cuda_sym’:
components/cuda/cupti_common.c:56:9: warning: implicit declaration of function ‘ERRDBG’ [-Wimplicit-function-declaration]
56 | ERRDBG("Loading installed libcuda.so failed. Check that cuda drivers are installed.\n");
| ^~~~~~
components/cuda/cupti_common.c:60:36: warning: implicit declaration of function ‘DLSYM_AND_CHECK’ [-Wimplicit-function-declaration]
60 | cuCtxSetCurrentPtr = DLSYM_AND_CHECK(dl_drv, "cuCtxSetCurrent");
| ^~~~~~~~~~~~~~~
components/cuda/cupti_common.c:60:34: warning: assignment to ‘CUresult (*)(struct CUctx_st *)’ {aka ‘enum cudaError_enum (*)(struct CUctx_st *)’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
60 | cuCtxSetCurrentPtr = DLSYM_AND_CHECK(dl_drv, "cuCtxSetCurrent");
| ^
components/cuda/cupti_common.c:61:34: warning: assignment to ‘CUresult (*)(struct CUctx_st **)’ {aka ‘enum cudaError_enum (*)(struct CUctx_st **)’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
61 | cuCtxGetCurrentPtr = DLSYM_AND_CHECK(dl_drv, "cuCtxGetCurrent");
| ^
components/cuda/cupti_common.c:62:34: warning: assignment to ‘CUresult (*)(struct CUctx_st *)’ {aka ‘enum cudaError_enum (*)(struct CUctx_st *)’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
62 | cuCtxDestroyPtr = DLSYM_AND_CHECK(dl_drv, "cuCtxDestroy");
| ^
components/cuda/cupti_common.c:63:34: warning: assignment to ‘CUresult (*)(struct CUctx_st **, unsigned int, CUdevice)’ {aka ‘enum cudaError_enum (*)(struct CUctx_st **, unsigned int, int)’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
63 | cuCtxCreatePtr = DLSYM_AND_CHECK(dl_drv, "cuCtxCreate");
| ^
components/cuda/cupti_common.c:64:34: warning: assignment to ‘CUresult (*)(CUdevice *)’ {aka ‘enum cudaError_enum (*)(int *)’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
64 | cuCtxGetDevicePtr = DLSYM_AND_CHECK(dl_drv, "cuCtxGetDevice");
| ^
components/cuda/cupti_common.c:65:34: warning: assignment to ‘CUresult (*)(CUdevice *, int)’ {aka ‘enum cudaError_enum (*)(int *, int)’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
65 | cuDeviceGetPtr = DLSYM_AND_CHECK(dl_drv, "cuDeviceGet");
| ^
components/cuda/cupti_common.c:66:34: warning: assignment to ‘CUresult (*)(int *)’ {aka ‘enum cudaError_enum (*)(int *)’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
66 | cuDeviceGetCountPtr = DLSYM_AND_CHECK(dl_drv, "cuDeviceGetCount");
| ^
components/cuda/cupti_common.c:67:34: warning: assignment to ‘CUresult (*)(char *, int, CUdevice)’ {aka ‘enum cudaError_enum (*)(char *, int, int)’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
67 | cuDeviceGetNamePtr = DLSYM_AND_CHECK(dl_drv, "cuDeviceGetName");
| ^
components/cuda/cupti_common.c:68:34: warning: assignment to ‘CUresult (*)(struct CUctx_st **, CUdevice)’ {aka ‘enum cudaError_enum (*)(struct CUctx_st **, int)’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
68 | cuDevicePrimaryCtxRetainPtr = DLSYM_AND_CHECK(dl_drv, "cuDevicePrimaryCtxRetain");
| ^
components/cuda/cupti_common.c:69:34: warning: assignment to ‘CUresult (*)(CUdevice)’ {aka ‘enum cudaError_enum (*)(int)’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
69 | cuDevicePrimaryCtxReleasePtr = DLSYM_AND_CHECK(dl_drv, "cuDevicePrimaryCtxRelease");
| ^
components/cuda/cupti_common.c:70:34: warning: assignment to ‘CUresult (*)(unsigned int)’ {aka ‘enum cudaError_enum (*)(unsigned int)’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
70 | cuInitPtr = DLSYM_AND_CHECK(dl_drv, "cuInit");
| ^
components/cuda/cupti_common.c:71:34: warning: assignment to ‘CUresult (*)(CUresult, const char **)’ {aka ‘enum cudaError_enum (*)(enum cudaError_enum, const char **)’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
71 | cuGetErrorStringPtr = DLSYM_AND_CHECK(dl_drv, "cuGetErrorString");
| ^
components/cuda/cupti_common.c:72:34: warning: assignment to ‘CUresult (*)(struct CUctx_st **)’ {aka ‘enum cudaError_enum (*)(struct CUctx_st **)’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
72 | cuCtxPopCurrentPtr = DLSYM_AND_CHECK(dl_drv, "cuCtxPopCurrent");
| ^
components/cuda/cupti_common.c:73:34: warning: assignment to ‘CUresult (*)(struct CUctx_st *)’ {aka ‘enum cudaError_enum (*)(struct CUctx_st *)’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
73 | cuCtxPushCurrentPtr = DLSYM_AND_CHECK(dl_drv, "cuCtxPushCurrent");
| ^
components/cuda/cupti_common.c:74:34: warning: assignment to ‘CUresult (*)()’ {aka ‘enum cudaError_enum (*)()’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
74 | cuCtxSynchronizePtr = DLSYM_AND_CHECK(dl_drv, "cuCtxSynchronize");
| ^
components/cuda/cupti_common.c:75:34: warning: assignment to ‘CUresult (*)(int *, CUdevice_attribute, CUdevice)’ {aka ‘enum cudaError_enum (*)(int *, enum CUdevice_attribute_enum, int)’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
75 | cuDeviceGetAttributePtr = DLSYM_AND_CHECK(dl_drv, "cuDeviceGetAttribute");
| ^
components/cuda/cupti_common.c:79:5: warning: implicit declaration of function ‘LOGDBG’ [-Wimplicit-function-declaration]
79 | LOGDBG("CUDA driver library loaded from %s\n", info.dli_fname);
| ^~~~~~
components/cuda/cupti_common.c: In function ‘cuptic_load_dynamic_syms’:
components/cuda/cupti_common.c:114:23: error: ‘CUPTIU_MAX_FILES’ undeclared (first use in this function); did you mean ‘CUPTI_MAX_GPUS’?
114 | char *found_files[CUPTIU_MAX_FILES];
| ^~~~~~~~~~~~~~~~
| CUPTI_MAX_GPUS
components/cuda/cupti_common.c:114:23: note: each undeclared identifier is reported only once for each function it appears in
components/cuda/cupti_common.c:117:9: warning: implicit declaration of function ‘sprintf’ [-Wimplicit-function-declaration]
117 | sprintf(lookup_path, search_subpaths[i], parent_path, dlname);
| ^~~~~~~
components/cuda/cupti_common.c:15:1: note: include ‘<stdio.h>’ or provide a declaration of ‘sprintf’
14 | #include "cupti_common.h"
+++ |+#include <stdio.h>
15 |
components/cuda/cupti_common.c:117:9: warning: incompatible implicit declaration of built-in function ‘sprintf’ [-Wbuiltin-declaration-mismatch]
117 | sprintf(lookup_path, search_subpaths[i], parent_path, dlname);
| ^~~~~~~
components/cuda/cupti_common.c:117:9: note: include ‘<stdio.h>’ or provide a declaration of ‘sprintf’
components/cuda/cupti_common.c:123:13: warning: implicit declaration of function ‘cuptiu_files_search_in_path’ [-Wimplicit-function-declaration]
123 | count = cuptiu_files_search_in_path(dlname, parent_path, found_files);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
components/cuda/cupti_common.c:114:11: warning: unused variable ‘found_files’ [-Wunused-variable]
114 | char *found_files[CUPTIU_MAX_FILES];
| ^~~~~~~~~~~
components/cuda/cupti_common.c: In function ‘load_cudart_sym’:
components/cuda/cupti_common.c:143:9: warning: incompatible implicit declaration of built-in function ‘sprintf’ [-Wbuiltin-declaration-mismatch]
143 | sprintf(lookup_path, "%s/%s", papi_cuda_runtime, dlname);
| ^~~~~~~
components/cuda/cupti_common.c:143:9: note: include ‘<stdio.h>’ or provide a declaration of ‘sprintf’
components/cuda/cupti_common.c:169:32: warning: assignment to ‘cudaError_t (*)(int *)’ {aka ‘enum cudaError (*)(int *)’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
169 | cudaGetDevicePtr = DLSYM_AND_CHECK(dl_rt, "cudaGetDevice");
| ^
components/cuda/cupti_common.c:170:32: warning: assignment to ‘cudaError_t (*)(int *)’ {aka ‘enum cudaError (*)(int *)’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
170 | cudaGetDeviceCountPtr = DLSYM_AND_CHECK(dl_rt, "cudaGetDeviceCount");
| ^
components/cuda/cupti_common.c:171:32: warning: assignment to ‘cudaError_t (*)(struct cudaDeviceProp *, int)’ {aka ‘enum cudaError (*)(struct cudaDeviceProp *, int)’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
171 | cudaGetDevicePropertiesPtr = DLSYM_AND_CHECK(dl_rt, "cudaGetDeviceProperties");
| ^
components/cuda/cupti_common.c:172:32: warning: assignment to ‘const char * (*)(cudaError_t)’ {aka ‘const char * (*)(enum cudaError)’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
172 | cudaGetErrorStringPtr = DLSYM_AND_CHECK(dl_rt, "cudaGetErrorString");
| ^
components/cuda/cupti_common.c:173:32: warning: assignment to ‘cudaError_t (*)(int *, enum cudaDeviceAttr, int)’ {aka ‘enum cudaError (*)(int *, enum cudaDeviceAttr, int)’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
173 | cudaDeviceGetAttributePtr = DLSYM_AND_CHECK(dl_rt, "cudaDeviceGetAttribute");
| ^
components/cuda/cupti_common.c:174:32: warning: assignment to ‘cudaError_t (*)(int)’ {aka ‘enum cudaError (*)(int)’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
174 | cudaSetDevicePtr = DLSYM_AND_CHECK(dl_rt, "cudaSetDevice");
| ^
components/cuda/cupti_common.c:175:32: warning: assignment to ‘cudaError_t (*)(void *)’ {aka ‘enum cudaError (*)(void *)’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
175 | cudaFreePtr = DLSYM_AND_CHECK(dl_rt, "cudaFree");
| ^
components/cuda/cupti_common.c:176:32: warning: assignment to ‘cudaError_t (*)(int *)’ {aka ‘enum cudaError (*)(int *)’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
176 | cudaDriverGetVersionPtr = DLSYM_AND_CHECK(dl_rt, "cudaDriverGetVersion");
| ^
components/cuda/cupti_common.c:177:32: warning: assignment to ‘cudaError_t (*)(int *)’ {aka ‘enum cudaError (*)(int *)’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
177 | cudaRuntimeGetVersionPtr = DLSYM_AND_CHECK(dl_rt, "cudaRuntimeGetVersion");
| ^
components/cuda/cupti_common.c: In function ‘load_cupti_common_sym’:
components/cuda/cupti_common.c:212:9: warning: incompatible implicit declaration of built-in function ‘sprintf’ [-Wbuiltin-declaration-mismatch]
212 | sprintf(lookup_path, "%s/%s", papi_cuda_cupti, dlname);
| ^~~~~~~
components/cuda/cupti_common.c:212:9: note: include ‘<stdio.h>’ or provide a declaration of ‘sprintf’
components/cuda/cupti_common.c:239:24: warning: assignment to ‘CUptiResult (*)(uint32_t *)’ {aka ‘CUptiResult (*)(unsigned int *)’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
239 | cuptiGetVersionPtr = DLSYM_AND_CHECK(dl_cupti, "cuptiGetVersion");
| ^
components/cuda/cupti_common.c: In function ‘util_dylib_cu_runtime_version’:
components/cuda/cupti_common.c:292:5: warning: implicit declaration of function ‘CUDART_CALL’; did you mean ‘CUDART_CB’? [-Wimplicit-function-declaration]
292 | CUDART_CALL(cudaRuntimeGetVersionPtr(&runtimeVersion), return PAPI_EMISC );
| ^~~~~~~~~~~
| CUDART_CB
components/cuda/cupti_common.c:292:60: error: expected expression before ‘return’
292 | CUDART_CALL(cudaRuntimeGetVersionPtr(&runtimeVersion), return PAPI_EMISC );
| ^~~~~~
components/cuda/cupti_common.c: In function ‘util_dylib_cupti_version’:
components/cuda/cupti_common.c:299:5: warning: implicit declaration of function ‘CUPTI_CALL’; did you mean ‘CUPTIAPI’? [-Wimplicit-function-declaration]
299 | CUPTI_CALL(cuptiGetVersionPtr(&cuptiVersion), return PAPI_EMISC );
| ^~~~~~~~~~
| CUPTIAPI
components/cuda/cupti_common.c:299:51: error: expected expression before ‘return’
299 | CUPTI_CALL(cuptiGetVersionPtr(&cuptiVersion), return PAPI_EMISC );
| ^~~~~~
components/cuda/cupti_common.c: In function ‘cuptic_device_get_count’:
components/cuda/cupti_common.c:307:9: warning: implicit declaration of function ‘cuptic_disabled_reason_set’ [-Wimplicit-function-declaration]
307 | cuptic_disabled_reason_set(cudaGetErrorStringPtr(cuda_errno));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
components/cuda/cupti_common.c: At top level:
components/cuda/cupti_common.c:385:6: warning: conflicting types for ‘cuptic_disabled_reason_set’; have ‘void(const char *)’
385 | void cuptic_disabled_reason_set(const char *msg)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
components/cuda/cupti_common.c:307:9: note: previous implicit declaration of ‘cuptic_disabled_reason_set’ with type ‘void(const char *)’
307 | cuptic_disabled_reason_set(cudaGetErrorStringPtr(cuda_errno));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
components/cuda/cupti_common.c:520:26: error: unknown type name ‘cuptic_info_t’
520 | int cuptic_ctxarr_create(cuptic_info_t *pinfo)
| ^~~~~~~~~~~~~
components/cuda/cupti_common.c:536:34: error: unknown type name ‘cuptic_info_t’
536 | int cuptic_ctxarr_update_current(cuptic_info_t info)
| ^~~~~~~~~~~~~
components/cuda/cupti_common.c:566:27: error: unknown type name ‘cuptic_info_t’
566 | int cuptic_ctxarr_get_ctx(cuptic_info_t info, int gpu_idx, CUcontext *ctx)
| ^~~~~~~~~~~~~
components/cuda/cupti_common.c:572:27: error: unknown type name ‘cuptic_info_t’
572 | int cuptic_ctxarr_destroy(cuptic_info_t *pinfo)
| ^~~~~~~~~~~~~
components/cuda/cupti_common.c:607:32: error: unknown type name ‘cuptiu_event_table_t’
607 | static int _devmask_events_get(cuptiu_event_table_t *evt_table, gpu_occupancy_t *bitmask)
| ^~~~~~~~~~~~~~~~~~~~
components/cuda/cupti_common.c:629:27: error: unknown type name ‘cuptiu_event_table_t’
629 | int cuptic_device_acquire(cuptiu_event_table_t *evt_table)
| ^~~~~~~~~~~~~~~~~~~~
components/cuda/cupti_common.c:644:27: error: unknown type name ‘cuptiu_event_table_t’
644 | int cuptic_device_release(cuptiu_event_table_t *evt_table)
| ^~~~~~~~~~~~~~~~~~~~
components/cuda/cupti_common.c:583:12: warning: ‘event_name_get_gpuid’ defined but not used [-Wunused-function]
583 | static int event_name_get_gpuid(const char *name, int *gpuid)
| ^~~~~~~~~~~~~~~~~~~~
components/cuda/cupti_common.c:581:24: warning: ‘global_gpu_bitmask’ defined but not used [-Wunused-variable]
581 | static gpu_occupancy_t global_gpu_bitmask;
| ^~~~~~~~~~~~~~~~~~
In file included from /usr/local/cuda-12.4/include/cupti.h:71,
from components/cuda/cupti_common.h:12,
from components/cuda/cupti_profiler.c:17:
/usr/local/cuda-12.4/include/cupti_activity.h:1829:23: error: expected ‘;’ before ‘typedef’
1829 | START_PACKED_ALIGNMENT
| ^
| ;
......
1837 | typedef struct PACKED_ALIGNMENT {
| ~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:1867:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
1867 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:1837:16: note: originally defined here
1837 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:1891:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
1891 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:1867:16: note: originally defined here
1867 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:1931:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
1931 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:1891:16: note: originally defined here
1891 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:1944:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
1944 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:1931:16: note: originally defined here
1931 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:2069:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
2069 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:1944:16: note: originally defined here
1944 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:2202:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
2202 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:2069:16: note: originally defined here
2069 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:2318:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
2318 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:2202:16: note: originally defined here
2202 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:2408:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
2408 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:2318:16: note: originally defined here
2318 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:2494:10: error: nested redefinition of ‘struct PACKED_ALIGNMENT’
2494 | struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:2550:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
2550 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:2494:10: note: originally defined here
2494 | struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:2679:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
2679 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:2550:16: note: originally defined here
2550 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:2984:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
2984 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:2679:16: note: originally defined here
2679 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:3174:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
3174 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:2984:16: note: originally defined here
2984 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:3225:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
3225 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:3174:16: note: originally defined here
3174 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:3289:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
3289 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:3225:16: note: originally defined here
3225 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:3332:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
3332 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:3289:16: note: originally defined here
3289 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:3382:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
3382 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:3332:16: note: originally defined here
3332 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:3430:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
3430 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:3382:16: note: originally defined here
3382 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:3476:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
3476 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:3430:16: note: originally defined here
3430 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:3513:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
3513 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:3476:16: note: originally defined here
3476 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:3577:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
3577 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:3513:16: note: originally defined here
3513 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:3632:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
3632 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:3577:16: note: originally defined here
3577 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:3850:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
3850 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:3632:16: note: originally defined here
3632 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:3901:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
3901 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:3850:16: note: originally defined here
3850 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:3948:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
3948 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:3901:16: note: originally defined here
3901 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:3986:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
3986 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:3948:16: note: originally defined here
3948 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:4045:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
4045 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:3986:16: note: originally defined here
3986 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:4090:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
4090 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:4045:16: note: originally defined here
4045 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:4158:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
4158 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:4090:16: note: originally defined here
4090 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:4254:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
4254 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:4158:16: note: originally defined here
4158 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:4315:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
4315 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:4254:16: note: originally defined here
4254 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:4374:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
4374 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:4315:16: note: originally defined here
4315 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:4407:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
4407 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:4374:16: note: originally defined here
4374 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:4528:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
4528 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:4407:16: note: originally defined here
4407 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:4579:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
4579 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:4528:16: note: originally defined here
4528 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:4621:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
4621 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:4579:16: note: originally defined here
4579 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:4687:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
4687 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:4621:16: note: originally defined here
4621 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:4725:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
4725 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:4687:16: note: originally defined here
4687 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:4762:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
4762 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:4725:16: note: originally defined here
4725 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:4822:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
4822 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:4762:16: note: originally defined here
4762 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:4929:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
4929 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:4822:16: note: originally defined here
4822 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:5074:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
5074 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:4929:16: note: originally defined here
4929 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:5250:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
5250 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:5074:16: note: originally defined here
5074 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:5426:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
5426 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:5250:16: note: originally defined here
5250 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:5573:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
5573 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:5426:16: note: originally defined here
5426 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:5668:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
5668 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:5573:16: note: originally defined here
5573 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:5723:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
5723 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:5668:16: note: originally defined here
5668 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:5856:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
5856 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:5723:16: note: originally defined here
5723 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:5999:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
5999 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:5856:16: note: originally defined here
5856 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:6045:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
6045 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:5999:16: note: originally defined here
5999 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:6092:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
6092 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:6045:16: note: originally defined here
6045 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:6143:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
6143 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:6092:16: note: originally defined here
6092 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:6239:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
6239 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:6143:16: note: originally defined here
6143 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:6389:21: error: expected ‘;’ before ‘typedef’
6389 | END_PACKED_ALIGNMENT
| ^
| ;
......
6397 | typedef enum {
| ~~~~~~~
In file included from /usr/local/cuda-12.4/include/cupti_activity.h:7543:
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:113:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
113 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:6239:16: note: originally defined here
6239 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:156:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
156 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:113:16: note: originally defined here
113 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:215:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
215 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:156:16: note: originally defined here
156 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:369:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
369 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:215:16: note: originally defined here
215 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:544:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
544 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:369:16: note: originally defined here
369 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:727:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
727 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:544:16: note: originally defined here
544 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:935:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
935 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:727:16: note: originally defined here
727 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:1083:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
1083 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:935:16: note: originally defined here
935 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:1244:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
1244 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:1083:16: note: originally defined here
1083 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:1421:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
1421 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:1244:16: note: originally defined here
1244 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:1654:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
1654 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:1421:16: note: originally defined here
1421 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:1905:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
1905 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:1654:16: note: originally defined here
1654 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:2162:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
2162 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:1905:16: note: originally defined here
1905 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:2427:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
2427 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:2162:16: note: originally defined here
2162 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:2722:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
2722 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:2427:16: note: originally defined here
2427 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:2820:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
2820 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:2722:16: note: originally defined here
2722 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:2924:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
2924 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:2820:16: note: originally defined here
2820 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:3041:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
3041 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:2924:16: note: originally defined here
2924 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:3155:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
3155 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:3041:16: note: originally defined here
3041 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:3273:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
3273 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:3155:16: note: originally defined here
3155 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:3401:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
3401 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:3273:16: note: originally defined here
3273 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:3482:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
3482 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:3401:16: note: originally defined here
3401 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:3569:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
3569 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:3482:16: note: originally defined here
3482 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:3676:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
3676 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:3569:16: note: originally defined here
3569 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:3812:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
3812 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:3676:16: note: originally defined here
3676 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:3892:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
3892 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:3812:16: note: originally defined here
3812 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:3949:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
3949 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:3892:16: note: originally defined here
3892 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:4003:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
4003 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:3949:16: note: originally defined here
3949 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:4072:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
4072 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:4003:16: note: originally defined here
4003 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:4119:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
4119 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:4072:16: note: originally defined here
4072 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:4171:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
4171 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:4119:16: note: originally defined here
4119 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:4232:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
4232 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:4171:16: note: originally defined here
4171 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:4286:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
4286 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:4232:16: note: originally defined here
4232 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:4391:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
4391 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:4286:16: note: originally defined here
4286 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:4496:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
4496 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:4391:16: note: originally defined here
4391 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:4671:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
4671 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:4496:16: note: originally defined here
4496 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:4707:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
4707 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:4671:16: note: originally defined here
4671 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
In file included from /usr/local/cuda-12.4/include/cupti.h:71,
from components/cuda/cupti_common.h:12,
from components/cuda/cupti_events.c:9:
/usr/local/cuda-12.4/include/cupti_activity.h:1829:23: error: expected ‘;’ before ‘typedef’
1829 | START_PACKED_ALIGNMENT
| ^
| ;
......
1837 | typedef struct PACKED_ALIGNMENT {
| ~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:1867:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
1867 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:1837:16: note: originally defined here
1837 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:1891:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
1891 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:1867:16: note: originally defined here
1867 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:1931:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
1931 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:1891:16: note: originally defined here
1891 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:1944:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
1944 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:1931:16: note: originally defined here
1931 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:2069:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
2069 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:1944:16: note: originally defined here
1944 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:2202:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
2202 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:2069:16: note: originally defined here
2069 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:2318:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
2318 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:2202:16: note: originally defined here
2202 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:2408:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
2408 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:2318:16: note: originally defined here
2318 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:2494:10: error: nested redefinition of ‘struct PACKED_ALIGNMENT’
2494 | struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:2550:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
2550 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:2494:10: note: originally defined here
2494 | struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:2679:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
2679 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:2550:16: note: originally defined here
2550 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:2984:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
2984 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:2679:16: note: originally defined here
2679 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:3174:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
3174 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:2984:16: note: originally defined here
2984 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:3225:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
3225 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:3174:16: note: originally defined here
3174 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:3289:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
3289 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:3225:16: note: originally defined here
3225 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:3332:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
3332 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:3289:16: note: originally defined here
3289 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:3382:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
3382 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:3332:16: note: originally defined here
3332 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:3430:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
3430 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:3382:16: note: originally defined here
3382 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:3476:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
3476 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:3430:16: note: originally defined here
3430 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:3513:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
3513 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:3476:16: note: originally defined here
3476 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:3577:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
3577 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:3513:16: note: originally defined here
3513 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:3632:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
3632 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:3577:16: note: originally defined here
3577 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:3850:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
3850 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:3632:16: note: originally defined here
3632 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:3901:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
3901 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:3850:16: note: originally defined here
3850 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:3948:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
3948 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:3901:16: note: originally defined here
3901 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:3986:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
3986 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:3948:16: note: originally defined here
3948 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:4045:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
4045 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:3986:16: note: originally defined here
3986 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:4090:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
4090 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:4045:16: note: originally defined here
4045 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:4158:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
4158 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:4090:16: note: originally defined here
4090 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:4254:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
4254 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:4158:16: note: originally defined here
4158 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:4315:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
4315 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:4254:16: note: originally defined here
4254 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:4374:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
4374 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:4315:16: note: originally defined here
4315 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:4407:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
4407 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:4374:16: note: originally defined here
4374 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:4528:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
4528 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:4407:16: note: originally defined here
4407 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:4579:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
4579 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:4528:16: note: originally defined here
4528 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:4621:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
4621 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:4579:16: note: originally defined here
4579 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:4687:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
4687 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:4621:16: note: originally defined here
4621 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:4725:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
4725 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:4687:16: note: originally defined here
4687 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:4762:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
4762 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:4725:16: note: originally defined here
4725 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:4822:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
4822 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:4762:16: note: originally defined here
4762 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:4929:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
4929 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:4822:16: note: originally defined here
4822 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:5074:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
5074 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:4929:16: note: originally defined here
4929 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:5250:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
5250 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:5074:16: note: originally defined here
5074 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:5426:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
5426 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:5250:16: note: originally defined here
5250 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:5573:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
5573 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:5426:16: note: originally defined here
5426 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:5668:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
5668 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:5573:16: note: originally defined here
5573 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:5723:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
5723 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:5668:16: note: originally defined here
5668 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:5856:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
5856 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:5723:16: note: originally defined here
5723 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:5999:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
5999 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:5856:16: note: originally defined here
5856 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:6045:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
6045 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:5999:16: note: originally defined here
5999 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:6092:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
6092 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:6045:16: note: originally defined here
6045 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:6143:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
6143 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:6092:16: note: originally defined here
6092 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:6239:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
6239 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:6143:16: note: originally defined here
6143 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:6389:21: error: expected ‘;’ before ‘typedef’
6389 | END_PACKED_ALIGNMENT
| ^
| ;
......
6397 | typedef enum {
| ~~~~~~~
In file included from /usr/local/cuda-12.4/include/cupti_activity.h:7543:
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:113:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
113 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity.h:6239:16: note: originally defined here
6239 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:156:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
156 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:113:16: note: originally defined here
113 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:215:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
215 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:156:16: note: originally defined here
156 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:369:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
369 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:215:16: note: originally defined here
215 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:544:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
544 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:369:16: note: originally defined here
369 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:727:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
727 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:544:16: note: originally defined here
544 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:935:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
935 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:727:16: note: originally defined here
727 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:1083:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
1083 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:935:16: note: originally defined here
935 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:1244:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
1244 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:1083:16: note: originally defined here
1083 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:1421:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
1421 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:1244:16: note: originally defined here
1244 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:1654:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
1654 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:1421:16: note: originally defined here
1421 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:1905:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
1905 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:1654:16: note: originally defined here
1654 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:2162:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
2162 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:1905:16: note: originally defined here
1905 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:2427:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
2427 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:2162:16: note: originally defined here
2162 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:2722:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
2722 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:2427:16: note: originally defined here
2427 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:2820:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
2820 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:2722:16: note: originally defined here
2722 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:2924:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
2924 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:2820:16: note: originally defined here
2820 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:3041:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
3041 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:2924:16: note: originally defined here
2924 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:3155:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
3155 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:3041:16: note: originally defined here
3041 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:3273:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
3273 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:3155:16: note: originally defined here
3155 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:3401:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
3401 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:3273:16: note: originally defined here
3273 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:3482:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
3482 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:3401:16: note: originally defined here
3401 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:3569:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
3569 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:3482:16: note: originally defined here
3482 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:3676:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
3676 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:3569:16: note: originally defined here
3569 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:3812:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
3812 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:3676:16: note: originally defined here
3676 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:3892:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
3892 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:3812:16: note: originally defined here
3812 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:3949:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
3949 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:3892:16: note: originally defined here
3892 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:4003:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
4003 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:3949:16: note: originally defined here
3949 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:4072:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
4072 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:4003:16: note: originally defined here
4003 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:4119:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
4119 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:4072:16: note: originally defined here
4072 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:4171:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
4171 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:4119:16: note: originally defined here
4119 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:4232:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
4232 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:4171:16: note: originally defined here
4171 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:4286:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
4286 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:4232:16: note: originally defined here
4232 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:4391:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
4391 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:4286:16: note: originally defined here
4286 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:4496:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
4496 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:4391:16: note: originally defined here
4391 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:4671:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
4671 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:4496:16: note: originally defined here
4496 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:4707:16: error: redefinition of ‘struct PACKED_ALIGNMENT’
4707 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
/usr/local/cuda-12.4/include/cupti_activity_deprecated.h:4671:16: note: originally defined here
4671 | typedef struct PACKED_ALIGNMENT {
| ^~~~~~~~~~~~~~~~
papi.spec

Treece Burgess

unread,
Jun 18, 2024, 2:26:15 PM6/18/24
to William Cohen, ptools-...@icl.utk.edu
Hello Will,

I downloaded the PAPI srpm in rawhide that you had linked within your email and replaced the papi.spec file with your modified papi.spec file. At current, I do not have access to a machine that has either Fedora 39 or Cuda 12.4. Below I will list what I was able to test with and the results that I had.
  • System 1
    • OS: RHEL 9.3
    • Cuda version: 12.3.2
    • Result: No errors and the build was successful. Utilities such as papi_native_avail, papi_component_avail, and papi_command_line performed as expected in terms of the Cuda component.
  • System 2
    • OS: Rocky Linux 9.3
    • Cuda version: 12.1.1
    • Result: No errors and the build was successful. Utilities such as papi_native_avail, papi_component_avail, and papi_command_line performed as expected in terms of the Cuda component.
I have put a request in to have Cuda 12.4 installed as a module to perform further testing. In the meantime, could you test with either Cuda 12.1.1 or Cuda 12.3.2 to see if you are able to reproduce the reported issue you sent in with your initial email?

Best wishes,

Treece


--
You received this message because you are subscribed to the Google Groups "ptools-perfapi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ptools-perfap...@icl.utk.edu.
To view this discussion on the web visit https://groups.google.com/a/icl.utk.edu/d/msgid/ptools-perfapi/7b98fd8d-d3f1-422c-8755-598f0721a2d6%40redhat.com.

William Cohen

unread,
Jun 18, 2024, 4:26:55 PM6/18/24
to Treece Burgess, wco...@redhat.com, ptools-...@icl.utk.edu
On 6/18/24 14:26, Treece Burgess wrote:
> Hello Will,
>
> I downloaded the PAPI srpm in rawhide that you had linked within your email and replaced the /papi.spec/ file with your modified /papi.spec /file. At current, I do not have access to a machine that has either Fedora 39 or Cuda 12.4. Below I will list what I was able to test with and the results that I had.
>
> * System 1
> o OS: RHEL 9.3
> o Cuda version: 12.3.2
> o Result: No errors and the build was successful. Utilities such as /papi_native_avail, papi_component_avail, /and/papi_command_line /performed as expected in terms of the Cuda component.
> * System 2
> o OS: Rocky Linux 9.3
> o Cuda version: 12.1.1
> o Result: No errors and the build was successful. Utilities such as /papi_native_avail, papi_component_avail, /and/papi_command_line /performed as expected in terms of the Cuda component.
>
> I have put a request in to have Cuda 12.4 installed as a module to perform further testing. In the meantime, could you test with either Cuda 12.1.1 or Cuda 12.3.2 to see if you are able to reproduce the reported issue you sent in with your initial email?

Thanks for looking into this.

I realized I could install both Cuda 12.3 and 12.4 on RHEL9.3. I did something like the following:

# set up the rpm
rpm -Uvh papi-7.1.0-4.fc41.src.rpm
cp papi.cuda.spec ~/rpmbuild/SPECS/papi.spec
cd rpmbuild/SPECS
rpmbuild -bp papi.spec

cd ~/rpmbuild/BUILD/papi-7.1.0/src
./configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-perf-events --with-pfm-incdir=/usr/include --with-pfm-libdir=/usr/lib64 --with-static-lib=no --with-shared-lib=yes --with-shlib-tools --with-components="appio cuda coretemp example infiniband lmsensors lustre micpower mx net pcp rapl stealtime"
PAPI_CUDA_ROOT=/usr/local/cuda-12.4 make >& ~/papi_cuda12_4.problems


cd ~/rpmbuild/SPECS
rpmbuild -bp papi.spec

cd ~/rpmbuild/BUILD/papi-7.1.0/src
./configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-perf-events --with-pfm-incdir=/usr/include --with-pfm-libdir=/usr/lib64 --with-static-lib=no --with-shared-lib=yes --with-shlib-tools --with-components="appio cuda coretemp example infiniband lmsensors lustre micpower mx net pcp rapl stealtime"
PAPI_CUDA_ROOT=/usr/local/cuda-12.3 make >& papi_cuda12_3.problems


The cuda 12.3 one compiled the component fine. The cuda 12.4 had the problems described in the earlier email on RHEL9, So the problem is related to cuda 12.4.

Unfortunately, switching to cuda 12.3 isn't an option for fedora 39. The earlier version of cuda doesn't work with the stock gcc available on fedora 39. There is a workaround using spack (https://jjfumero.github.io/posts/2023/12/nvidia-cuda-drivers-fedora39) to allow using an older version of cuda on f39, but not really a good solution.

-Will

>
> Best wishes,
>
> Treece
>
>
> On Sun, Jun 16, 2024 at 10:48 PM William Cohen <wco...@redhat.com <mailto:wco...@redhat.com>> wrote:
>
> Hi,
> As an experiment I took the papi papi srpm in rawhide ()https://kojipkgs.fedoraproject.org//packages/papi/7.1.0/4.fc41/src/papi-7.1.0-4.fc41.src.rpm <https://kojipkgs.fedoraproject.org//packages/papi/7.1.0/4.fc41/src/papi-7.1.0-4.fc41.src.rpm> and attempted to adjust the papi.spec to build the cuda component.  The modified papi.spec file is attached.  I am attempting to built the RPM on a fedora 39 machine with cuda-nvcc-12-4-12.4.131-1.x86_64
> To unsubscribe from this group and stop receiving emails from it, send an email to ptools-perfap...@icl.utk.edu <mailto:ptools-perfapi%2Bunsu...@icl.utk.edu>.
> To view this discussion on the web visit https://groups.google.com/a/icl.utk.edu/d/msgid/ptools-perfapi/7b98fd8d-d3f1-422c-8755-598f0721a2d6%40redhat.com <https://groups.google.com/a/icl.utk.edu/d/msgid/ptools-perfapi/7b98fd8d-d3f1-422c-8755-598f0721a2d6%40redhat.com>.
>

Heike Jagode

unread,
Jun 18, 2024, 4:44:58 PM6/18/24
to William Cohen, Treece Burgess, ptools-...@icl.utk.edu
Thank you, Will, for checking on this so quickly!

Just to clarify: The purpose of the request to check with CUDA versions earlier than 12.4 wasn't to propose reverting to an older version as a solution but rather to help identify whether the problem is indeed isolated to CUDA 12.4 (or potentially 12.5). The systems we have access to currently lack these CUDA versions. However, once we have access to these more recent CUDA versions, we will investigate further.

Thanks again,
Heike


To unsubscribe from this group and stop receiving emails from it, send an email to ptools-perfap...@icl.utk.edu.
To view this discussion on the web visit https://groups.google.com/a/icl.utk.edu/d/msgid/ptools-perfapi/5293faab-502f-4087-a54b-ddb96fc3c90f%40redhat.com.


--
__________________________________________
Heike Jagode, Ph.D., Research Associate Professor
Innovative Computing Laboratory (ICL)
University of Tennessee Knoxville
http://icl.utk.edu/~jagode/

William Cohen

unread,
Jun 18, 2024, 6:46:58 PM6/18/24
to Heike Jagode, wco...@redhat.com, Treece Burgess, ptools-...@icl.utk.edu
On 6/18/24 16:44, Heike Jagode wrote:
> Thank you, Will, for checking on this so quickly!
>
> Just to clarify: The purpose of the request to check with CUDA versions earlier than 12.4 wasn't to propose reverting to an older version as a solution but rather to help identify whether the problem is indeed isolated to CUDA 12.4 (or potentially 12.5). The systems we have access to currently lack these CUDA versions. However, once we have access to these more recent CUDA versions, we will investigate further.
>
> Thanks again,
> Heike

Hi,

I understand entirely! The problem could be in a number of places. I wasn't sure whether this was some error in the rpm spec file I am developing. It was really helpful to know which versions of cuda papi was able to build with. In the same papi source directory I have two gcc commands that demonstrate the problem with -save-temps to see what exactly is in the preprocessed file to get a clue of the differences causing the problem.

working 12.3 version:

gcc -fPIC -DPIC -shared -Wl,-soname -Wl,libpapi.so.7.1 -Xlinker "-rpath" -Xlinker "/usr/lib64" -DPAPI_NO_MEMORY_MANAGEMENT -DSTATIC_PAPI_EVENTS_TABLE -DUSE_PERFEVENT_RDPMC=1 -DPEINCLUDE=\"/usr/include/perfmon/perf_event.h\" -D_REENTRANT -D_GNU_SOURCE -DUSE_COMPILER_TLS -fvisibility=hidden -I. -DPAPI_NUM_COMP=16 -I/usr/local/cuda-12.3/include -I/usr/local/cuda-12.3/extras/CUPTI/include -g -DPAPI_CUDA_MAIN= -DPAPI_CUDA_RUNTIME= -DPAPI_CUDA_CUPTI= -DPAPI_CUDA_PERFWORKS= -I/usr/include -I/usr/include/sensors -g -DPAPI_LMSENSORS_MAIN=\"\" -I/usr/include -I/usr/include/pcp -g -DPAPI_PCP_MAIN=\"\" -I/usr/local/cuda-12.3/include -DOSLOCK=\"linux-lock.h\" -DOSCONTEXT=\"linux-context.h\" -O2 x86_cpuid_info.c papi_libpfm4_events.c papi.c papi_internal.c high-level/papi_hl.c extras.c sw_multiplex.c upper_PAPI_FWRAPPERS.c papi_fwrappers_.c papi_fwrappers__.c threads.c cpus.c linux-memory.c linux-timer.c linux-common.c papi_preset.c papi_vector.c papi_memory.c components/perf_event/perf_event.c components/perf_event/pe_libpfm4_events.c components/perf_event_uncore/perf_event_uncore.c components/appio/appio.c components/cuda/linux-cuda.c components/cuda/cupti_dispatch.c components/cuda/cupti_utils.c components/cuda/cupti_common.c components/cuda/cupti_profiler.c components/cuda/cupti_events.c components/coretemp/linux-coretemp.c components/example/example.c components/infiniband/linux-infiniband.c components/lmsensors/linux-lmsensors.c components/lustre/linux-lustre.c components/micpower/linux-micpower.c components/mx/linux-mx.c components/net/linux-net.c components/pcp/linux-pcp.c components/rapl/linux-rapl.c components/stealtime/linux-stealtime.c components/sysdetect/sysdetect.c components/sysdetect/nvidia_gpu.c components/sysdetect/amd_gpu.c components/sysdetect/cpu.c components/sysdetect/cpu_utils.c components/sysdetect/os_cpu_utils.c components/sysdetect/linux_cpu_utils.c components/sysdetect/x86_cpu_utils.c -o libpapi.so.7.1.0.0 -Bdynamic -L/usr/lib64 -lpfm -ldl -Wl,-rpath=/home/wcohen/rpmbuild/BUILD/papi-7.1.0/src/libpfm4/lib:/home/wcohen/rpmbuild/BUILD/papi-7.1.0/src,--enable-new-dtags -g -g -save-temps

broken 12.4 version:

gcc -fPIC -DPIC -shared -Wl,-soname -Wl,libpapi.so.7.1 -Xlinker "-rpath" -Xlinker "/usr/lib64" -DPAPI_NO_MEMORY_MANAGEMENT -DSTATIC_PAPI_EVENTS_TABLE -DUSE_PERFEVENT_RDPMC=1 -DPEINCLUDE=\"/usr/include/perfmon/perf_event.h\" -D_REENTRANT -D_GNU_SOURCE -DUSE_COMPILER_TLS -fvisibility=hidden -I. -DPAPI_NUM_COMP=16 -I/usr/local/cuda-12.4/include -I/usr/local/cuda-12.4/extras/CUPTI/include -g -DPAPI_CUDA_MAIN= -DPAPI_CUDA_RUNTIME= -DPAPI_CUDA_CUPTI= -DPAPI_CUDA_PERFWORKS= -I/usr/include -I/usr/include/sensors -g -DPAPI_LMSENSORS_MAIN=\"\" -I/usr/include -I/usr/include/pcp -g -DPAPI_PCP_MAIN=\"\" -I/usr/local/cuda-12.4/include -DOSLOCK=\"linux-lock.h\" -DOSCONTEXT=\"linux-context.h\" -O2 x86_cpuid_info.c papi_libpfm4_events.c papi.c papi_internal.c high-level/papi_hl.c extras.c sw_multiplex.c upper_PAPI_FWRAPPERS.c papi_fwrappers_.c papi_fwrappers__.c threads.c cpus.c linux-memory.c linux-timer.c linux-common.c papi_preset.c papi_vector.c papi_memory.c components/perf_event/perf_event.c components/perf_event/pe_libpfm4_events.c components/perf_event_uncore/perf_event_uncore.c components/appio/appio.c components/cuda/linux-cuda.c components/cuda/cupti_dispatch.c components/cuda/cupti_utils.c components/cuda/cupti_common.c components/cuda/cupti_profiler.c components/cuda/cupti_events.c components/coretemp/linux-coretemp.c components/example/example.c components/infiniband/linux-infiniband.c components/lmsensors/linux-lmsensors.c components/lustre/linux-lustre.c components/micpower/linux-micpower.c components/mx/linux-mx.c components/net/linux-net.c components/pcp/linux-pcp.c components/rapl/linux-rapl.c components/stealtime/linux-stealtime.c components/sysdetect/sysdetect.c components/sysdetect/nvidia_gpu.c components/sysdetect/amd_gpu.c components/sysdetect/cpu.c components/sysdetect/cpu_utils.c components/sysdetect/os_cpu_utils.c components/sysdetect/linux_cpu_utils.c components/sysdetect/x86_cpu_utils.c -o libpapi.so.7.1.0.0 -Bdynamic -L/usr/lib64 -lpfm -ldl -Wl,-rpath=/home/wcohen/rpmbuild/BUILD/papi-7.1.0/src/libpfm4/lib:/home/wcohen/rpmbuild/BUILD/papi-7.1.0/src,--enable-new-dtags -g -g -save-temps


Although Fedora and RHEL don't enable the cuda component in their builds of PAPI because the nvidia software is not available in the RPM build systems I still would like to be able to test out patches in the cuda component and also provide some feedback from the local RPM builds about issues like -Werror to the upstream community.

Thanks,

-Will
> Unfortunately, switching to cuda 12.3 isn't an option for fedora 39.  The earlier version of cuda doesn't work with the stock gcc available on fedora 39.  There is a workaround using spack (https://jjfumero.github.io/posts/2023/12/nvidia-cuda-drivers-fedora39 <https://jjfumero.github.io/posts/2023/12/nvidia-cuda-drivers-fedora39>) to allow using an older version of cuda on f39, but not really a good solution. 
>
> -Will
>
> >
> > Best wishes,
> >
> > Treece
> >
> >
> > On Sun, Jun 16, 2024 at 10:48 PM William Cohen <wco...@redhat.com <mailto:wco...@redhat.com> <mailto:wco...@redhat.com <mailto:wco...@redhat.com>>> wrote:
> >
> >     Hi,
> >     As an experiment I took the papi papi srpm in rawhide ()https://kojipkgs.fedoraproject.org//packages/papi/7.1.0/4.fc41/src/papi-7.1.0-4.fc41.src.rpm <https://kojipkgs.fedoraproject.org//packages/papi/7.1.0/4.fc41/src/papi-7.1.0-4.fc41.src.rpm> <https://kojipkgs.fedoraproject.org//packages/papi/7.1.0/4.fc41/src/papi-7.1.0-4.fc41.src.rpm <https://kojipkgs.fedoraproject.org//packages/papi/7.1.0/4.fc41/src/papi-7.1.0-4.fc41.src.rpm>> and attempted to adjust the papi.spec to build the cuda component.  The modified papi.spec file is attached.  I am attempting to built the RPM on a fedora 39 machine with cuda-nvcc-12-4-12.4.131-1.x86_64
> >     To unsubscribe from this group and stop receiving emails from it, send an email to ptools-perfap...@icl.utk.edu <mailto:ptools-perfapi%2Bunsu...@icl.utk.edu> <mailto:ptools-perfapi%2Bunsu...@icl.utk.edu <mailto:ptools-perfapi%252Buns...@icl.utk.edu>>.
> >     To view this discussion on the web visit https://groups.google.com/a/icl.utk.edu/d/msgid/ptools-perfapi/7b98fd8d-d3f1-422c-8755-598f0721a2d6%40redhat.com <https://groups.google.com/a/icl.utk.edu/d/msgid/ptools-perfapi/7b98fd8d-d3f1-422c-8755-598f0721a2d6%40redhat.com> <https://groups.google.com/a/icl.utk.edu/d/msgid/ptools-perfapi/7b98fd8d-d3f1-422c-8755-598f0721a2d6%40redhat.com <https://groups.google.com/a/icl.utk.edu/d/msgid/ptools-perfapi/7b98fd8d-d3f1-422c-8755-598f0721a2d6%40redhat.com>>.
> >
>
> --
> You received this message because you are subscribed to the Google Groups "ptools-perfapi" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to ptools-perfap...@icl.utk.edu <mailto:ptools-perfapi%2Bunsu...@icl.utk.edu>.
> To view this discussion on the web visit https://groups.google.com/a/icl.utk.edu/d/msgid/ptools-perfapi/5293faab-502f-4087-a54b-ddb96fc3c90f%40redhat.com <https://groups.google.com/a/icl.utk.edu/d/msgid/ptools-perfapi/5293faab-502f-4087-a54b-ddb96fc3c90f%40redhat.com>.
>
>
>
> --
> __________________________________________
> Heike Jagode, Ph.D., Research Associate Professor
> Innovative Computing Laboratory (ICL)
> University of Tennessee Knoxville
> http://icl.utk.edu/~jagode/ <http://icl.utk.edu/~jagode/>

William Cohen

unread,
Jun 20, 2024, 11:27:07 AM6/20/24
to Heike Jagode, wco...@redhat.com, Treece Burgess, ptools-...@icl.utk.edu
On 6/18/24 16:44, Heike Jagode wrote:
> Thank you, Will, for checking on this so quickly!
>
> Just to clarify: The purpose of the request to check with CUDA versions earlier than 12.4 wasn't to propose reverting to an older version as a solution but rather to help identify whether the problem is indeed isolated to CUDA 12.4 (or potentially 12.5). The systems we have access to currently lack these CUDA versions. However, once we have access to these more recent CUDA versions, we will investigate further.
>
> Thanks again,
> Heike

I filed an issue, https://github.com/icl-utk-edu/papi/issues/192 , for this to make it a bit easier to track.

-Will
> Unfortunately, switching to cuda 12.3 isn't an option for fedora 39.  The earlier version of cuda doesn't work with the stock gcc available on fedora 39.  There is a workaround using spack (https://jjfumero.github.io/posts/2023/12/nvidia-cuda-drivers-fedora39 <https://jjfumero.github.io/posts/2023/12/nvidia-cuda-drivers-fedora39>) to allow using an older version of cuda on f39, but not really a good solution. 
>
> -Will
>
> >
> > Best wishes,
> >
> > Treece
> >
> >
> > On Sun, Jun 16, 2024 at 10:48 PM William Cohen <wco...@redhat.com <mailto:wco...@redhat.com> <mailto:wco...@redhat.com <mailto:wco...@redhat.com>>> wrote:
> >
> >     Hi,
> >     As an experiment I took the papi papi srpm in rawhide ()https://kojipkgs.fedoraproject.org//packages/papi/7.1.0/4.fc41/src/papi-7.1.0-4.fc41.src.rpm <https://kojipkgs.fedoraproject.org//packages/papi/7.1.0/4.fc41/src/papi-7.1.0-4.fc41.src.rpm> <https://kojipkgs.fedoraproject.org//packages/papi/7.1.0/4.fc41/src/papi-7.1.0-4.fc41.src.rpm <https://kojipkgs.fedoraproject.org//packages/papi/7.1.0/4.fc41/src/papi-7.1.0-4.fc41.src.rpm>> and attempted to adjust the papi.spec to build the cuda component.  The modified papi.spec file is attached.  I am attempting to built the RPM on a fedora 39 machine with cuda-nvcc-12-4-12.4.131-1.x86_64
> >     To unsubscribe from this group and stop receiving emails from it, send an email to ptools-perfap...@icl.utk.edu <mailto:ptools-perfapi%2Bunsu...@icl.utk.edu> <mailto:ptools-perfapi%2Bunsu...@icl.utk.edu <mailto:ptools-perfapi%252Buns...@icl.utk.edu>>.
> >     To view this discussion on the web visit https://groups.google.com/a/icl.utk.edu/d/msgid/ptools-perfapi/7b98fd8d-d3f1-422c-8755-598f0721a2d6%40redhat.com <https://groups.google.com/a/icl.utk.edu/d/msgid/ptools-perfapi/7b98fd8d-d3f1-422c-8755-598f0721a2d6%40redhat.com> <https://groups.google.com/a/icl.utk.edu/d/msgid/ptools-perfapi/7b98fd8d-d3f1-422c-8755-598f0721a2d6%40redhat.com <https://groups.google.com/a/icl.utk.edu/d/msgid/ptools-perfapi/7b98fd8d-d3f1-422c-8755-598f0721a2d6%40redhat.com>>.
> >
>
> --
> You received this message because you are subscribed to the Google Groups "ptools-perfapi" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to ptools-perfap...@icl.utk.edu <mailto:ptools-perfapi%2Bunsu...@icl.utk.edu>.
> To view this discussion on the web visit https://groups.google.com/a/icl.utk.edu/d/msgid/ptools-perfapi/5293faab-502f-4087-a54b-ddb96fc3c90f%40redhat.com <https://groups.google.com/a/icl.utk.edu/d/msgid/ptools-perfapi/5293faab-502f-4087-a54b-ddb96fc3c90f%40redhat.com>.
>
>
>
> --
> __________________________________________
> Heike Jagode, Ph.D., Research Associate Professor
> Innovative Computing Laboratory (ICL)
> University of Tennessee Knoxville
> http://icl.utk.edu/~jagode/ <http://icl.utk.edu/~jagode/>

Treece Burgess

unread,
Jun 21, 2024, 1:29:25 PM6/21/24
to William Cohen, Heike Jagode, ptools-...@icl.utk.edu
Hello Will,

Thank you for opening Issue #192 for this. I was able to test with Cuda versions 12.4.1 and 12.5 with both versions resulting in the output that you showed in your initial email. I have replied to Issue #192 and added my output files when running make. I will continue looking into this issue.

Best wishes,

Treece
Reply all
Reply to author
Forward
0 new messages