how to test UCM allocator? #7348
-
hi, In header ucx/src/ucm/api/ucm.h typedef enum ucm_event_type {
................
/* Non-accessible memory alloc/free events */
UCM_EVENT_MEM_TYPE_ALLOC = UCS_BIT(20),
UCM_EVENT_MEM_TYPE_FREE = UCS_BIT(21), The comment says "it is non-accessible". I have troubles to understand it. But it seems function
And in function 507 static ucs_status_t ucm_event_install(int events)
508 {
509 UCS_MODULE_FRAMEWORK_DECLARE(ucm);
510 ucm_event_installer_t *event_installer;
511 int malloc_events;
512 ucs_status_t status;
513
514 ucm_prevent_dl_unload();
515
516 /* TODO lock */
517 status = ucm_mmap_install(events, 0);
518 if (status != UCS_OK) {
519 ucm_diag("failed to install mmap events");
520 goto out_unlock;
521 }
522
523 ucm_debug("mmap hooks are ready");
524
525 malloc_events = events & ~(UCM_EVENT_MEM_TYPE_ALLOC |
526 UCM_EVENT_MEM_TYPE_FREE);
527 status = ucm_malloc_install(malloc_events); I want to run code coverage (gcc --coverage) for UCM module. Which tool (ucx_perftest?) can be used to trigger code in directory Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
|
Beta Was this translation helpful? Give feedback.
-
1+2. it's not possible to test this without GPU. The GPU specific modules are the ones adding entries to |
Beta Was this translation helpful? Give feedback.
-
You should still be able to compile Cuda modules by installing Cuda development libraries on the machine. It will not be used in runtime, though. |
Beta Was this translation helpful? Give feedback.
1+2. it's not possible to test this without GPU. The GPU specific modules are the ones adding entries to
ucm_event_installer_list