/* * Select record type and call respective function. * * @param record the basic CUPTI activity record * @param vtCtx the VampirTrace CUPTI activity context */ static void vt_cuptiact_writeRecord(CUpti_Activity *record, vt_cupti_ctx_t *vtCtx) { switch (record->kind) { case CUPTI_ACTIVITY_KIND_KERNEL: { vt_cuptiact_writeKernelRecord((CUpti_ActivityKernel *)record, vtCtx); break; } #if (defined(CUPTI_API_VERSION) && (CUPTI_API_VERSION >= 3)) case CUPTI_ACTIVITY_KIND_CONCURRENT_KERNEL: { vt_cuptiact_writeKernelRecord((CUpti_ActivityKernel *)record, vtCtx); break; } #endif case CUPTI_ACTIVITY_KIND_MEMCPY: { vt_cuptiact_writeMemcpyRecord((CUpti_ActivityMemcpy *)record, vtCtx); break; } default: { break; } } }
/* * Select record type and call respective function. * * @param record the basic CUPTI activity record * @param vtCtx the VampirTrace CUPTI activity context */ static void vt_cuptiact_writeRecord(CUpti_Activity *record, vt_cuptiact_ctx_t *vtCtx) { switch (record->kind) { case CUPTI_ACTIVITY_KIND_KERNEL: { vt_cuptiact_writeKernelRecord((CUpti_ActivityKernel *)record, vtCtx); break; } case CUPTI_ACTIVITY_KIND_MEMCPY: { vt_cuptiact_writeMemcpyRecord((CUpti_ActivityMemcpy *)record, vtCtx); break; } default: { break; } } }